mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-22 00:02:40 +00:00

We need to keep the ElementRc around with its properties so that accessing them doesn't panic later
14 lines
382 B
Text
14 lines
382 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
|
|
|
|
export component TestCase inherits Path {
|
|
property<float> my_x: 100;
|
|
stroke: red;
|
|
stroke-width: 10px;
|
|
MoveTo {}
|
|
LineTo {
|
|
property<float> my_y: 200;
|
|
x: root.my_x;
|
|
y: my_y;
|
|
}
|
|
}
|