1#![allow(deprecated)]slint::slint!{#[include_path=r#"/input/slint/tests/driver/driverlib/../../cases/elements"#]
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
5TestCase := Rectangle {
6
7 Text {
8 text: "The path should fit into the red rectangle";
9 color: black;
10 }
11
12 fit_rect := Rectangle {
13 x: 0phx;
14 y: 100phx;
15 background: red;
16 width: 700phx;
17 height: 500phx;
18
19 Path {
20 x: 0phx;
21 y: 0phx;
22 width: fit_rect.width;
23 height: fit_rect.height;
24 commands: "M 100 300 Q 150 50 1100 400 Q 1450 500 750 500 Q 1000 600 950 600 C 325 575 350 450 150 550 Q 0 600 100 800 C 250 850 300 600 550 850 C 800 850 850 650 2000 700 ";
25 stroke: black;
26 stroke_width: 2px;
27 }
28 }
29}
30}
31