forked from slint-ui/slint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scene.slint
36 lines (30 loc) · 1.18 KB
/
scene.slint
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright © SixtyFPS GmbH <[email protected]>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
import { ScrollView, Button, CheckBox, SpinBox, Slider, GroupBox, LineEdit, StandardListView,
ComboBox, HorizontalBox, VerticalBox, GridBox, TabWidget, TextEdit } from "std-widgets.slint";
export component App inherits Window {
preferred-width: 500px;
preferred-height: 600px;
title: "Slint OpenGL Underlay Example";
icon: @image-url("../../logo/slint-logo-small-light-128x128.png");
in property <bool> rotation-enabled <=> apply-rotation.checked;
VerticalBox {
Rectangle {
background: #ffffff92;
HorizontalBox {
Text {
text: "This text is rendered using Slint. The animation below is rendered using OpenGL code.";
wrap: word-wrap;
}
VerticalLayout {
alignment: start;
apply-rotation := CheckBox {
checked: true;
text: "Rotate the OpenGL underlay";
}
}
}
}
Rectangle {}
}
}