| 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 | |
| 5 | import { AboutSlint, Button } from "std-widgets.slint" ; |
| 6 | export 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 |
| 21 | let instance = TestCase::new().unwrap(); |
| 22 | assert!(instance.get_test()); |
| 23 | ``` |
| 24 | |
| 25 | ```cpp |
| 26 | auto handle = TestCase::create(); |
| 27 | const TestCase &instance = *handle; |
| 28 | assert(instance.get_test()); |
| 29 | ``` |
| 30 | */ |
| 31 | |