2024-11-18 15:35:01 +00:00
|
|
|
import { Button, VerticalBox , AboutSlint } from "std-widgets.slint";
|
|
|
|
|
|
|
|
export component AppWindow inherits Window {
|
|
|
|
width: 320px;
|
|
|
|
height: 240px;
|
|
|
|
in-out property <int> counter: 42;
|
|
|
|
callback request-increase-value();
|
|
|
|
VerticalBox {
|
|
|
|
Text {
|
|
|
|
text: "Counter: \{root.counter}";
|
|
|
|
}
|
|
|
|
|
|
|
|
Button {
|
|
|
|
text: "Increase value";
|
|
|
|
clicked => {
|
|
|
|
root.request-increase-value();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-11-19 22:00:08 +00:00
|
|
|
AboutSlint { }
|
|
|
|
}
|
2024-11-18 15:35:01 +00:00
|
|
|
}
|