slint/tests/cases/examples/sample_component.slint
2023-07-10 10:12:11 +02:00

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
}