1 | #![allow (deprecated)]slint::slint!{#[include_path=r#"/input/slint/tests/driver/driverlib/../../cases/expr"# ] |
2 | // Copyright © SixtyFPS GmbH <info@slint.dev> |
3 | // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial |
4 | |
5 | TestCase := Rectangle { |
6 | property<string> text: "init" ; |
7 | property<string> text2: { debug(text); text } |
8 | callback foo; |
9 | foo => { |
10 | debug("callback" ); |
11 | } |
12 | background: { test; text2; blue } |
13 | |
14 | im := Image {} |
15 | |
16 | property <bool> test: { |
17 | debug(); |
18 | debug(42, 42px, width / 5s, { x: 42, y: im.image_fit, z: { d: im.opacity } }, root.background, im.source); |
19 | true; |
20 | } |
21 | } |
22 | } |
23 | |