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