Debian Codegraph @

demos/gtk-demo/constraints_builder.ui

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <interface>
3 <object class="GtkWindow" id="window1">
4 <property name="title" translatable="yes">Constraints — Builder</property>
5 <property name="default-width">260</property>
6 <property name="child">
7 <object class="ConstraintsGrid">
8 <property name="halign">fill</property>
9 <property name="valign">fill</property>
10 <property name="margin-top">10</property>
11 <property name="margin-bottom">10</property>
12 <property name="margin-start">10</property>
13 <property name="margin-end">10</property>
14 <property name="layout-manager">
15 <object class="GtkConstraintLayout">
16 <constraints>
17 <guide name="guide1" min-width="10" nat-width="200" strength="weak"/>
18 <guide name="guide2" min-width="10" nat-width="200" strength="weak"/>
19 <guide name="guide3" min-width="10" nat-width="200" strength="weak"/>
20 <guide name="guide4" min-width="10" nat-width="200" strength="weak"/>
21 <guide name="guide5" min-width="10" nat-width="200" strength="weak"/>
22 <guide name="guide6" min-width="10" nat-width="200" strength="weak"/>
23 <guide name="guide7" min-width="10" nat-width="200" strength="weak"/>
24 <guide name="guide8" min-width="10" nat-width="200" strength="weak"/>
25 <guide name="guide9" min-width="0" nat-width="200" strength="weak"/>
26 <guide name="guide10" min-width="0" nat-width="200" strength="weak"/>
27 <guide name="barrier1" min-height="10"/>
28 <guide name="barrier2" min-height="10"/>
29 <guide name="barrier3" min-height="10"/>
30 <guide name="barrier4" min-height="10"/>
31
32 <!-- Spread Chain -->
33 <constraint target="super" target-attribute="top"
34 relation="eq"
35 source="button1" source-attribute="top"
36 strength="required"/>
37 <constraint target="super" target-attribute="top"
38 relation="eq"
39 source="button2" source-attribute="top"
40 strength="required"/>
41 <constraint target="super" target-attribute="top"
42 relation="eq"
43 source="button3" source-attribute="top"
44 strength="required"/>
45
46 <constraint target="super" target-attribute="left"
47 relation="eq"
48 source="guide1" source-attribute="left"
49 strength="required"/>
50 <constraint target="button1" target-attribute="left"
51 relation="eq"
52 source="guide1" source-attribute="right"
53 strength="required"/>
54 <constraint target="guide2" target-attribute="left"
55 relation="eq"
56 source="button1" source-attribute="right"
57 strength="required"/>
58 <constraint target="button2" target-attribute="left"
59 relation="eq"
60 source="guide2" source-attribute="right"
61 strength="required"/>
62 <constraint target="guide3" target-attribute="left"
63 relation="eq"
64 source="button2" source-attribute="right"
65 strength="required"/>
66 <constraint target="button3" target-attribute="left"
67 relation="eq"
68 source="guide3" source-attribute="right"
69 strength="required"/>
70 <constraint target="guide4" target-attribute="left"
71 relation="eq"
72 source="button3" source-attribute="right"
73 strength="required"/>
74 <constraint target="super" target-attribute="right"
75 relation="eq"
76 source="guide4" source-attribute="right"
77 strength="required"/>
78
79 <constraint target="guide1" target-attribute="width"
80 relation="eq"
81 source="guide2" source-attribute="width"
82 strength="required"/>
83 <constraint target="guide2" target-attribute="width"
84 relation="eq"
85 source="guide3" source-attribute="width"
86 strength="required"/>
87 <constraint target="guide3" target-attribute="width"
88 relation="eq"
89 source="guide4" source-attribute="width"
90 strength="required"/>
91
92 <constraint target="button1" target-attribute="width"
93 relation="eq"
94 source="button2" source-attribute="width"
95 strength="required"/>
96 <constraint target="button2" target-attribute="width"
97 relation="eq"
98 source="button3" source-attribute="width"
99 strength="required"/>
100
101 <constraint target="button1" target-attribute="bottom"
102 relation="eq"
103 source="barrier1" source-attribute="top"
104 strength="required"/>
105 <constraint target="button2" target-attribute="bottom"
106 relation="eq"
107 source="barrier1" source-attribute="top"
108 strength="required"/>
109 <constraint target="button3" target-attribute="bottom"
110 relation="eq"
111 source="barrier1" source-attribute="top"
112 strength="required"/>
113
114 <!-- Spread Inside Chain -->
115
116 <constraint target="super" target-attribute="left"
117 relation="eq"
118 source="button4" source-attribute="left"
119 strength="required"/>
120 <constraint target="guide5" target-attribute="left"
121 relation="eq"
122 source="button4" source-attribute="right"
123 strength="required"/>
124 <constraint target="button5" target-attribute="left"
125 relation="eq"
126 source="guide5" source-attribute="right"
127 strength="required"/>
128 <constraint target="guide6" target-attribute="left"
129 relation="eq"
130 source="button5" source-attribute="right"
131 strength="required"/>
132 <constraint target="button6" target-attribute="left"
133 relation="eq"
134 source="guide6" source-attribute="right"
135 strength="required"/>
136 <constraint target="super" target-attribute="right"
137 relation="eq"
138 source="button6" source-attribute="right"
139 strength="required"/>
140
141 <constraint target="guide5" target-attribute="width"
142 relation="eq"
143 source="guide6" source-attribute="width"
144 strength="required"/>
145
146 <constraint target="button4" target-attribute="width"
147 relation="eq"
148 source="button5" source-attribute="width"
149 strength="required"/>
150 <constraint target="button5" target-attribute="width"
151 relation="eq"
152 source="button6" source-attribute="width"
153 strength="required"/>
154
155 <constraint target="button4" target-attribute="top"
156 relation="eq"
157 source="barrier1" source-attribute="bottom"
158 strength="required"/>
159 <constraint target="button5" target-attribute="top"
160 relation="eq"
161 source="barrier1" source-attribute="bottom"
162 strength="required"/>
163 <constraint target="button6" target-attribute="top"
164 relation="eq"
165 source="barrier1" source-attribute="bottom"
166 strength="required"/>
167
168 <constraint target="button4" target-attribute="bottom"
169 relation="eq"
170 source="barrier2" source-attribute="top"
171 strength="required"/>
172 <constraint target="button5" target-attribute="bottom"
173 relation="eq"
174 source="barrier2" source-attribute="top"
175 strength="required"/>
176 <constraint target="button6" target-attribute="bottom"
177 relation="eq"
178 source="barrier2" source-attribute="top"
179 strength="required"/>
180
181 <!-- Weighted Chain -->
182
183 <constraint target="super" target-attribute="left"
184 relation="eq"
185 source="button7" source-attribute="left"
186 strength="required"/>
187 <constraint target="button8" target-attribute="left"
188 relation="eq"
189 source="button7" source-attribute="right"
190 constant="10"
191 strength="required"/>
192 <constraint target="button9" target-attribute="left"
193 relation="eq"
194 source="button8" source-attribute="right"
195 constant="10"
196 strength="required"/>
197 <constraint target="super" target-attribute="right"
198 relation="eq"
199 source="button9" source-attribute="right"
200 strength="required"/>
201
202 <constraint target="button8" target-attribute="width"
203 relation="eq"
204 source="button7" source-attribute="width"
205 multiplier="2"
206 strength="required"/>
207 <constraint target="button9" target-attribute="width"
208 relation="eq"
209 source="button7" source-attribute="width"
210 multiplier="3"
211 strength="required"/>
212
213 <constraint target="button7" target-attribute="top"
214 relation="eq"
215 source="barrier2" source-attribute="bottom"
216 strength="required"/>
217 <constraint target="button8" target-attribute="top"
218 relation="eq"
219 source="barrier2" source-attribute="bottom"
220 strength="required"/>
221 <constraint target="button9" target-attribute="top"
222 relation="eq"
223 source="barrier2" source-attribute="bottom"
224 strength="required"/>
225
226 <constraint target="button7" target-attribute="bottom"
227 relation="eq"
228 source="barrier3" source-attribute="top"
229 strength="required"/>
230 <constraint target="button8" target-attribute="bottom"
231 relation="eq"
232 source="barrier3" source-attribute="top"
233 strength="required"/>
234 <constraint target="button9" target-attribute="bottom"
235 relation="eq"
236 source="barrier3" source-attribute="top"
237 strength="required"/>
238
239 <!-- Packed Chain -->
240
241 <constraint target="super" target-attribute="left"
242 relation="eq"
243 source="guide7" source-attribute="left"
244 strength="required"/>
245 <constraint target="button10" target-attribute="left"
246 relation="eq"
247 source="guide7" source-attribute="right"
248 strength="required"/>
249 <constraint target="button11" target-attribute="left"
250 relation="eq"
251 source="button10" source-attribute="right"
252 constant="10"
253 strength="required"/>
254 <constraint target="button12" target-attribute="left"
255 relation="eq"
256 source="button11" source-attribute="right"
257 constant="10"
258 strength="required"/>
259 <constraint target="guide8" target-attribute="left"
260 relation="eq"
261 source="button12" source-attribute="right"
262 strength="required"/>
263 <constraint target="super" target-attribute="right"
264 relation="eq"
265 source="guide8" source-attribute="right"
266 strength="required"/>
267
268 <constraint target="guide7" target-attribute="width"
269 relation="eq"
270 source="guide8" source-attribute="width"
271 strength="required"/>
272
273 <constraint target="button10" target-attribute="width"
274 relation="eq"
275 source="button11" source-attribute="width"
276 strength="required"/>
277 <constraint target="button11" target-attribute="width"
278 relation="eq"
279 source="button12" source-attribute="width"
280 strength="required"/>
281
282 <constraint target="button10" target-attribute="top"
283 relation="eq"
284 source="barrier3" source-attribute="bottom"
285 strength="required"/>
286 <constraint target="button11" target-attribute="top"
287 relation="eq"
288 source="barrier3" source-attribute="bottom"
289 strength="required"/>
290 <constraint target="button12" target-attribute="top"
291 relation="eq"
292 source="barrier3" source-attribute="bottom"
293 strength="required"/>
294
295 <constraint target="button10" target-attribute="bottom"
296 relation="eq"
297 source="barrier4" source-attribute="top"
298 strength="required"/>
299 <constraint target="button11" target-attribute="bottom"
300 relation="eq"
301 source="barrier4" source-attribute="top"
302 strength="required"/>
303 <constraint target="button12" target-attribute="bottom"
304 relation="eq"
305 source="barrier4" source-attribute="top"
306 strength="required"/>
307
308 <!-- Packed Chain with Bias -->
309
310 <constraint target="super" target-attribute="left"
311 relation="eq"
312 source="guide9" source-attribute="left"
313 strength="required"/>
314 <constraint target="button13" target-attribute="left"
315 relation="eq"
316 source="guide9" source-attribute="right"
317 constant="10"
318 strength="required"/>
319 <constraint target="button14" target-attribute="left"
320 relation="eq"
321 source="button13" source-attribute="right"
322 constant="10"
323 strength="required"/>
324 <constraint target="button15" target-attribute="left"
325 relation="eq"
326 source="button14" source-attribute="right"
327 constant="10"
328 strength="required"/>
329 <constraint target="guide10" target-attribute="left"
330 relation="eq"
331 source="button15" source-attribute="right"
332 constant="10"
333 strength="required"/>
334 <constraint target="super" target-attribute="right"
335 relation="eq"
336 source="guide10" source-attribute="right"
337 strength="required"/>
338
339 <constraint target="guide9" target-attribute="width"
340 relation="eq"
341 source="guide10" source-attribute="width"
342 multiplier="4"
343 strength="required"/>
344
345 <constraint target="button13" target-attribute="width"
346 relation="eq"
347 source="button14" source-attribute="width"
348 strength="required"/>
349 <constraint target="button14" target-attribute="width"
350 relation="eq"
351 source="button15" source-attribute="width"
352 strength="required"/>
353
354 <constraint target="button13" target-attribute="top"
355 relation="eq"
356 source="barrier4" source-attribute="bottom"
357 strength="required"/>
358 <constraint target="button14" target-attribute="top"
359 relation="eq"
360 source="barrier4" source-attribute="bottom"
361 strength="required"/>
362 <constraint target="button15" target-attribute="top"
363 relation="eq"
364 source="barrier4" source-attribute="bottom"
365 strength="required"/>
366
367 <constraint target="super" target-attribute="bottom"
368 relation="ge"
369 source="button13" source-attribute="bottom"
370 strength="required"/>
371 <constraint target="super" target-attribute="bottom"
372 relation="ge"
373 source="button14" source-attribute="bottom"
374 strength="required"/>
375 <constraint target="super" target-attribute="bottom"
376 relation="ge"
377 source="button15" source-attribute="bottom"
378 strength="required"/>
379 </constraints>
380 </object>
381 </property>
382 <child>
383 <object class="GtkButton" id="button1">
384 <property name="label">A</property>
385 </object>
386 </child>
387 <child>
388 <object class="GtkButton" id="button2">
389 <property name="label">B</property>
390 </object>
391 </child>
392 <child>
393 <object class="GtkButton" id="button3">
394 <property name="label">C</property>
395 </object>
396 </child>
397 <child>
398 <object class="GtkButton" id="button4">
399 <property name="label">A</property>
400 </object>
401 </child>
402 <child>
403 <object class="GtkButton" id="button5">
404 <property name="label">B</property>
405 </object>
406 </child>
407 <child>
408 <object class="GtkButton" id="button6">
409 <property name="label">C</property>
410 </object>
411 </child>
412 <child>
413 <object class="GtkButton" id="button7">
414 <property name="label">A</property>
415 </object>
416 </child>
417 <child>
418 <object class="GtkButton" id="button8">
419 <property name="label">B</property>
420 </object>
421 </child>
422 <child>
423 <object class="GtkButton" id="button9">
424 <property name="label">C</property>
425 </object>
426 </child>
427 <child>
428 <object class="GtkButton" id="button10">
429 <property name="label">A</property>
430 </object>
431 </child>
432 <child>
433 <object class="GtkButton" id="button11">
434 <property name="label">B</property>
435 </object>
436 </child>
437 <child>
438 <object class="GtkButton" id="button12">
439 <property name="label">C</property>
440 </object>
441 </child>
442 <child>
443 <object class="GtkButton" id="button13">
444 <property name="label">A</property>
445 </object>
446 </child>
447 <child>
448 <object class="GtkButton" id="button14">
449 <property name="label">B</property>
450 </object>
451 </child>
452 <child>
453 <object class="GtkButton" id="button15">
454 <property name="label">C</property>
455 </object>
456 </child>
457 </object>
458 </property>
459 </object>
460 </interface>