slint/examples/cpptest/hello.60
2020-05-20 09:32:01 +02:00

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";
}
}