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
4//include_path: ../../helper_components
5import { ExportedStruct, ExportEnum } from "export_structs.slint";
6export { ExportedStruct as NamedStruct, ExportEnum as NamedEnum }
7component TestCase inherits Rectangle {
8 in-out property<ExportedStruct> st;
9 in-out property<ExportEnum> en: ExportEnum.Bonjour;
10}
11export { TestCase as NamedTestCase }
12
13/*
14
15```cpp
16auto handle = NamedTestCase::create();
17const TestCase &instance = *handle;
18assert(instance.get_en() == NamedEnum::Bonjour);
19```
20
21```rust
22let instance = NamedTestCase::new().unwrap();
23assert_eq!(instance.get_en(), NamedEnum::Bonjour);
24```
25
26*/
27