slint/examples/opengl_underlay/scene.slint
Tobias Hunger 4230ac2572
Update copyright information to reflect name change
Also run resue over the codebase and fix complaints from that tool.
2022-02-09 10:27:47 +01:00

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 {}
}
}