Debian Codegraph @

demos/gtk-demo/path_explorer_demo.ui

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <interface domain="gtk40">
3 <object class="GtkWindow" id="window">
4 <style>
5 <class name="pathexplorer"/>
6 </style>
7 <property name="title">Path Explorer</property>
8 <property name="default-width">800</property>
9 <property name="default-height">600</property>
10 <property name="titlebar">
11 <object class="GtkHeaderBar">
12 <child type="start">
13 <object class="GtkToggleButton" id="sidebar-toggle">
14 <property name="icon-name">open-menu-symbolic</property>
15 </object>
16 </child>
17 </object>
18 </property>
19 <property name="child">
20 <object class="GtkBox">
21 <property name="orientation">horizontal</property>
22 <child>
23 <object class="GtkGrid">
24 <style>
25 <class name="view"/>
26 <class name="menu"/>
27 </style>
28 <property name="visible" bind-source="sidebar-toggle" bind-property="active" bind-flags="sync-create"/>
29 <child>
30 <object class="GtkLabel">
31 <property name="label">Fill</property>
32 <property name="xalign">1</property>
33 <layout>
34 <property name="column">0</property>
35 <property name="row">0</property>
36 </layout>
37 </object>
38 </child>
39 <child>
40 <object class="GtkBox">
41 <property name="hexpand">0</property>
42 <child>
43 <object class="GtkCheckButton">
44 <property name="active" bind-source="demo" bind-property="fill" bind-flags="bidirectional|sync-create"/>
45 </object>
46 </child>
47 <child>
48 <object class="GtkColorDialogButton">
49 <property name="hexpand">1</property>
50 <property name="dialog">
51 <object class="GtkColorDialog">
52 <property name="modal">1</property>
53 <property name="with-alpha">1</property>
54 </object>
55 </property>
56 <property name="rgba" bind-source="demo" bind-property="fill-color" bind-flags="bidirectional|sync-create"/>
57 </object>
58 </child>
59 <layout>
60 <property name="column">1</property>
61 <property name="row">0</property>
62 </layout>
63 </object>
64 </child>
65 <child>
66 <object class="GtkLabel">
67 <property name="label">Stroke</property>
68 <property name="xalign">1</property>
69 <layout>
70 <property name="column">0</property>
71 <property name="row">1</property>
72 </layout>
73 </object>
74 </child>
75 <child>
76 <object class="GtkBox">
77 <property name="hexpand">0</property>
78 <child>
79 <object class="GtkCheckButton" id="stroke_toggle">
80 <property name="active" bind-source="demo" bind-property="stroke" bind-flags="bidirectional|sync-create"/>
81 </object>
82 </child>
83 <child>
84 <object class="GtkColorDialogButton">
85 <property name="hexpand">1</property>
86 <property name="dialog">
87 <object class="GtkColorDialog">
88 <property name="modal">1</property>
89 <property name="with-alpha">1</property>
90 </object>
91 </property>
92 <property name="rgba" bind-source="demo" bind-property="stroke-color" bind-flags="bidirectional|sync-create"/>
93 </object>
94 </child>
95 <layout>
96 <property name="column">1</property>
97 <property name="row">1</property>
98 </layout>
99 </object>
100 </child>
101 <child>
102 <object class="GtkLabel">
103 <property name="label">Fill rule</property>
104 <property name="xalign">1</property>
105 <layout>
106 <property name="column">0</property>
107 <property name="row">2</property>
108 </layout>
109 </object>
110 </child>
111 <child>
112 <object class="GtkDropDown">
113 <property name="selected" bind-source="demo" bind-property="fill-rule" bind-flags="bidirectional|sync-create"/>
114 <property name="model">
115 <object class="GtkStringList">
116 <items>
117 <item>Winding</item>
118 <item>Even-Odd</item>
119 </items>
120 </object>
121 </property>
122 <layout>
123 <property name="column">1</property>
124 <property name="row">2</property>
125 </layout>
126 </object>
127 </child>
128 <child>
129 <object class="GtkLabel">
130 <property name="label">Line cap</property>
131 <property name="xalign">1</property>
132 <layout>
133 <property name="column">0</property>
134 <property name="row">3</property>
135 </layout>
136 </object>
137 </child>
138 <child>
139 <object class="GtkDropDown">
140 <property name="model">
141 <object class="GtkStringList">
142 <items>
143 <item>Butt</item>
144 <item>Round</item>
145 <item>Square</item>
146 </items>
147 </object>
148 </property>
149 <property name="selected" bind-source="demo" bind-property="line-cap" bind-flags="bidirectional|sync-create"/>
150 <layout>
151 <property name="column">1</property>
152 <property name="row">3</property>
153 </layout>
154 </object>
155 </child>
156 <child>
157 <object class="GtkLabel">
158 <property name="label">Line join</property>
159 <property name="xalign">1</property>
160 <layout>
161 <property name="column">0</property>
162 <property name="row">4</property>
163 </layout>
164 </object>
165 </child>
166 <child>
167 <object class="GtkDropDown">
168 <property name="model">
169 <object class="GtkStringList">
170 <items>
171 <item>Miter</item>
172 <item>Round</item>
173 <item>Bevel</item>
174 </items>
175 </object>
176 </property>
177 <property name="selected" bind-source="demo" bind-property="line-join" bind-flags="bidirectional|sync-create"/>
178 <layout>
179 <property name="column">1</property>
180 <property name="row">4</property>
181 </layout>
182 </object>
183 </child>
184 <child>
185 <object class="GtkLabel">
186 <property name="label">Miter limit</property>
187 <property name="xalign">1</property>
188 <layout>
189 <property name="column">0</property>
190 <property name="row">5</property>
191 </layout>
192 </object>
193 </child>
194 <child>
195 <object class="GtkSpinButton">
196 <property name="adjustment">
197 <object class="GtkAdjustment">
198 <property name="lower">0</property>
199 <property name="upper">10</property>
200 <property name="step-increment">1</property>
201 <property name="page-increment">1</property>
202 <property name="value" bind-source="demo" bind-property="miter-limit" bind-flags="bidirectional|sync-create"/>
203 </object>
204 </property>
205 <layout>
206 <property name="column">1</property>
207 <property name="row">5</property>
208 </layout>
209 </object>
210 </child>
211 <child>
212 <object class="GtkLabel">
213 <property name="label">Stroke width</property>
214 <property name="xalign">1</property>
215 <layout>
216 <property name="column">0</property>
217 <property name="row">6</property>
218 </layout>
219 </object>
220 </child>
221 <child>
222 <object class="GtkSpinButton">
223 <property name="adjustment">
224 <object class="GtkAdjustment">
225 <property name="lower">1</property>
226 <property name="upper">20</property>
227 <property name="step-increment">1</property>
228 <property name="page-increment">1</property>
229 <property name="value" bind-source="demo" bind-property="line-width" bind-flags="bidirectional|sync-create"/>
230 </object>
231 </property>
232 <layout>
233 <property name="column">1</property>
234 <property name="row">6</property>
235 </layout>
236 </object>
237 </child>
238 <child>
239 <object class="GtkLabel">
240 <property name="label">Dash pattern</property>
241 <property name="xalign">1</property>
242 <layout>
243 <property name="column">0</property>
244 <property name="row">7</property>
245 </layout>
246 </object>
247 </child>
248 <child>
249 <object class="GtkEntry">
250 <property name="text" bind-source="demo" bind-property="dashes" bind-flags="bidirectional|sync-create"/>
251 <layout>
252 <property name="column">1</property>
253 <property name="row">7</property>
254 </layout>
255 </object>
256 </child>
257 <child>
258 <object class="GtkLabel">
259 <property name="label">Dash offset</property>
260 <property name="xalign">1</property>
261 <layout>
262 <property name="column">0</property>
263 <property name="row">8</property>
264 </layout>
265 </object>
266 </child>
267 <child>
268 <object class="GtkSpinButton">
269 <property name="adjustment">
270 <object class="GtkAdjustment">
271 <property name="lower">-1000</property>
272 <property name="upper">1000</property>
273 <property name="step-increment">1</property>
274 <property name="page-increment">1</property>
275 <property name="value" bind-source="demo" bind-property="dash-offset" bind-flags="bidirectional|sync-create"/>
276 </object>
277 </property>
278 <layout>
279 <property name="column">1</property>
280 <property name="row">8</property>
281 </layout>
282 </object>
283 </child>
284 <child>
285 <object class="GtkLabel">
286 <property name="label">Show points</property>
287 <property name="xalign">1</property>
288 <layout>
289 <property name="column">0</property>
290 <property name="row">9</property>
291 </layout>
292 </object>
293 </child>
294 <child>
295 <object class="GtkCheckButton">
296 <property name="active" bind-source="demo" bind-property="show-points" bind-flags="bidirectional|sync-create"/>
297 <layout>
298 <property name="column">1</property>
299 <property name="row">9</property>
300 </layout>
301 </object>
302 </child>
303 <child>
304 <object class="GtkLabel">
305 <property name="label">Show bounds</property>
306 <property name="xalign">1</property>
307 <layout>
308 <property name="column">0</property>
309 <property name="row">10</property>
310 </layout>
311 </object>
312 </child>
313 <child>
314 <object class="GtkCheckButton">
315 <property name="active" bind-source="demo" bind-property="show-bounds" bind-flags="bidirectional|sync-create"/>
316 <layout>
317 <property name="column">1</property>
318 <property name="row">10</property>
319 </layout>
320 </object>
321 </child>
322 </object>
323 </child>
324 <child>
325 <object class="GtkSeparator">
326 <property name="orientation">vertical</property>
327 </object>
328 </child>
329 <child>
330 <object class="GtkBox">
331 <style><class name="content"/></style>
332 <property name="orientation">vertical</property>
333 <child>
334 <object class="GtkScrolledWindow">
335 <child>
336 <object class="PathExplorer" id="demo">
337 <property name="hexpand">1</property>
338 <property name="vexpand">1</property>
339 </object>
340 </child>
341 </object>
342 </child>
343 <child>
344 <object class="GtkEntry" id="entry">
345 <property name="hexpand">1</property>
346 </object>
347 </child>
348 <child>
349 <object class="RangeEditor">
350 <property name="hexpand">1</property>
351 <property name="lower">0</property>
352 <property name="upper">1</property>
353 <property name="value1" bind-source="demo" bind-property="start" bind-flags="bidirectional|sync-create"/>
354 <property name="value2" bind-source="demo" bind-property="end" bind-flags="bidirectional|sync-create"/>
355
356 </object>
357 </child>
358 </object>
359 </child>
360 </object>
361 </property>
362 </object>
363 </interface>