1 | // Copyright © SixtyFPS GmbH <info@slint.dev> |
---|---|
2 | // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial |
3 | |
4 | export struct MyStruct := { |
5 | foo: int, |
6 | bar: string, |
7 | } |
8 | |
9 | SampleComponent := Window { |
10 | property<int> counter; |
11 | property<string> user_name; |
12 | callback hello; |
13 | // ... maybe more elements here |
14 | } |
15 |