mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
14 lines
364 B
Text
14 lines
364 B
Text
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial
|
|
|
|
export struct MyStruct := {
|
|
foo: int,
|
|
bar: string,
|
|
}
|
|
|
|
SampleComponent := Window {
|
|
property<int> counter;
|
|
property<string> user_name;
|
|
callback hello;
|
|
// ... maybe more elements here
|
|
}
|