mirror of
https://github.com/slint-ui/slint.git
synced 2025-07-16 01:25:27 +00:00

Updated the version from 1.1 to 1.2 Renamed the header to "Slint Royalty-free Desktop, Mobile, and Web Applications License" Added definition of "Mobile Application" and grant of right Moved "Limitations" to 3rd section and "License Conditions - Attributions" to 2nd section Added flexibility to choose between showing "MadeWithSlint" as a dialog/splash screen or on a public webpage Moved the para on copyright notices to section under "Limitations"
40 lines
1.1 KiB
Text
40 lines
1.1 KiB
Text
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.2 OR LicenseRef-Slint-commercial
|
|
|
|
Test2 := Path {
|
|
width: 640px;
|
|
height: 480px;
|
|
commands: "M 0 0 M -100 0 A 100 100 0 1 0 100 0 Å 100 100 0 1 0 100 0 Z";
|
|
// ^error{Error parsing SVG commands}
|
|
}
|
|
|
|
export TestCase := Rectangle {
|
|
Path {
|
|
width: 100px;
|
|
height: 100px;
|
|
commands: "hello world";
|
|
// ^error{Error parsing SVG commands}
|
|
stroke: red;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
Path {
|
|
width: 640px;
|
|
height: 480px;
|
|
commands: "M 0 0 M -100 0 A 100 100 0 1 0 100 0 A 100 100 0 1 0 100 0 Z";
|
|
}
|
|
|
|
Path {
|
|
width: 640px;
|
|
height: 480px;
|
|
commands: "M 0 0 M -100 0 A 100 100 0 1 0 0 A 100 100 0 1 0 100 0 Z";
|
|
// ^error{Error parsing SVG commands}
|
|
}
|
|
|
|
Test2 {}
|
|
|
|
property <[{commands: string}]> model: [{commands: "M 0 0 L 0 100 A 1 1 0 0 0 100 100 L 100 0 Z"}];
|
|
for entry in model: Path {
|
|
commands: entry.commands; // Don't panic
|
|
}
|
|
}
|