slint/tests/cases/layout/issue_553_materialized_init.slint
Aurindam Jana 3523e86359
Simplify commercial license (#3063)
Base the commercial license on the Royalty-free license adding clauses pertaining to the fees.
2024-05-31 14:06:17 +02:00

34 lines
777 B
Text

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
// Test the propagation of maximum and minimum size through nested grid layouts
TestCase := Rectangle {
min-width: 500px;
max-width: min-width;
property xxx <=> preferred-height;
HorizontalLayout {
Rectangle { height: 88px; }
}
property <bool> test: min-width == 500px && max-width == 500px && xxx == 88px;
}
/*
```cpp
auto handle = TestCase::create();
const TestCase &instance = *handle;
assert(instance.get_test());
```
```rust
let instance = TestCase::new().unwrap();
assert!(instance.get_test());
```
```js
var instance = new slint.TestCase({});
assert(instance.test);
```
*/