mirror of
				https://github.com/slint-ui/slint.git
				synced 2025-10-31 12:04:33 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			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 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 {}
 | |
|     }
 | |
| }
 | 
