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 | // issue #177 |
5 | |
6 | export TestCase := Window { |
7 | r := Rectangle { |
8 | background: blue; |
9 | } |
10 | property <bool> test: r.border-radius == 0; |
11 | } |
12 | |
13 | /* |
14 | |
15 | ```cpp |
16 | auto handle = TestCase::create(); |
17 | const TestCase &instance = *handle; |
18 | assert(instance.get_test()); |
19 | ``` |
20 | |
21 | ```rust |
22 | let instance = TestCase::new().unwrap(); |
23 | assert!(instance.get_test()); |
24 | ``` |
25 | |
26 | ```js |
27 | var instance = new slint.TestCase(); |
28 | assert(instance.test); |
29 | ``` |
30 | */ |
31 | |