1 | // Copyright © SixtyFPS GmbH <info@slint.dev> |
2 | // SPDX-License-Identifier: MIT |
3 | |
4 | import { ScrollView, Button, CheckBox, SpinBox, Slider, GroupBox, LineEdit, StandardListView, |
5 | ComboBox, HorizontalBox, VerticalBox, GridBox, TabWidget, TextEdit } from "std-widgets.slint" ; |
6 | |
7 | export component App inherits Window { |
8 | in property <bool> rotation-enabled <=> apply-rotation.checked; |
9 | |
10 | preferred-width: 500px; |
11 | preferred-height: 600px; |
12 | title: "Slint OpenGL Underlay Example" ; |
13 | icon: @image-url("../../logo/slint-logo-small-light.png" ); |
14 | |
15 | |
16 | VerticalBox { |
17 | Rectangle { |
18 | background: #ffffff92; |
19 | |
20 | HorizontalBox { |
21 | Text { |
22 | text: "This text is rendered using Slint. The animation below is rendered using OpenGL code." ; |
23 | wrap: word-wrap; |
24 | } |
25 | |
26 | VerticalLayout { |
27 | alignment: start; |
28 | apply-rotation := CheckBox { |
29 | checked: true; |
30 | text: "Rotate the OpenGL underlay" ; |
31 | } |
32 | } |
33 | } |
34 | } |
35 | |
36 | Rectangle {} |
37 | } |
38 | } |
39 | |