1// Copyright © SixtyFPS GmbH <info@slint.dev>
2// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
3
4PathFillRule := Window {
5 GridLayout {
6 Row {
7 Text {
8 text: "The rectangle to the right should have a hole in the center";
9 }
10 Path {
11 commands: "M210,0 h90 v90 h-90 z M230,20 v50 h50 v-50 z";
12 fill: black;
13 fill-rule: evenodd;
14 stroke: red;
15 stroke-width: 1px;
16 }
17 }
18 Row {
19 Text {
20 text: "The rectangle to the right should be filled in the center";
21 }
22 Path {
23 commands: "M210,0 h90 v90 h-90 z M230,20 v50 h50 v-50 z";
24 fill: black;
25 fill-rule: nonzero;
26 stroke: red;
27 stroke-width: 1px;
28 }
29 }
30 }
31}
32