mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-03 07:04:34 +00:00
48 lines
737 B
Text
48 lines
737 B
Text
|
|
|
|
component TwoRectangle = Rectangle {
|
|
Rectangle {
|
|
x: 50;
|
|
y: 50.;
|
|
width: 25;
|
|
height: 25;
|
|
color: red;
|
|
|
|
my_area = TouchArea {
|
|
width: 25;
|
|
height: 25;
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
|
|
SuperSimple = Rectangle {
|
|
color: white;
|
|
|
|
TwoRectangle {
|
|
width: 100;
|
|
height: 100;
|
|
color: blue;
|
|
}
|
|
Rectangle {
|
|
x: 100;
|
|
y: 100;
|
|
width: (100);
|
|
height: {100}
|
|
color: green;
|
|
Rectangle {
|
|
x: 50;
|
|
y: 50.;
|
|
width: 25;
|
|
height: 25;
|
|
color: red;
|
|
}
|
|
}
|
|
Image {
|
|
x: 200;
|
|
y: 200;
|
|
source: img!"../graphicstest/logo.png";
|
|
}
|
|
}
|
|
|