mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-27 05:44:08 +00:00

``` warning: Linking input properties to input output properties is deprecated --> /home/olivier/slint/examples/opengl_underlay/scene.slint:8:41 | 8 | in property <bool> rotation-enabled <=> apply-rotation.checked; | ^ ```
38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
import { ScrollView, Button, CheckBox, SpinBox, Slider, GroupBox, LineEdit, StandardListView,
|
|
ComboBox, HorizontalBox, VerticalBox, GridBox, TabWidget, TextEdit } from "std-widgets.slint";
|
|
|
|
export component App inherits Window {
|
|
in-out property <bool> rotation-enabled <=> apply-rotation.checked;
|
|
|
|
preferred-width: 500px;
|
|
preferred-height: 600px;
|
|
title: "Slint OpenGL Underlay Example";
|
|
icon: @image-url("../../logo/slint-logo-small-light.png");
|
|
|
|
|
|
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 {}
|
|
}
|
|
}
|