mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-23 00:32:46 +00:00

Base the commercial license on the Royalty-free license adding clauses pertaining to the fees.
47 lines
1.1 KiB
Text
47 lines
1.1 KiB
Text
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
|
|
|
|
export component TestCase inherits Window {
|
|
width: 64px;
|
|
height: 64px;
|
|
|
|
Text {
|
|
text: "No wrap, single line";
|
|
y: 0px;
|
|
width: 100%;
|
|
overflow: elide;
|
|
font-size: 9px;
|
|
color: red;
|
|
}
|
|
|
|
Text {
|
|
text: "No wrap, first line\nand also second line";
|
|
y: 11px;
|
|
width: 100%;
|
|
overflow: elide;
|
|
font-size: 9px;
|
|
color: green;
|
|
horizontal-alignment: center;
|
|
}
|
|
|
|
Text {
|
|
text: "Wrap and elide multiple lines of text";
|
|
y: 32px;
|
|
width: 100%;
|
|
height: 24px;
|
|
wrap: word-wrap;
|
|
overflow: elide;
|
|
font-size: 9px;
|
|
color: blue;
|
|
horizontal-alignment: right;
|
|
}
|
|
|
|
Text {
|
|
text: "i i i i i i i i i i i i i i i i i i i i";
|
|
y: 54px;
|
|
width: 100%;
|
|
overflow: elide;
|
|
font-size: 9px;
|
|
color: magenta;
|
|
}
|
|
}
|