mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-29 05:14:48 +00:00
36 lines
1.2 KiB
Text
36 lines
1.2 KiB
Text
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
|
// 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, AboutSixtyFPS } from "std-widgets.slint";
|
|
|
|
App := Window {
|
|
preferred-width: 500px;
|
|
preferred-height: 600px;
|
|
title: "Slint OpenGL Underlay Example";
|
|
icon: @image-url("../../logo/slint-logo-small-light-128x128.png");
|
|
|
|
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 {}
|
|
}
|
|
}
|