slint/tests/screenshots/cases/software/basic/text-elided.slint
Aurindam Jana 3523e86359
Simplify commercial license (#3063)
Base the commercial license on the Royalty-free license adding clauses pertaining to the fees.
2024-05-31 14:06:17 +02:00

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