1
2// Copyright © SixtyFPS GmbH <info@slint.dev>
3// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
4
5import { AboutSlint, Button } from "std-widgets.slint";
6export component TestCase inherits Window {
7
8 in-out property <string> app_title: "Application";
9
10 MenuBar { }
11
12 vl := ContextMenuArea { Menu { } }
13
14
15 out property <bool> check-geometry: vl.x == 0 && vl.y == 0 && vl.width == root.width && vl.height == root.height;
16 out property <bool> test: check-geometry;
17}
18
19/*
20```rust
21let instance = TestCase::new().unwrap();
22assert!(instance.get_test());
23```
24
25```cpp
26auto handle = TestCase::create();
27const TestCase &instance = *handle;
28assert(instance.get_test());
29```
30*/
31