slint/examples/opengl_underlay/scene.slint
Olivier Goffart fe428b376d janitor: fix slint warning in example
```
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;
  |                                         ^
```
2024-12-07 08:34:38 +01:00

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