Debian Codegraph @

tests/inputs/Slint-helloworld.slint

raw
1 component MyButton inherits Text {
2 color: black;
3 // ...
4 }
5
6 export component MyApp inherits Window {
7 preferred-width: 200px;
8 preferred-height: 100px;
9 Rectangle {
10 width: 200px;
11 height: 100px;
12 background: green;
13
14 }/* */
15 MyButton {
16 x:0;y:0; // hello
17 text: "hello";
18 }
19 MyButton { // world
20 y:0;
21 x: 50px;
22 text: "world";
23 }
24 }