1// Copyright © SixtyFPS GmbH <info@slint.dev>
2// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
3
4export component SampleComponent inherits Window {
5 in-out property<int> counter;
6 // note that dashes will be replaced by underscores in the generated code
7 in-out property<string> user_name;
8 callback hello;
9 public function do-something(x: int) -> bool { return x > 0; }
10 // ... maybe more elements here
11}
12