@gtkx/react 0.9.3 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +55 -67
- package/dist/errors.d.ts +3 -3
- package/dist/errors.js +8 -8
- package/dist/factory.d.ts +3 -5
- package/dist/factory.js +18 -71
- package/dist/fiber-root.d.ts +1 -1
- package/dist/fiber-root.js +1 -2
- package/dist/generated/internal.d.ts +3 -6
- package/dist/generated/internal.js +10386 -13577
- package/dist/generated/jsx.d.ts +2325 -2219
- package/dist/generated/jsx.js +1339 -1574
- package/dist/generated/registry.d.ts +4 -0
- package/dist/generated/registry.js +13 -0
- package/dist/host-config.d.ts +7 -4
- package/dist/host-config.js +53 -18
- package/dist/index.d.ts +2 -22
- package/dist/index.js +2 -40
- package/dist/jsx.d.ts +719 -0
- package/dist/jsx.js +392 -0
- package/dist/node.d.ts +15 -32
- package/dist/node.js +20 -240
- package/dist/nodes/action-row-child.d.ts +21 -0
- package/dist/nodes/action-row-child.js +69 -0
- package/dist/nodes/action-row.js +33 -0
- package/dist/nodes/application.d.ts +1 -0
- package/dist/nodes/application.js +38 -0
- package/dist/nodes/autowrapped.d.ts +1 -0
- package/dist/nodes/autowrapped.js +109 -0
- package/dist/nodes/column-view-column.d.ts +16 -0
- package/dist/nodes/column-view-column.js +54 -0
- package/dist/nodes/column-view.d.ts +0 -59
- package/dist/nodes/column-view.js +107 -226
- package/dist/nodes/fixed-child.d.ts +1 -0
- package/dist/nodes/fixed-child.js +45 -0
- package/dist/nodes/grid-child.d.ts +1 -0
- package/dist/nodes/grid-child.js +54 -0
- package/dist/nodes/index.d.ts +34 -0
- package/dist/nodes/index.js +34 -0
- package/dist/nodes/internal/list-item-renderer.d.ts +18 -0
- package/dist/nodes/internal/list-item-renderer.js +67 -0
- package/dist/nodes/internal/list-store.d.ts +16 -0
- package/dist/nodes/internal/list-store.js +69 -0
- package/dist/nodes/internal/predicates.d.ts +26 -0
- package/dist/nodes/internal/predicates.js +36 -0
- package/dist/nodes/internal/signal-store.d.ts +9 -0
- package/dist/nodes/internal/signal-store.js +54 -0
- package/dist/nodes/internal/simple-list-store.d.ts +14 -0
- package/dist/nodes/internal/simple-list-store.js +60 -0
- package/dist/nodes/internal/tree-list-item-renderer.d.ts +18 -0
- package/dist/nodes/internal/tree-list-item-renderer.js +90 -0
- package/dist/nodes/internal/tree-store.d.ts +28 -0
- package/dist/nodes/internal/tree-store.js +153 -0
- package/dist/nodes/internal/utils.d.ts +3 -0
- package/dist/nodes/internal/utils.js +20 -0
- package/dist/nodes/list-item.d.ts +12 -0
- package/dist/nodes/list-item.js +24 -0
- package/dist/nodes/list-view.d.ts +0 -22
- package/dist/nodes/list-view.js +45 -38
- package/dist/nodes/menu.d.ts +6 -106
- package/dist/nodes/menu.js +16 -268
- package/dist/nodes/models/list.d.ts +24 -0
- package/dist/nodes/models/list.js +102 -0
- package/dist/nodes/models/menu.d.ts +45 -0
- package/dist/nodes/models/menu.js +265 -0
- package/dist/nodes/models/tree-list.d.ts +28 -0
- package/dist/nodes/models/tree-list.js +141 -0
- package/dist/nodes/navigation-page.d.ts +21 -0
- package/dist/nodes/navigation-page.js +95 -0
- package/dist/nodes/navigation-view.d.ts +1 -0
- package/dist/nodes/navigation-view.js +29 -0
- package/dist/nodes/notebook-page-tab.d.ts +15 -0
- package/dist/nodes/notebook-page-tab.js +42 -0
- package/dist/nodes/notebook-page.d.ts +23 -0
- package/dist/nodes/notebook-page.js +106 -0
- package/dist/nodes/notebook.d.ts +0 -32
- package/dist/nodes/notebook.js +20 -113
- package/dist/nodes/overlay-child.d.ts +1 -0
- package/dist/nodes/overlay-child.js +30 -0
- package/dist/nodes/pack-child.d.ts +21 -0
- package/dist/nodes/pack-child.js +68 -0
- package/dist/nodes/pack.d.ts +1 -0
- package/dist/nodes/pack.js +33 -0
- package/dist/nodes/popover-menu.d.ts +1 -0
- package/dist/nodes/popover-menu.js +58 -0
- package/dist/nodes/simple-list-item.d.ts +9 -0
- package/dist/nodes/simple-list-item.js +9 -0
- package/dist/nodes/simple-list-view.d.ts +1 -0
- package/dist/nodes/simple-list-view.js +75 -0
- package/dist/nodes/slot.d.ts +18 -10
- package/dist/nodes/slot.js +83 -51
- package/dist/nodes/stack-page.d.ts +1 -0
- package/dist/nodes/stack-page.js +80 -0
- package/dist/nodes/stack.d.ts +1 -22
- package/dist/nodes/stack.js +21 -60
- package/dist/nodes/toast-overlay.d.ts +1 -0
- package/dist/nodes/toast-overlay.js +35 -0
- package/dist/nodes/toast.d.ts +17 -0
- package/dist/nodes/toast.js +77 -0
- package/dist/nodes/toolbar-child.d.ts +9 -0
- package/dist/nodes/toolbar-child.js +33 -0
- package/dist/nodes/toolbar.d.ts +1 -0
- package/dist/nodes/toolbar.js +42 -0
- package/dist/nodes/tree-list-item.d.ts +20 -0
- package/dist/nodes/tree-list-item.js +102 -0
- package/dist/nodes/tree-list-view.d.ts +1 -0
- package/dist/nodes/tree-list-view.js +57 -0
- package/dist/nodes/virtual.d.ts +13 -0
- package/dist/nodes/virtual.js +21 -0
- package/dist/nodes/widget.d.ts +17 -3
- package/dist/nodes/widget.js +258 -2
- package/dist/nodes/window.d.ts +1 -12
- package/dist/nodes/window.js +66 -27
- package/dist/portal.d.ts +18 -13
- package/dist/portal.js +17 -14
- package/dist/reconciler.d.ts +0 -4
- package/dist/reconciler.js +1 -9
- package/dist/registry.d.ts +8 -0
- package/dist/registry.js +5 -0
- package/dist/render.d.ts +108 -12
- package/dist/render.js +140 -16
- package/dist/scheduler.d.ts +4 -0
- package/dist/scheduler.js +10 -0
- package/dist/types.d.ts +3 -136
- package/package.json +6 -6
- package/dist/batch.d.ts +0 -5
- package/dist/batch.js +0 -31
- package/dist/codegen/jsx-generator.d.ts +0 -56
- package/dist/codegen/jsx-generator.js +0 -959
- package/dist/containers.d.ts +0 -58
- package/dist/nodes/about-dialog.d.ts +0 -8
- package/dist/nodes/about-dialog.js +0 -16
- package/dist/nodes/action-bar.d.ts +0 -5
- package/dist/nodes/action-bar.js +0 -6
- package/dist/nodes/combo-row.d.ts +0 -5
- package/dist/nodes/combo-row.js +0 -6
- package/dist/nodes/drop-down.d.ts +0 -9
- package/dist/nodes/drop-down.js +0 -12
- package/dist/nodes/flow-box.d.ts +0 -10
- package/dist/nodes/flow-box.js +0 -41
- package/dist/nodes/grid.d.ts +0 -30
- package/dist/nodes/grid.js +0 -84
- package/dist/nodes/header-bar.d.ts +0 -43
- package/dist/nodes/header-bar.js +0 -116
- package/dist/nodes/indexed-child-container.d.ts +0 -16
- package/dist/nodes/indexed-child-container.js +0 -22
- package/dist/nodes/list-box.d.ts +0 -10
- package/dist/nodes/list-box.js +0 -48
- package/dist/nodes/list-item-factory.d.ts +0 -19
- package/dist/nodes/list-item-factory.js +0 -58
- package/dist/nodes/overlay.d.ts +0 -11
- package/dist/nodes/overlay.js +0 -50
- package/dist/nodes/paged-stack.d.ts +0 -31
- package/dist/nodes/paged-stack.js +0 -95
- package/dist/nodes/root.d.ts +0 -8
- package/dist/nodes/root.js +0 -13
- package/dist/nodes/selectable-list.d.ts +0 -45
- package/dist/nodes/selectable-list.js +0 -260
- package/dist/nodes/stack-page-props.d.ts +0 -11
- package/dist/nodes/stack-page-props.js +0 -23
- package/dist/nodes/string-list-container.d.ts +0 -34
- package/dist/nodes/string-list-container.js +0 -118
- package/dist/nodes/string-list-item.d.ts +0 -19
- package/dist/nodes/string-list-item.js +0 -50
- package/dist/nodes/string-list-store.d.ts +0 -13
- package/dist/nodes/string-list-store.js +0 -44
- package/dist/nodes/text-view.d.ts +0 -8
- package/dist/nodes/text-view.js +0 -16
- package/dist/nodes/toggle-button.d.ts +0 -14
- package/dist/nodes/toggle-button.js +0 -39
- package/dist/nodes/toolbar-view.d.ts +0 -14
- package/dist/nodes/toolbar-view.js +0 -78
- package/dist/nodes/view-stack.d.ts +0 -9
- package/dist/nodes/view-stack.js +0 -28
- package/dist/nodes/virtual-item.d.ts +0 -19
- package/dist/nodes/virtual-item.js +0 -48
- package/dist/nodes/virtual-slot.d.ts +0 -25
- package/dist/nodes/virtual-slot.js +0 -57
- package/dist/predicates.d.ts +0 -29
- package/dist/predicates.js +0 -37
- package/dist/props.d.ts +0 -7
- package/dist/props.js +0 -12
- /package/dist/{containers.js → nodes/action-row.d.ts} +0 -0
package/dist/generated/jsx.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import "react";
|
|
2
|
-
import { createElement } from "react";
|
|
3
1
|
/**
|
|
4
2
|
* The base class for all widgets.
|
|
5
3
|
*
|
|
@@ -85,37 +83,37 @@ import { createElement } from "react";
|
|
|
85
83
|
* ```c
|
|
86
84
|
* static void
|
|
87
85
|
* foo_widget_measure (GtkWidget *widget,
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
86
|
+
* GtkOrientation orientation,
|
|
87
|
+
* int for_size,
|
|
88
|
+
* int *minimum_size,
|
|
89
|
+
* int *natural_size,
|
|
90
|
+
* int *minimum_baseline,
|
|
91
|
+
* int *natural_baseline)
|
|
94
92
|
* {
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
93
|
+
* if (orientation == GTK_ORIENTATION_HORIZONTAL)
|
|
94
|
+
* {
|
|
95
|
+
* // Calculate minimum and natural width
|
|
96
|
+
* }
|
|
97
|
+
* else // VERTICAL
|
|
98
|
+
* {
|
|
99
|
+
* if (i_am_in_height_for_width_mode)
|
|
100
|
+
* {
|
|
101
|
+
* int min_width, dummy;
|
|
102
|
+
*
|
|
103
|
+
* // First, get the minimum width of our widget
|
|
104
|
+
* GTK_WIDGET_GET_CLASS (widget)->measure (widget, GTK_ORIENTATION_HORIZONTAL, -1,
|
|
105
|
+
* &min_width, &dummy, &dummy, &dummy);
|
|
106
|
+
*
|
|
107
|
+
* // Now use the minimum width to retrieve the minimum and natural height to display
|
|
108
|
+
* // that width.
|
|
109
|
+
* GTK_WIDGET_GET_CLASS (widget)->measure (widget, GTK_ORIENTATION_VERTICAL, min_width,
|
|
110
|
+
* minimum_size, natural_size, &dummy, &dummy);
|
|
111
|
+
* }
|
|
112
|
+
* else
|
|
113
|
+
* {
|
|
114
|
+
* // ... some widgets do both.
|
|
115
|
+
* }
|
|
116
|
+
* }
|
|
119
117
|
* }
|
|
120
118
|
* ```
|
|
121
119
|
*
|
|
@@ -169,27 +167,27 @@ import { createElement } from "react";
|
|
|
169
167
|
*
|
|
170
168
|
* ```xml
|
|
171
169
|
* <object class="GtkGrid" id="my_grid">
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
*
|
|
170
|
+
* <child>
|
|
171
|
+
* <object class="GtkLabel" id="label1">
|
|
172
|
+
* <property name="label">Description</property>
|
|
173
|
+
* <layout>
|
|
174
|
+
* <property name="column">0</property>
|
|
175
|
+
* <property name="row">0</property>
|
|
176
|
+
* <property name="row-span">1</property>
|
|
177
|
+
* <property name="column-span">1</property>
|
|
178
|
+
* </layout>
|
|
179
|
+
* </object>
|
|
180
|
+
* </child>
|
|
181
|
+
* <child>
|
|
182
|
+
* <object class="GtkEntry" id="description_entry">
|
|
183
|
+
* <layout>
|
|
184
|
+
* <property name="column">1</property>
|
|
185
|
+
* <property name="row">0</property>
|
|
186
|
+
* <property name="row-span">1</property>
|
|
187
|
+
* <property name="column-span">1</property>
|
|
188
|
+
* </layout>
|
|
189
|
+
* </object>
|
|
190
|
+
* </child>
|
|
193
191
|
* </object>
|
|
194
192
|
* ```
|
|
195
193
|
*
|
|
@@ -198,10 +196,10 @@ import { createElement } from "react";
|
|
|
198
196
|
*
|
|
199
197
|
* ```xml
|
|
200
198
|
* <object class="GtkButton" id="button1">
|
|
201
|
-
*
|
|
202
|
-
*
|
|
203
|
-
*
|
|
204
|
-
*
|
|
199
|
+
* <style>
|
|
200
|
+
* <class name="my-special-button-class"/>
|
|
201
|
+
* <class name="dark-button"/>
|
|
202
|
+
* </style>
|
|
205
203
|
* </object>
|
|
206
204
|
* ```
|
|
207
205
|
*
|
|
@@ -210,10 +208,10 @@ import { createElement } from "react";
|
|
|
210
208
|
*
|
|
211
209
|
* ```xml
|
|
212
210
|
* <object class="GtkButton" id="button1">
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
211
|
+
* <accessibility>
|
|
212
|
+
* <property name="label">Download</property>
|
|
213
|
+
* <relation name="labelled-by">label1</relation>
|
|
214
|
+
* </accessibility>
|
|
217
215
|
* </object>
|
|
218
216
|
* ```
|
|
219
217
|
*
|
|
@@ -259,21 +257,21 @@ import { createElement } from "react";
|
|
|
259
257
|
*
|
|
260
258
|
* ```xml
|
|
261
259
|
* <interface>
|
|
262
|
-
*
|
|
263
|
-
*
|
|
264
|
-
*
|
|
265
|
-
*
|
|
266
|
-
*
|
|
267
|
-
*
|
|
268
|
-
*
|
|
269
|
-
*
|
|
270
|
-
*
|
|
271
|
-
*
|
|
272
|
-
*
|
|
273
|
-
*
|
|
274
|
-
*
|
|
275
|
-
*
|
|
276
|
-
*
|
|
260
|
+
* <template class="FooWidget" parent="GtkBox">
|
|
261
|
+
* <property name="orientation">horizontal</property>
|
|
262
|
+
* <property name="spacing">4</property>
|
|
263
|
+
* <child>
|
|
264
|
+
* <object class="GtkButton" id="hello_button">
|
|
265
|
+
* <property name="label">Hello World</property>
|
|
266
|
+
* <signal name="clicked" handler="hello_button_clicked" object="FooWidget" swapped="yes"/>
|
|
267
|
+
* </object>
|
|
268
|
+
* </child>
|
|
269
|
+
* <child>
|
|
270
|
+
* <object class="GtkButton" id="goodbye_button">
|
|
271
|
+
* <property name="label">Goodbye World</property>
|
|
272
|
+
* </object>
|
|
273
|
+
* </child>
|
|
274
|
+
* </template>
|
|
277
275
|
* </interface>
|
|
278
276
|
* ```
|
|
279
277
|
*
|
|
@@ -286,10 +284,10 @@ import { createElement } from "react";
|
|
|
286
284
|
* static void
|
|
287
285
|
* foo_widget_class_init (FooWidgetClass *klass)
|
|
288
286
|
* {
|
|
289
|
-
*
|
|
287
|
+
* // ...
|
|
290
288
|
*
|
|
291
|
-
*
|
|
292
|
-
*
|
|
289
|
+
* gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass),
|
|
290
|
+
* "/com/example/ui/foowidget.ui");
|
|
293
291
|
* }
|
|
294
292
|
* ```
|
|
295
293
|
*
|
|
@@ -300,9 +298,9 @@ import { createElement } from "react";
|
|
|
300
298
|
* static void
|
|
301
299
|
* foo_widget_init (FooWidget *self)
|
|
302
300
|
* {
|
|
303
|
-
*
|
|
301
|
+
* gtk_widget_init_template (GTK_WIDGET (self));
|
|
304
302
|
*
|
|
305
|
-
*
|
|
303
|
+
* // Initialize the rest of the widget...
|
|
306
304
|
* }
|
|
307
305
|
* ```
|
|
308
306
|
*
|
|
@@ -313,14 +311,14 @@ import { createElement } from "react";
|
|
|
313
311
|
* static void
|
|
314
312
|
* foo_widget_dispose (GObject *gobject)
|
|
315
313
|
* {
|
|
316
|
-
*
|
|
314
|
+
* FooWidget *self = FOO_WIDGET (gobject);
|
|
317
315
|
*
|
|
318
|
-
*
|
|
316
|
+
* // Dispose objects for which you have a reference...
|
|
319
317
|
*
|
|
320
|
-
*
|
|
321
|
-
*
|
|
318
|
+
* // Clear the template children for this widget type
|
|
319
|
+
* gtk_widget_dispose_template (GTK_WIDGET (self), FOO_TYPE_WIDGET);
|
|
322
320
|
*
|
|
323
|
-
*
|
|
321
|
+
* G_OBJECT_CLASS (foo_widget_parent_class)->dispose (gobject);
|
|
324
322
|
* }
|
|
325
323
|
* ```
|
|
326
324
|
*
|
|
@@ -334,8 +332,8 @@ import { createElement } from "react";
|
|
|
334
332
|
*
|
|
335
333
|
* ```c
|
|
336
334
|
* typedef struct {
|
|
337
|
-
*
|
|
338
|
-
*
|
|
335
|
+
* GtkWidget *hello_button;
|
|
336
|
+
* GtkWidget *goodbye_button;
|
|
339
337
|
* } FooWidgetPrivate;
|
|
340
338
|
*
|
|
341
339
|
* G_DEFINE_TYPE_WITH_PRIVATE (FooWidget, foo_widget, GTK_TYPE_BOX)
|
|
@@ -343,29 +341,29 @@ import { createElement } from "react";
|
|
|
343
341
|
* static void
|
|
344
342
|
* foo_widget_dispose (GObject *gobject)
|
|
345
343
|
* {
|
|
346
|
-
*
|
|
344
|
+
* gtk_widget_dispose_template (GTK_WIDGET (gobject), FOO_TYPE_WIDGET);
|
|
347
345
|
*
|
|
348
|
-
*
|
|
346
|
+
* G_OBJECT_CLASS (foo_widget_parent_class)->dispose (gobject);
|
|
349
347
|
* }
|
|
350
348
|
*
|
|
351
349
|
* static void
|
|
352
350
|
* foo_widget_class_init (FooWidgetClass *klass)
|
|
353
351
|
* {
|
|
354
|
-
*
|
|
355
|
-
*
|
|
356
|
-
*
|
|
357
|
-
*
|
|
358
|
-
*
|
|
359
|
-
*
|
|
360
|
-
*
|
|
361
|
-
*
|
|
362
|
-
*
|
|
352
|
+
* // ...
|
|
353
|
+
* G_OBJECT_CLASS (klass)->dispose = foo_widget_dispose;
|
|
354
|
+
*
|
|
355
|
+
* gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass),
|
|
356
|
+
* "/com/example/ui/foowidget.ui");
|
|
357
|
+
* gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass),
|
|
358
|
+
* FooWidget, hello_button);
|
|
359
|
+
* gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass),
|
|
360
|
+
* FooWidget, goodbye_button);
|
|
363
361
|
* }
|
|
364
362
|
*
|
|
365
363
|
* static void
|
|
366
364
|
* foo_widget_init (FooWidget *widget)
|
|
367
365
|
* {
|
|
368
|
-
*
|
|
366
|
+
* gtk_widget_init_template (GTK_WIDGET (widget));
|
|
369
367
|
* }
|
|
370
368
|
* ```
|
|
371
369
|
*
|
|
@@ -379,22 +377,22 @@ import { createElement } from "react";
|
|
|
379
377
|
* // because of the swapped="yes" attribute in the template XML
|
|
380
378
|
* static void
|
|
381
379
|
* hello_button_clicked (FooWidget *self,
|
|
382
|
-
*
|
|
380
|
+
* GtkButton *button)
|
|
383
381
|
* {
|
|
384
|
-
*
|
|
382
|
+
* g_print ("Hello, world!\n");
|
|
385
383
|
* }
|
|
386
384
|
*
|
|
387
385
|
* static void
|
|
388
386
|
* foo_widget_class_init (FooWidgetClass *klass)
|
|
389
387
|
* {
|
|
390
|
-
*
|
|
391
|
-
*
|
|
392
|
-
*
|
|
393
|
-
*
|
|
388
|
+
* // ...
|
|
389
|
+
* gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass),
|
|
390
|
+
* "/com/example/ui/foowidget.ui");
|
|
391
|
+
* gtk_widget_class_bind_template_callback (GTK_WIDGET_CLASS (klass), hello_button_clicked);
|
|
394
392
|
* }
|
|
395
393
|
* ```
|
|
396
394
|
*/
|
|
397
|
-
export const
|
|
395
|
+
export const GtkWidget = "GtkWidget";
|
|
398
396
|
/**
|
|
399
397
|
* A toplevel window which can contain other widgets.
|
|
400
398
|
*
|
|
@@ -468,14 +466,7 @@ export const Widget = "Widget";
|
|
|
468
466
|
*
|
|
469
467
|
* From GTK 4.12 to 4.18, it used the {@link AccessibleRole.application} role.
|
|
470
468
|
*/
|
|
471
|
-
export const
|
|
472
|
-
Root: "Window.Root",
|
|
473
|
-
Child: "Window.Child",
|
|
474
|
-
DefaultWidget: "Window.DefaultWidget",
|
|
475
|
-
FocusWidget: "Window.FocusWidget",
|
|
476
|
-
Titlebar: "Window.Titlebar",
|
|
477
|
-
TransientFor: "Window.TransientFor",
|
|
478
|
-
};
|
|
469
|
+
export const GtkWindow = "GtkWindow";
|
|
479
470
|
/**
|
|
480
471
|
* Displays information about a program.
|
|
481
472
|
*
|
|
@@ -513,10 +504,10 @@ export const Window = {
|
|
|
513
504
|
* g_object_unref (logo_file);
|
|
514
505
|
*
|
|
515
506
|
* gtk_show_about_dialog (NULL,
|
|
516
|
-
*
|
|
517
|
-
*
|
|
518
|
-
*
|
|
519
|
-
*
|
|
507
|
+
* "program-name", "ExampleCode",
|
|
508
|
+
* "logo", example_logo,
|
|
509
|
+
* "title", _("About ExampleCode"),
|
|
510
|
+
* NULL);
|
|
520
511
|
* ```
|
|
521
512
|
*
|
|
522
513
|
* ## Shortcuts and Gestures
|
|
@@ -530,7 +521,7 @@ export const Window = {
|
|
|
530
521
|
* `GtkAboutDialog` has a single CSS node with the name `window` and style
|
|
531
522
|
* class `.aboutdialog`.
|
|
532
523
|
*/
|
|
533
|
-
export const
|
|
524
|
+
export const GtkAboutDialog = "GtkAboutDialog";
|
|
534
525
|
/**
|
|
535
526
|
* Presents contextual actions.
|
|
536
527
|
*
|
|
@@ -556,12 +547,12 @@ export const AboutDialog = "AboutDialog";
|
|
|
556
547
|
* ```
|
|
557
548
|
* actionbar
|
|
558
549
|
* ╰── revealer
|
|
559
|
-
*
|
|
560
|
-
*
|
|
561
|
-
*
|
|
562
|
-
*
|
|
563
|
-
*
|
|
564
|
-
*
|
|
550
|
+
* ╰── box
|
|
551
|
+
* ├── box.start
|
|
552
|
+
* │ ╰── [start children]
|
|
553
|
+
* ├── [center widget]
|
|
554
|
+
* ╰── box.end
|
|
555
|
+
* ╰── [end children]
|
|
565
556
|
* ```
|
|
566
557
|
*
|
|
567
558
|
* A `GtkActionBar`'s CSS node is called `actionbar`. It contains a `revealer`
|
|
@@ -571,7 +562,7 @@ export const AboutDialog = "AboutDialog";
|
|
|
571
562
|
*
|
|
572
563
|
* Each of the boxes contains children packed for that side.
|
|
573
564
|
*/
|
|
574
|
-
export const
|
|
565
|
+
export const GtkActionBar = "GtkActionBar";
|
|
575
566
|
/**
|
|
576
567
|
* The `GtkAppChooserButton` lets the user select an application.
|
|
577
568
|
*
|
|
@@ -601,7 +592,7 @@ export const ActionBar = "ActionBar";
|
|
|
601
592
|
*
|
|
602
593
|
* `GtkAppChooserButton` has a single CSS node with the name “appchooserbutton”.
|
|
603
594
|
*/
|
|
604
|
-
export const
|
|
595
|
+
export const GtkAppChooserButton = "GtkAppChooserButton";
|
|
605
596
|
/**
|
|
606
597
|
* `GtkAppChooserDialog` shows a `GtkAppChooserWidget` inside a `GtkDialog`.
|
|
607
598
|
*
|
|
@@ -621,7 +612,7 @@ export const AppChooserButton = "AppChooserButton";
|
|
|
621
612
|
* `GtkAppChooserDialog` has a single CSS node with the name `window` and style
|
|
622
613
|
* class `.appchooser`.
|
|
623
614
|
*/
|
|
624
|
-
export const
|
|
615
|
+
export const GtkAppChooserDialog = "GtkAppChooserDialog";
|
|
625
616
|
/**
|
|
626
617
|
* `GtkAppChooserWidget` is a widget for selecting applications.
|
|
627
618
|
*
|
|
@@ -647,7 +638,7 @@ export const AppChooserDialog = "AppChooserDialog";
|
|
|
647
638
|
*
|
|
648
639
|
* `GtkAppChooserWidget` has a single CSS node with name appchooser.
|
|
649
640
|
*/
|
|
650
|
-
export const
|
|
641
|
+
export const GtkAppChooserWidget = "GtkAppChooserWidget";
|
|
651
642
|
/**
|
|
652
643
|
* A `GtkWindow` subclass that integrates with `GtkApplication`.
|
|
653
644
|
*
|
|
@@ -693,22 +684,22 @@ export const AppChooserWidget = "AppChooserWidget";
|
|
|
693
684
|
* GtkApplication *app = gtk_application_new ("org.gtk.test", 0);
|
|
694
685
|
*
|
|
695
686
|
* GtkBuilder *builder = gtk_builder_new_from_string (
|
|
696
|
-
*
|
|
697
|
-
*
|
|
698
|
-
*
|
|
699
|
-
*
|
|
700
|
-
*
|
|
701
|
-
*
|
|
702
|
-
*
|
|
703
|
-
*
|
|
704
|
-
*
|
|
705
|
-
*
|
|
706
|
-
*
|
|
707
|
-
*
|
|
708
|
-
*
|
|
709
|
-
*
|
|
710
|
-
*
|
|
711
|
-
*
|
|
687
|
+
* "<interface>"
|
|
688
|
+
* " <menu id='menubar'>"
|
|
689
|
+
* " <submenu>"
|
|
690
|
+
* " <attribute name='label' translatable='yes'>_Edit</attribute>"
|
|
691
|
+
* " <item>"
|
|
692
|
+
* " <attribute name='label' translatable='yes'>_Copy</attribute>"
|
|
693
|
+
* " <attribute name='action'>win.copy</attribute>"
|
|
694
|
+
* " </item>"
|
|
695
|
+
* " <item>"
|
|
696
|
+
* " <attribute name='label' translatable='yes'>_Paste</attribute>"
|
|
697
|
+
* " <attribute name='action'>win.paste</attribute>"
|
|
698
|
+
* " </item>"
|
|
699
|
+
* " </submenu>"
|
|
700
|
+
* " </menu>"
|
|
701
|
+
* "</interface>",
|
|
702
|
+
* -1);
|
|
712
703
|
*
|
|
713
704
|
* GMenuModel *menubar = G_MENU_MODEL (gtk_builder_get_object (builder, "menubar"));
|
|
714
705
|
* gtk_application_set_menubar (GTK_APPLICATION (app), menubar);
|
|
@@ -719,7 +710,7 @@ export const AppChooserWidget = "AppChooserWidget";
|
|
|
719
710
|
* GtkWidget *window = gtk_application_window_new (app);
|
|
720
711
|
* ```
|
|
721
712
|
*/
|
|
722
|
-
export const
|
|
713
|
+
export const GtkApplicationWindow = "GtkApplicationWindow";
|
|
723
714
|
/**
|
|
724
715
|
* Preserves the aspect ratio of its child.
|
|
725
716
|
*
|
|
@@ -736,7 +727,7 @@ export const ApplicationWindow = "ApplicationWindow";
|
|
|
736
727
|
*
|
|
737
728
|
* Starting from GTK 4.12, `GtkAspectFrame` uses the {@link AccessibleRole.generic} role.
|
|
738
729
|
*/
|
|
739
|
-
export const
|
|
730
|
+
export const GtkAspectFrame = "GtkAspectFrame";
|
|
740
731
|
/**
|
|
741
732
|
* `GtkAssistant` is used to represent a complex as a series of steps.
|
|
742
733
|
*
|
|
@@ -775,7 +766,7 @@ export const AspectFrame = "AspectFrame";
|
|
|
775
766
|
* `GtkAssistant` has a single CSS node with the name window and style
|
|
776
767
|
* class .assistant.
|
|
777
768
|
*/
|
|
778
|
-
export const
|
|
769
|
+
export const GtkAssistant = "GtkAssistant";
|
|
779
770
|
/**
|
|
780
771
|
* Arranges child widgets into a single row or column.
|
|
781
772
|
*
|
|
@@ -812,7 +803,7 @@ export const Assistant = "Assistant";
|
|
|
812
803
|
*
|
|
813
804
|
* Starting from GTK 4.12, `GtkBox` uses the {@link AccessibleRole.generic} role.
|
|
814
805
|
*/
|
|
815
|
-
export const
|
|
806
|
+
export const GtkBox = "GtkBox";
|
|
816
807
|
/**
|
|
817
808
|
* Calls a callback function when the button is clicked.
|
|
818
809
|
*
|
|
@@ -850,7 +841,7 @@ export const Box = "Box";
|
|
|
850
841
|
*
|
|
851
842
|
* `GtkButton` uses the {@link AccessibleRole.button} role.
|
|
852
843
|
*/
|
|
853
|
-
export const
|
|
844
|
+
export const GtkButton = "GtkButton";
|
|
854
845
|
/**
|
|
855
846
|
* Displays a Gregorian calendar, one month at a time.
|
|
856
847
|
*
|
|
@@ -891,7 +882,7 @@ export const Button = "Button";
|
|
|
891
882
|
* │ ├── label.year
|
|
892
883
|
* │ ╰── button
|
|
893
884
|
* ╰── grid
|
|
894
|
-
*
|
|
885
|
+
* ╰── label[.day-name][.week-number][.day-number][.other-month][.today]
|
|
895
886
|
* ```
|
|
896
887
|
*
|
|
897
888
|
* `GtkCalendar` has a main node with name calendar. It contains a subnode
|
|
@@ -906,7 +897,7 @@ export const Button = "Button";
|
|
|
906
897
|
*
|
|
907
898
|
* Marked day labels get the :selected state assigned.
|
|
908
899
|
*/
|
|
909
|
-
export const
|
|
900
|
+
export const GtkCalendar = "GtkCalendar";
|
|
910
901
|
/**
|
|
911
902
|
* A widget displaying a single row of a GtkTreeModel
|
|
912
903
|
*
|
|
@@ -928,7 +919,7 @@ export const Calendar = "Calendar";
|
|
|
928
919
|
*
|
|
929
920
|
* GtkCellView has a single CSS node with name cellview.
|
|
930
921
|
*/
|
|
931
|
-
export const
|
|
922
|
+
export const GtkCellView = "GtkCellView";
|
|
932
923
|
/**
|
|
933
924
|
* Arranges three children in a row, keeping the middle child
|
|
934
925
|
* centered as well as possible.
|
|
@@ -966,12 +957,7 @@ export const CellView = "CellView";
|
|
|
966
957
|
* Starting from GTK 4.12, `GtkCenterBox` uses the {@link AccessibleRole.generic}
|
|
967
958
|
* role.
|
|
968
959
|
*/
|
|
969
|
-
export const
|
|
970
|
-
Root: "CenterBox.Root",
|
|
971
|
-
CenterWidget: "CenterBox.CenterWidget",
|
|
972
|
-
EndWidget: "CenterBox.EndWidget",
|
|
973
|
-
StartWidget: "CenterBox.StartWidget",
|
|
974
|
-
};
|
|
960
|
+
export const GtkCenterBox = "GtkCenterBox";
|
|
975
961
|
/**
|
|
976
962
|
* Places a label next to an indicator.
|
|
977
963
|
*
|
|
@@ -1037,11 +1023,7 @@ export const CenterBox = {
|
|
|
1037
1023
|
*
|
|
1038
1024
|
* `GtkCheckButton` uses the {@link AccessibleRole.checkbox} role.
|
|
1039
1025
|
*/
|
|
1040
|
-
export const
|
|
1041
|
-
Root: "CheckButton.Root",
|
|
1042
|
-
Child: "CheckButton.Child",
|
|
1043
|
-
Group: "CheckButton.Group",
|
|
1044
|
-
};
|
|
1026
|
+
export const GtkCheckButton = "GtkCheckButton";
|
|
1045
1027
|
/**
|
|
1046
1028
|
* The `GtkColorButton` allows to open a color chooser dialog to change
|
|
1047
1029
|
* the color.
|
|
@@ -1055,14 +1037,14 @@ export const CheckButton = {
|
|
|
1055
1037
|
* ```
|
|
1056
1038
|
* colorbutton
|
|
1057
1039
|
* ╰── button.color
|
|
1058
|
-
*
|
|
1040
|
+
* ╰── [content]
|
|
1059
1041
|
* ```
|
|
1060
1042
|
*
|
|
1061
1043
|
* `GtkColorButton` has a single CSS node with name colorbutton which
|
|
1062
1044
|
* contains a button node. To differentiate it from a plain `GtkButton`,
|
|
1063
1045
|
* it gets the .color style class.
|
|
1064
1046
|
*/
|
|
1065
|
-
export const
|
|
1047
|
+
export const GtkColorButton = "GtkColorButton";
|
|
1066
1048
|
/**
|
|
1067
1049
|
* A dialog for choosing a color.
|
|
1068
1050
|
*
|
|
@@ -1084,7 +1066,7 @@ export const ColorButton = "ColorButton";
|
|
|
1084
1066
|
* `GtkColorChooserDialog` has a single CSS node with the name `window` and style
|
|
1085
1067
|
* class `.colorchooser`.
|
|
1086
1068
|
*/
|
|
1087
|
-
export const
|
|
1069
|
+
export const GtkColorChooserDialog = "GtkColorChooserDialog";
|
|
1088
1070
|
/**
|
|
1089
1071
|
* The `GtkColorChooserWidget` widget lets the user select a color.
|
|
1090
1072
|
*
|
|
@@ -1119,7 +1101,7 @@ export const ColorChooserDialog = "ColorChooserDialog";
|
|
|
1119
1101
|
*
|
|
1120
1102
|
* `GtkColorChooserWidget` has a single CSS node with name colorchooser.
|
|
1121
1103
|
*/
|
|
1122
|
-
export const
|
|
1104
|
+
export const GtkColorChooserWidget = "GtkColorChooserWidget";
|
|
1123
1105
|
/**
|
|
1124
1106
|
* Opens a color chooser dialog to select a color.
|
|
1125
1107
|
*
|
|
@@ -1132,23 +1114,14 @@ export const ColorChooserWidget = "ColorChooserWidget";
|
|
|
1132
1114
|
* ```
|
|
1133
1115
|
* colorbutton
|
|
1134
1116
|
* ╰── button.color
|
|
1135
|
-
*
|
|
1117
|
+
* ╰── [content]
|
|
1136
1118
|
* ```
|
|
1137
1119
|
*
|
|
1138
1120
|
* `GtkColorDialogButton` has a single CSS node with name colorbutton which
|
|
1139
1121
|
* contains a button node. To differentiate it from a plain `GtkButton`,
|
|
1140
1122
|
* it gets the .color style class.
|
|
1141
1123
|
*/
|
|
1142
|
-
export const
|
|
1143
|
-
function ColumnViewRoot(props) {
|
|
1144
|
-
return createElement("ColumnView.Root", props);
|
|
1145
|
-
}
|
|
1146
|
-
function ColumnViewColumn(props) {
|
|
1147
|
-
return createElement("ColumnView.Column", props);
|
|
1148
|
-
}
|
|
1149
|
-
function ColumnViewItem(props) {
|
|
1150
|
-
return createElement("ColumnView.Item", props);
|
|
1151
|
-
}
|
|
1124
|
+
export const GtkColorDialogButton = "GtkColorDialogButton";
|
|
1152
1125
|
/**
|
|
1153
1126
|
* Presents a large dynamic list of items using multiple columns with headers.
|
|
1154
1127
|
*
|
|
@@ -1215,11 +1188,7 @@ function ColumnViewItem(props) {
|
|
|
1215
1188
|
* are using the {@link AccessibleRole.row} role, and individual cells are using
|
|
1216
1189
|
* the {@link AccessibleRole.grid_cell} role
|
|
1217
1190
|
*/
|
|
1218
|
-
export const
|
|
1219
|
-
Root: ColumnViewRoot,
|
|
1220
|
-
Column: ColumnViewColumn,
|
|
1221
|
-
Item: ColumnViewItem,
|
|
1222
|
-
};
|
|
1191
|
+
export const GtkColumnView = "GtkColumnView";
|
|
1223
1192
|
/**
|
|
1224
1193
|
* A `GtkComboBox` is a widget that allows the user to choose from a list of
|
|
1225
1194
|
* valid choices.
|
|
@@ -1282,7 +1251,7 @@ export const ColumnView = {
|
|
|
1282
1251
|
*
|
|
1283
1252
|
* `GtkComboBox` uses the {@link AccessibleRole.combo_box} role.
|
|
1284
1253
|
*/
|
|
1285
|
-
export const
|
|
1254
|
+
export const GtkComboBox = "GtkComboBox";
|
|
1286
1255
|
/**
|
|
1287
1256
|
* A `GtkComboBoxText` is a simple variant of `GtkComboBox` for text-only
|
|
1288
1257
|
* use cases.
|
|
@@ -1318,11 +1287,11 @@ export const ComboBox = "ComboBox";
|
|
|
1318
1287
|
* Here is a UI definition fragment specifying `GtkComboBoxText` items:
|
|
1319
1288
|
* ```xml
|
|
1320
1289
|
* <object class="GtkComboBoxText">
|
|
1321
|
-
*
|
|
1322
|
-
*
|
|
1323
|
-
*
|
|
1324
|
-
*
|
|
1325
|
-
*
|
|
1290
|
+
* <items>
|
|
1291
|
+
* <item translatable="yes" id="factory">Factory</item>
|
|
1292
|
+
* <item translatable="yes" id="home">Home</item>
|
|
1293
|
+
* <item translatable="yes" id="subway">Subway</item>
|
|
1294
|
+
* </items>
|
|
1326
1295
|
* </object>
|
|
1327
1296
|
* ```
|
|
1328
1297
|
*
|
|
@@ -1331,16 +1300,16 @@ export const ComboBox = "ComboBox";
|
|
|
1331
1300
|
* ```
|
|
1332
1301
|
* combobox
|
|
1333
1302
|
* ╰── box.linked
|
|
1334
|
-
*
|
|
1335
|
-
*
|
|
1336
|
-
*
|
|
1303
|
+
* ├── entry.combo
|
|
1304
|
+
* ├── button.combo
|
|
1305
|
+
* ╰── window.popup
|
|
1337
1306
|
* ```
|
|
1338
1307
|
*
|
|
1339
1308
|
* `GtkComboBoxText` has a single CSS node with name combobox. It adds
|
|
1340
1309
|
* the style class .combo to the main CSS nodes of its entry and button
|
|
1341
1310
|
* children, and the .linked class to the node of its internal box.
|
|
1342
1311
|
*/
|
|
1343
|
-
export const
|
|
1312
|
+
export const GtkComboBoxText = "GtkComboBoxText";
|
|
1344
1313
|
/**
|
|
1345
1314
|
* Dialogs are a convenient way to prompt the user for a small amount
|
|
1346
1315
|
* of input.
|
|
@@ -1396,31 +1365,31 @@ export const ComboBoxText = "ComboBoxText";
|
|
|
1396
1365
|
* void
|
|
1397
1366
|
* quick_message (GtkWindow *parent, char *message)
|
|
1398
1367
|
* {
|
|
1399
|
-
*
|
|
1400
|
-
*
|
|
1401
|
-
*
|
|
1402
|
-
*
|
|
1403
|
-
*
|
|
1404
|
-
*
|
|
1405
|
-
*
|
|
1406
|
-
*
|
|
1407
|
-
*
|
|
1408
|
-
*
|
|
1409
|
-
*
|
|
1410
|
-
*
|
|
1411
|
-
*
|
|
1412
|
-
*
|
|
1413
|
-
*
|
|
1414
|
-
*
|
|
1415
|
-
*
|
|
1416
|
-
*
|
|
1417
|
-
*
|
|
1418
|
-
*
|
|
1419
|
-
*
|
|
1420
|
-
*
|
|
1421
|
-
*
|
|
1422
|
-
*
|
|
1423
|
-
*
|
|
1368
|
+
* GtkWidget *dialog, *label, *content_area;
|
|
1369
|
+
* GtkDialogFlags flags;
|
|
1370
|
+
*
|
|
1371
|
+
* // Create the widgets
|
|
1372
|
+
* flags = GTK_DIALOG_DESTROY_WITH_PARENT;
|
|
1373
|
+
* dialog = gtk_dialog_new_with_buttons ("Message",
|
|
1374
|
+
* parent,
|
|
1375
|
+
* flags,
|
|
1376
|
+
* _("_OK"),
|
|
1377
|
+
* GTK_RESPONSE_NONE,
|
|
1378
|
+
* NULL);
|
|
1379
|
+
* content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
|
|
1380
|
+
* label = gtk_label_new (message);
|
|
1381
|
+
*
|
|
1382
|
+
* // Ensure that the dialog box is destroyed when the user responds
|
|
1383
|
+
*
|
|
1384
|
+
* g_signal_connect_swapped (dialog,
|
|
1385
|
+
* "response",
|
|
1386
|
+
* G_CALLBACK (gtk_window_destroy),
|
|
1387
|
+
* dialog);
|
|
1388
|
+
*
|
|
1389
|
+
* // Add the label, and show everything we’ve added
|
|
1390
|
+
*
|
|
1391
|
+
* gtk_box_append (GTK_BOX (content_area), label);
|
|
1392
|
+
* gtk_widget_show (dialog);
|
|
1424
1393
|
* }
|
|
1425
1394
|
* ```
|
|
1426
1395
|
*
|
|
@@ -1446,17 +1415,17 @@ export const ComboBoxText = "ComboBoxText";
|
|
|
1446
1415
|
*
|
|
1447
1416
|
* ```xml
|
|
1448
1417
|
* <object class="GtkDialog" id="dialog1">
|
|
1449
|
-
*
|
|
1450
|
-
*
|
|
1451
|
-
*
|
|
1452
|
-
*
|
|
1453
|
-
*
|
|
1454
|
-
*
|
|
1455
|
-
*
|
|
1456
|
-
*
|
|
1457
|
-
*
|
|
1458
|
-
*
|
|
1459
|
-
*
|
|
1418
|
+
* <child type="action">
|
|
1419
|
+
* <object class="GtkButton" id="button_cancel"/>
|
|
1420
|
+
* </child>
|
|
1421
|
+
* <child type="action">
|
|
1422
|
+
* <object class="GtkButton" id="button_ok">
|
|
1423
|
+
* </object>
|
|
1424
|
+
* </child>
|
|
1425
|
+
* <action-widgets>
|
|
1426
|
+
* <action-widget response="cancel">button_cancel</action-widget>
|
|
1427
|
+
* <action-widget response="ok" default="true">button_ok</action-widget>
|
|
1428
|
+
* </action-widgets>
|
|
1460
1429
|
* </object>
|
|
1461
1430
|
* ```
|
|
1462
1431
|
*
|
|
@@ -1464,7 +1433,7 @@ export const ComboBoxText = "ComboBoxText";
|
|
|
1464
1433
|
*
|
|
1465
1434
|
* `GtkDialog` uses the %GTK_ACCESSIBLE_ROLE_DIALOG role.
|
|
1466
1435
|
*/
|
|
1467
|
-
export const
|
|
1436
|
+
export const GtkDialog = "GtkDialog";
|
|
1468
1437
|
/**
|
|
1469
1438
|
* A `GtkRoot` implementation for drag icons.
|
|
1470
1439
|
*
|
|
@@ -1478,7 +1447,7 @@ export const Dialog = "Dialog";
|
|
|
1478
1447
|
*
|
|
1479
1448
|
* Keep in mind that drag icons do not allow user input.
|
|
1480
1449
|
*/
|
|
1481
|
-
export const
|
|
1450
|
+
export const GtkDragIcon = "GtkDragIcon";
|
|
1482
1451
|
/**
|
|
1483
1452
|
* Allows drawing with cairo.
|
|
1484
1453
|
*
|
|
@@ -1506,37 +1475,37 @@ export const DragIcon = "DragIcon";
|
|
|
1506
1475
|
* ```c
|
|
1507
1476
|
* static void
|
|
1508
1477
|
* draw_function (GtkDrawingArea *area,
|
|
1509
|
-
*
|
|
1510
|
-
*
|
|
1511
|
-
*
|
|
1512
|
-
*
|
|
1478
|
+
* cairo_t *cr,
|
|
1479
|
+
* int width,
|
|
1480
|
+
* int height,
|
|
1481
|
+
* gpointer data)
|
|
1513
1482
|
* {
|
|
1514
|
-
*
|
|
1483
|
+
* GdkRGBA color;
|
|
1515
1484
|
*
|
|
1516
|
-
*
|
|
1517
|
-
*
|
|
1518
|
-
*
|
|
1519
|
-
*
|
|
1485
|
+
* cairo_arc (cr,
|
|
1486
|
+
* width / 2.0, height / 2.0,
|
|
1487
|
+
* MIN (width, height) / 2.0,
|
|
1488
|
+
* 0, 2 * G_PI);
|
|
1520
1489
|
*
|
|
1521
|
-
*
|
|
1522
|
-
*
|
|
1523
|
-
*
|
|
1490
|
+
* gtk_widget_get_color (GTK_WIDGET (area),
|
|
1491
|
+
* &color);
|
|
1492
|
+
* gdk_cairo_set_source_rgba (cr, &color);
|
|
1524
1493
|
*
|
|
1525
|
-
*
|
|
1494
|
+
* cairo_fill (cr);
|
|
1526
1495
|
* }
|
|
1527
1496
|
*
|
|
1528
1497
|
* int
|
|
1529
1498
|
* main (int argc, char **argv)
|
|
1530
1499
|
* {
|
|
1531
|
-
*
|
|
1532
|
-
*
|
|
1533
|
-
*
|
|
1534
|
-
*
|
|
1535
|
-
*
|
|
1536
|
-
*
|
|
1537
|
-
*
|
|
1538
|
-
*
|
|
1539
|
-
*
|
|
1500
|
+
* gtk_init ();
|
|
1501
|
+
*
|
|
1502
|
+
* GtkWidget *area = gtk_drawing_area_new ();
|
|
1503
|
+
* gtk_drawing_area_set_content_width (GTK_DRAWING_AREA (area), 100);
|
|
1504
|
+
* gtk_drawing_area_set_content_height (GTK_DRAWING_AREA (area), 100);
|
|
1505
|
+
* gtk_drawing_area_set_draw_func (GTK_DRAWING_AREA (area),
|
|
1506
|
+
* draw_function,
|
|
1507
|
+
* NULL, NULL);
|
|
1508
|
+
* return 0;
|
|
1540
1509
|
* }
|
|
1541
1510
|
* ```
|
|
1542
1511
|
*
|
|
@@ -1559,13 +1528,7 @@ export const DragIcon = "DragIcon";
|
|
|
1559
1528
|
* If you need more complex control over your widget, you should consider
|
|
1560
1529
|
* creating your own `GtkWidget` subclass.
|
|
1561
1530
|
*/
|
|
1562
|
-
export const
|
|
1563
|
-
function DropDownRoot(props) {
|
|
1564
|
-
return createElement("DropDown.Root", props);
|
|
1565
|
-
}
|
|
1566
|
-
function DropDownItem(props) {
|
|
1567
|
-
return createElement("DropDown.Item", props);
|
|
1568
|
-
}
|
|
1531
|
+
export const GtkDrawingArea = "GtkDrawingArea";
|
|
1569
1532
|
/**
|
|
1570
1533
|
* Allows the user to choose an item from a list of options.
|
|
1571
1534
|
*
|
|
@@ -1595,15 +1558,15 @@ function DropDownItem(props) {
|
|
|
1595
1558
|
*
|
|
1596
1559
|
* ```xml
|
|
1597
1560
|
* <object class="GtkDropDown">
|
|
1598
|
-
*
|
|
1599
|
-
*
|
|
1600
|
-
*
|
|
1601
|
-
*
|
|
1602
|
-
*
|
|
1603
|
-
*
|
|
1604
|
-
*
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1561
|
+
* <property name="model">
|
|
1562
|
+
* <object class="GtkStringList">
|
|
1563
|
+
* <items>
|
|
1564
|
+
* <item translatable="yes">Factory</item>
|
|
1565
|
+
* <item translatable="yes">Home</item>
|
|
1566
|
+
* <item translatable="yes">Subway</item>
|
|
1567
|
+
* </items>
|
|
1568
|
+
* </object>
|
|
1569
|
+
* </property>
|
|
1607
1570
|
* </object>
|
|
1608
1571
|
* ```
|
|
1609
1572
|
*
|
|
@@ -1623,10 +1586,7 @@ function DropDownItem(props) {
|
|
|
1623
1586
|
*
|
|
1624
1587
|
* `GtkDropDown` uses the {@link AccessibleRole.combo_box} role.
|
|
1625
1588
|
*/
|
|
1626
|
-
export const
|
|
1627
|
-
Root: DropDownRoot,
|
|
1628
|
-
Item: DropDownItem,
|
|
1629
|
-
};
|
|
1589
|
+
export const GtkDropDown = "GtkDropDown";
|
|
1630
1590
|
/**
|
|
1631
1591
|
* Allows users to edit the displayed text by switching to an “edit mode”.
|
|
1632
1592
|
*
|
|
@@ -1659,8 +1619,8 @@ export const DropDown = {
|
|
|
1659
1619
|
* ```
|
|
1660
1620
|
* editablelabel[.editing]
|
|
1661
1621
|
* ╰── stack
|
|
1662
|
-
*
|
|
1663
|
-
*
|
|
1622
|
+
* ├── label
|
|
1623
|
+
* ╰── text
|
|
1664
1624
|
* ```
|
|
1665
1625
|
*
|
|
1666
1626
|
* `GtkEditableLabel` has a main node with the name editablelabel.
|
|
@@ -1670,7 +1630,7 @@ export const DropDown = {
|
|
|
1670
1630
|
* For all the subnodes added to the text node in various situations,
|
|
1671
1631
|
* see {@link Text}.
|
|
1672
1632
|
*/
|
|
1673
|
-
export const
|
|
1633
|
+
export const GtkEditableLabel = "GtkEditableLabel";
|
|
1674
1634
|
/**
|
|
1675
1635
|
* Used by text widgets to let users insert Emoji characters.
|
|
1676
1636
|
*
|
|
@@ -1699,9 +1659,9 @@ export const EditableLabel = "EditableLabel";
|
|
|
1699
1659
|
* ├── box.emoji-searchbar
|
|
1700
1660
|
* │ ╰── entry.search
|
|
1701
1661
|
* ╰── box.emoji-toolbar
|
|
1702
|
-
*
|
|
1703
|
-
*
|
|
1704
|
-
*
|
|
1662
|
+
* ├── button.image-button.emoji-section
|
|
1663
|
+
* ├── ...
|
|
1664
|
+
* ╰── button.image-button.emoji-section
|
|
1705
1665
|
* ```
|
|
1706
1666
|
*
|
|
1707
1667
|
* Every `GtkEmojiChooser` consists of a main node called popover.
|
|
@@ -1713,7 +1673,7 @@ export const EditableLabel = "EditableLabel";
|
|
|
1713
1673
|
* consists of buttons with the .emoji-section style class and gets the
|
|
1714
1674
|
* .emoji-toolbar style class itself.
|
|
1715
1675
|
*/
|
|
1716
|
-
export const
|
|
1676
|
+
export const GtkEmojiChooser = "GtkEmojiChooser";
|
|
1717
1677
|
/**
|
|
1718
1678
|
* A single-line text entry widget.
|
|
1719
1679
|
*
|
|
@@ -1786,10 +1746,10 @@ export const EmojiChooser = "EmojiChooser";
|
|
|
1786
1746
|
* An example of a UI definition fragment specifying Pango attributes:
|
|
1787
1747
|
* ```xml
|
|
1788
1748
|
* <object class="GtkEntry">
|
|
1789
|
-
*
|
|
1790
|
-
*
|
|
1791
|
-
*
|
|
1792
|
-
*
|
|
1749
|
+
* <attributes>
|
|
1750
|
+
* <attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
|
|
1751
|
+
* <attribute name="background" value="red" start="5" end="10"/>
|
|
1752
|
+
* </attributes>
|
|
1793
1753
|
* </object>
|
|
1794
1754
|
* ```
|
|
1795
1755
|
*
|
|
@@ -1803,7 +1763,7 @@ export const EmojiChooser = "EmojiChooser";
|
|
|
1803
1763
|
*
|
|
1804
1764
|
* `GtkEntry` uses the {@link AccessibleRole.text_box} role.
|
|
1805
1765
|
*/
|
|
1806
|
-
export const
|
|
1766
|
+
export const GtkEntry = "GtkEntry";
|
|
1807
1767
|
/**
|
|
1808
1768
|
* Allows the user to reveal or conceal a child widget.
|
|
1809
1769
|
*
|
|
@@ -1829,31 +1789,31 @@ export const Entry = "Entry";
|
|
|
1829
1789
|
* ```c
|
|
1830
1790
|
* static void
|
|
1831
1791
|
* expander_callback (GObject *object,
|
|
1832
|
-
*
|
|
1833
|
-
*
|
|
1792
|
+
* GParamSpec *param_spec,
|
|
1793
|
+
* gpointer user_data)
|
|
1834
1794
|
* {
|
|
1835
|
-
*
|
|
1836
|
-
*
|
|
1837
|
-
*
|
|
1838
|
-
*
|
|
1839
|
-
*
|
|
1840
|
-
*
|
|
1841
|
-
*
|
|
1842
|
-
*
|
|
1843
|
-
*
|
|
1844
|
-
*
|
|
1845
|
-
*
|
|
1846
|
-
*
|
|
1795
|
+
* GtkExpander *expander;
|
|
1796
|
+
*
|
|
1797
|
+
* expander = GTK_EXPANDER (object);
|
|
1798
|
+
*
|
|
1799
|
+
* if (gtk_expander_get_expanded (expander))
|
|
1800
|
+
* {
|
|
1801
|
+
* // Show or create widgets
|
|
1802
|
+
* }
|
|
1803
|
+
* else
|
|
1804
|
+
* {
|
|
1805
|
+
* // Hide or destroy widgets
|
|
1806
|
+
* }
|
|
1847
1807
|
* }
|
|
1848
1808
|
*
|
|
1849
1809
|
* static void
|
|
1850
1810
|
* create_expander (void)
|
|
1851
1811
|
* {
|
|
1852
|
-
*
|
|
1853
|
-
*
|
|
1854
|
-
*
|
|
1812
|
+
* GtkWidget *expander = gtk_expander_new_with_mnemonic ("_More Options");
|
|
1813
|
+
* g_signal_connect (expander, "notify::expanded",
|
|
1814
|
+
* G_CALLBACK (expander_callback), NULL);
|
|
1855
1815
|
*
|
|
1856
|
-
*
|
|
1816
|
+
* // ...
|
|
1857
1817
|
* }
|
|
1858
1818
|
* ```
|
|
1859
1819
|
*
|
|
@@ -1863,12 +1823,12 @@ export const Entry = "Entry";
|
|
|
1863
1823
|
*
|
|
1864
1824
|
* ```xml
|
|
1865
1825
|
* <object class="GtkExpander">
|
|
1866
|
-
*
|
|
1867
|
-
*
|
|
1868
|
-
*
|
|
1869
|
-
*
|
|
1870
|
-
*
|
|
1871
|
-
*
|
|
1826
|
+
* <property name="label-widget">
|
|
1827
|
+
* <object class="GtkLabel" id="expander-label"/>
|
|
1828
|
+
* </property>
|
|
1829
|
+
* <property name="child">
|
|
1830
|
+
* <object class="GtkEntry" id="expander-content"/>
|
|
1831
|
+
* </property>
|
|
1872
1832
|
* </object>
|
|
1873
1833
|
* ```
|
|
1874
1834
|
*
|
|
@@ -1877,10 +1837,10 @@ export const Entry = "Entry";
|
|
|
1877
1837
|
* ```
|
|
1878
1838
|
* expander-widget
|
|
1879
1839
|
* ╰── box
|
|
1880
|
-
*
|
|
1881
|
-
*
|
|
1882
|
-
*
|
|
1883
|
-
*
|
|
1840
|
+
* ├── title
|
|
1841
|
+
* │ ├── expander
|
|
1842
|
+
* │ ╰── <label widget>
|
|
1843
|
+
* ╰── <child>
|
|
1884
1844
|
* ```
|
|
1885
1845
|
*
|
|
1886
1846
|
* `GtkExpander` has a main node `expander-widget`, and subnode `box` containing
|
|
@@ -1892,11 +1852,7 @@ export const Entry = "Entry";
|
|
|
1892
1852
|
*
|
|
1893
1853
|
* `GtkExpander` uses the {@link AccessibleRole.button} role.
|
|
1894
1854
|
*/
|
|
1895
|
-
export const
|
|
1896
|
-
Root: "Expander.Root",
|
|
1897
|
-
Child: "Expander.Child",
|
|
1898
|
-
LabelWidget: "Expander.LabelWidget",
|
|
1899
|
-
};
|
|
1855
|
+
export const GtkExpander = "GtkExpander";
|
|
1900
1856
|
/**
|
|
1901
1857
|
* `GtkFileChooserDialog` is a dialog suitable for use with
|
|
1902
1858
|
* “File Open” or “File Save” commands.
|
|
@@ -1925,38 +1881,38 @@ export const Expander = {
|
|
|
1925
1881
|
* ```c
|
|
1926
1882
|
* static void
|
|
1927
1883
|
* on_open_response (GtkDialog *dialog,
|
|
1928
|
-
*
|
|
1929
|
-
* {
|
|
1930
|
-
* if (response == GTK_RESPONSE_ACCEPT)
|
|
1884
|
+
* int response)
|
|
1931
1885
|
* {
|
|
1932
|
-
*
|
|
1886
|
+
* if (response == GTK_RESPONSE_ACCEPT)
|
|
1887
|
+
* {
|
|
1888
|
+
* GtkFileChooser *chooser = GTK_FILE_CHOOSER (dialog);
|
|
1933
1889
|
*
|
|
1934
|
-
*
|
|
1890
|
+
* g_autoptr(GFile) file = gtk_file_chooser_get_file (chooser);
|
|
1935
1891
|
*
|
|
1936
|
-
*
|
|
1937
|
-
*
|
|
1892
|
+
* open_file (file);
|
|
1893
|
+
* }
|
|
1938
1894
|
*
|
|
1939
|
-
*
|
|
1895
|
+
* gtk_window_destroy (GTK_WINDOW (dialog));
|
|
1940
1896
|
* }
|
|
1941
1897
|
*
|
|
1942
|
-
*
|
|
1943
|
-
*
|
|
1944
|
-
*
|
|
1898
|
+
* // ...
|
|
1899
|
+
* GtkWidget *dialog;
|
|
1900
|
+
* GtkFileChooserAction action = GTK_FILE_CHOOSER_ACTION_OPEN;
|
|
1945
1901
|
*
|
|
1946
|
-
*
|
|
1947
|
-
*
|
|
1948
|
-
*
|
|
1949
|
-
*
|
|
1950
|
-
*
|
|
1951
|
-
*
|
|
1952
|
-
*
|
|
1953
|
-
*
|
|
1902
|
+
* dialog = gtk_file_chooser_dialog_new ("Open File",
|
|
1903
|
+
* parent_window,
|
|
1904
|
+
* action,
|
|
1905
|
+
* _("_Cancel"),
|
|
1906
|
+
* GTK_RESPONSE_CANCEL,
|
|
1907
|
+
* _("_Open"),
|
|
1908
|
+
* GTK_RESPONSE_ACCEPT,
|
|
1909
|
+
* NULL);
|
|
1954
1910
|
*
|
|
1955
|
-
*
|
|
1911
|
+
* gtk_window_present (GTK_WINDOW (dialog));
|
|
1956
1912
|
*
|
|
1957
|
-
*
|
|
1958
|
-
*
|
|
1959
|
-
*
|
|
1913
|
+
* g_signal_connect (dialog, "response",
|
|
1914
|
+
* G_CALLBACK (on_open_response),
|
|
1915
|
+
* NULL);
|
|
1960
1916
|
* ```
|
|
1961
1917
|
*
|
|
1962
1918
|
* To use a dialog for saving, you can use this:
|
|
@@ -1964,45 +1920,45 @@ export const Expander = {
|
|
|
1964
1920
|
* ```c
|
|
1965
1921
|
* static void
|
|
1966
1922
|
* on_save_response (GtkDialog *dialog,
|
|
1967
|
-
*
|
|
1968
|
-
* {
|
|
1969
|
-
* if (response == GTK_RESPONSE_ACCEPT)
|
|
1923
|
+
* int response)
|
|
1970
1924
|
* {
|
|
1971
|
-
*
|
|
1925
|
+
* if (response == GTK_RESPONSE_ACCEPT)
|
|
1926
|
+
* {
|
|
1927
|
+
* GtkFileChooser *chooser = GTK_FILE_CHOOSER (dialog);
|
|
1972
1928
|
*
|
|
1973
|
-
*
|
|
1929
|
+
* g_autoptr(GFile) file = gtk_file_chooser_get_file (chooser);
|
|
1974
1930
|
*
|
|
1975
|
-
*
|
|
1976
|
-
*
|
|
1931
|
+
* save_to_file (file);
|
|
1932
|
+
* }
|
|
1977
1933
|
*
|
|
1978
|
-
*
|
|
1934
|
+
* gtk_window_destroy (GTK_WINDOW (dialog));
|
|
1979
1935
|
* }
|
|
1980
1936
|
*
|
|
1981
|
-
*
|
|
1982
|
-
*
|
|
1983
|
-
*
|
|
1984
|
-
*
|
|
1985
|
-
*
|
|
1986
|
-
* dialog = gtk_file_chooser_dialog_new ("Save File",
|
|
1987
|
-
* parent_window,
|
|
1988
|
-
* action,
|
|
1989
|
-
* _("_Cancel"),
|
|
1990
|
-
* GTK_RESPONSE_CANCEL,
|
|
1991
|
-
* _("_Save"),
|
|
1992
|
-
* GTK_RESPONSE_ACCEPT,
|
|
1993
|
-
* NULL);
|
|
1994
|
-
* chooser = GTK_FILE_CHOOSER (dialog);
|
|
1995
|
-
*
|
|
1996
|
-
* if (user_edited_a_new_document)
|
|
1997
|
-
* gtk_file_chooser_set_current_name (chooser, _("Untitled document"));
|
|
1998
|
-
* else
|
|
1999
|
-
* gtk_file_chooser_set_file (chooser, existing_filename);
|
|
1937
|
+
* // ...
|
|
1938
|
+
* GtkWidget *dialog;
|
|
1939
|
+
* GtkFileChooser *chooser;
|
|
1940
|
+
* GtkFileChooserAction action = GTK_FILE_CHOOSER_ACTION_SAVE;
|
|
2000
1941
|
*
|
|
2001
|
-
*
|
|
1942
|
+
* dialog = gtk_file_chooser_dialog_new ("Save File",
|
|
1943
|
+
* parent_window,
|
|
1944
|
+
* action,
|
|
1945
|
+
* _("_Cancel"),
|
|
1946
|
+
* GTK_RESPONSE_CANCEL,
|
|
1947
|
+
* _("_Save"),
|
|
1948
|
+
* GTK_RESPONSE_ACCEPT,
|
|
1949
|
+
* NULL);
|
|
1950
|
+
* chooser = GTK_FILE_CHOOSER (dialog);
|
|
2002
1951
|
*
|
|
2003
|
-
*
|
|
2004
|
-
*
|
|
2005
|
-
*
|
|
1952
|
+
* if (user_edited_a_new_document)
|
|
1953
|
+
* gtk_file_chooser_set_current_name (chooser, _("Untitled document"));
|
|
1954
|
+
* else
|
|
1955
|
+
* gtk_file_chooser_set_file (chooser, existing_filename);
|
|
1956
|
+
*
|
|
1957
|
+
* gtk_window_present (GTK_WINDOW (dialog));
|
|
1958
|
+
*
|
|
1959
|
+
* g_signal_connect (dialog, "response",
|
|
1960
|
+
* G_CALLBACK (on_save_response),
|
|
1961
|
+
* NULL);
|
|
2006
1962
|
* ```
|
|
2007
1963
|
*
|
|
2008
1964
|
* ## Setting up a file chooser dialog
|
|
@@ -2037,13 +1993,13 @@ export const Expander = {
|
|
|
2037
1993
|
* GtkFileChooserAction action = GTK_FILE_CHOOSER_ACTION_OPEN;
|
|
2038
1994
|
*
|
|
2039
1995
|
* dialog = gtk_file_chooser_dialog_new ("Open File",
|
|
2040
|
-
*
|
|
2041
|
-
*
|
|
2042
|
-
*
|
|
2043
|
-
*
|
|
2044
|
-
*
|
|
2045
|
-
*
|
|
2046
|
-
*
|
|
1996
|
+
* parent_window,
|
|
1997
|
+
* action,
|
|
1998
|
+
* _("_Cancel"),
|
|
1999
|
+
* GTK_RESPONSE_CANCEL,
|
|
2000
|
+
* _("_Open"),
|
|
2001
|
+
* GTK_RESPONSE_ACCEPT,
|
|
2002
|
+
* NULL);
|
|
2047
2003
|
* ```
|
|
2048
2004
|
*
|
|
2049
2005
|
* This will create buttons for “Cancel” and “Open” that use predefined
|
|
@@ -2071,7 +2027,7 @@ export const Expander = {
|
|
|
2071
2027
|
* `GtkFileChooserDialog` has a single CSS node with the name `window` and style
|
|
2072
2028
|
* class `.filechooser`.
|
|
2073
2029
|
*/
|
|
2074
|
-
export const
|
|
2030
|
+
export const GtkFileChooserDialog = "GtkFileChooserDialog";
|
|
2075
2031
|
/**
|
|
2076
2032
|
* `GtkFileChooserWidget` is a widget for choosing files.
|
|
2077
2033
|
*
|
|
@@ -2104,7 +2060,7 @@ export const FileChooserDialog = "FileChooserDialog";
|
|
|
2104
2060
|
*
|
|
2105
2061
|
* `GtkFileChooserWidget` has a single CSS node with name filechooser.
|
|
2106
2062
|
*/
|
|
2107
|
-
export const
|
|
2063
|
+
export const GtkFileChooserWidget = "GtkFileChooserWidget";
|
|
2108
2064
|
/**
|
|
2109
2065
|
* Places its child widgets at fixed positions and with fixed sizes.
|
|
2110
2066
|
*
|
|
@@ -2144,7 +2100,7 @@ export const FileChooserWidget = "FileChooserWidget";
|
|
|
2144
2100
|
* and prefer the simplicity of `GtkFixed`, by all means use the
|
|
2145
2101
|
* widget. But you should be aware of the tradeoffs.
|
|
2146
2102
|
*/
|
|
2147
|
-
export const
|
|
2103
|
+
export const GtkFixed = "GtkFixed";
|
|
2148
2104
|
/**
|
|
2149
2105
|
* Puts child widgets in a reflowing grid.
|
|
2150
2106
|
*
|
|
@@ -2204,14 +2160,14 @@ export const Fixed = "Fixed";
|
|
|
2204
2160
|
* `GtkFlowBox` uses the {@link AccessibleRole.grid} role, and `GtkFlowBoxChild`
|
|
2205
2161
|
* uses the {@link AccessibleRole.grid_cell} role.
|
|
2206
2162
|
*/
|
|
2207
|
-
export const
|
|
2163
|
+
export const GtkFlowBox = "GtkFlowBox";
|
|
2208
2164
|
/**
|
|
2209
2165
|
* The kind of widget that can be added to a `GtkFlowBox`.
|
|
2210
2166
|
*
|
|
2211
2167
|
* {@link FlowBox} will automatically wrap its children in a `GtkFlowBoxChild`
|
|
2212
2168
|
* when necessary.
|
|
2213
2169
|
*/
|
|
2214
|
-
export const
|
|
2170
|
+
export const GtkFlowBoxChild = "GtkFlowBoxChild";
|
|
2215
2171
|
/**
|
|
2216
2172
|
* The `GtkFontButton` allows to open a font chooser dialog to change
|
|
2217
2173
|
* the font.
|
|
@@ -2225,13 +2181,13 @@ export const FlowBoxChild = "FlowBoxChild";
|
|
|
2225
2181
|
* ```
|
|
2226
2182
|
* fontbutton
|
|
2227
2183
|
* ╰── button.font
|
|
2228
|
-
*
|
|
2184
|
+
* ╰── [content]
|
|
2229
2185
|
* ```
|
|
2230
2186
|
*
|
|
2231
2187
|
* `GtkFontButton` has a single CSS node with name fontbutton which
|
|
2232
2188
|
* contains a button node with the .font style class.
|
|
2233
2189
|
*/
|
|
2234
|
-
export const
|
|
2190
|
+
export const GtkFontButton = "GtkFontButton";
|
|
2235
2191
|
/**
|
|
2236
2192
|
* The `GtkFontChooserDialog` widget is a dialog for selecting a font.
|
|
2237
2193
|
*
|
|
@@ -2253,7 +2209,7 @@ export const FontButton = "FontButton";
|
|
|
2253
2209
|
* `GtkFontChooserDialog` has a single CSS node with the name `window` and style
|
|
2254
2210
|
* class `.fontchooser`.
|
|
2255
2211
|
*/
|
|
2256
|
-
export const
|
|
2212
|
+
export const GtkFontChooserDialog = "GtkFontChooserDialog";
|
|
2257
2213
|
/**
|
|
2258
2214
|
* The `GtkFontChooserWidget` widget lets the user select a font.
|
|
2259
2215
|
*
|
|
@@ -2273,7 +2229,7 @@ export const FontChooserDialog = "FontChooserDialog";
|
|
|
2273
2229
|
*
|
|
2274
2230
|
* `GtkFontChooserWidget` has a single CSS node with name fontchooser.
|
|
2275
2231
|
*/
|
|
2276
|
-
export const
|
|
2232
|
+
export const GtkFontChooserWidget = "GtkFontChooserWidget";
|
|
2277
2233
|
/**
|
|
2278
2234
|
* Opens a font chooser dialog to select a font.
|
|
2279
2235
|
*
|
|
@@ -2286,13 +2242,13 @@ export const FontChooserWidget = "FontChooserWidget";
|
|
|
2286
2242
|
* ```
|
|
2287
2243
|
* fontbutton
|
|
2288
2244
|
* ╰── button.font
|
|
2289
|
-
*
|
|
2245
|
+
* ╰── [content]
|
|
2290
2246
|
* ```
|
|
2291
2247
|
*
|
|
2292
2248
|
* `GtkFontDialogButton` has a single CSS node with name fontbutton which
|
|
2293
2249
|
* contains a button node with the .font style class.
|
|
2294
2250
|
*/
|
|
2295
|
-
export const
|
|
2251
|
+
export const GtkFontDialogButton = "GtkFontDialogButton";
|
|
2296
2252
|
/**
|
|
2297
2253
|
* Surrounds its child with a decorative frame and an optional label.
|
|
2298
2254
|
*
|
|
@@ -2311,12 +2267,12 @@ export const FontDialogButton = "FontDialogButton";
|
|
|
2311
2267
|
*
|
|
2312
2268
|
* ```xml
|
|
2313
2269
|
* <object class="GtkFrame">
|
|
2314
|
-
*
|
|
2315
|
-
*
|
|
2316
|
-
*
|
|
2317
|
-
*
|
|
2318
|
-
*
|
|
2319
|
-
*
|
|
2270
|
+
* <property name="label-widget">
|
|
2271
|
+
* <object class="GtkLabel" id="frame_label"/>
|
|
2272
|
+
* </property>
|
|
2273
|
+
* <property name="child">
|
|
2274
|
+
* <object class="GtkEntry" id="frame_content"/>
|
|
2275
|
+
* </property>
|
|
2320
2276
|
* </object>
|
|
2321
2277
|
* ```
|
|
2322
2278
|
*
|
|
@@ -2336,11 +2292,7 @@ export const FontDialogButton = "FontDialogButton";
|
|
|
2336
2292
|
*
|
|
2337
2293
|
* `GtkFrame` uses the {@link AccessibleRole.group} role.
|
|
2338
2294
|
*/
|
|
2339
|
-
export const
|
|
2340
|
-
Root: "Frame.Root",
|
|
2341
|
-
Child: "Frame.Child",
|
|
2342
|
-
LabelWidget: "Frame.LabelWidget",
|
|
2343
|
-
};
|
|
2295
|
+
export const GtkFrame = "GtkFrame";
|
|
2344
2296
|
/**
|
|
2345
2297
|
* Allows drawing with OpenGL.
|
|
2346
2298
|
*
|
|
@@ -2374,38 +2326,38 @@ export const Frame = {
|
|
|
2374
2326
|
* static gboolean
|
|
2375
2327
|
* render (GtkGLArea *area, GdkGLContext *context)
|
|
2376
2328
|
* {
|
|
2377
|
-
*
|
|
2378
|
-
*
|
|
2379
|
-
*
|
|
2380
|
-
*
|
|
2381
|
-
*
|
|
2382
|
-
*
|
|
2383
|
-
*
|
|
2384
|
-
*
|
|
2385
|
-
*
|
|
2386
|
-
*
|
|
2387
|
-
*
|
|
2388
|
-
*
|
|
2389
|
-
*
|
|
2390
|
-
*
|
|
2391
|
-
*
|
|
2392
|
-
*
|
|
2393
|
-
*
|
|
2394
|
-
*
|
|
2395
|
-
*
|
|
2396
|
-
*
|
|
2397
|
-
*
|
|
2398
|
-
*
|
|
2399
|
-
*
|
|
2329
|
+
* // inside this function it's safe to use GL; the given
|
|
2330
|
+
* // GdkGLContext has been made current to the drawable
|
|
2331
|
+
* // surface used by the `GtkGLArea` and the viewport has
|
|
2332
|
+
* // already been set to be the size of the allocation
|
|
2333
|
+
*
|
|
2334
|
+
* // we can start by clearing the buffer
|
|
2335
|
+
* glClearColor (0, 0, 0, 0);
|
|
2336
|
+
* glClear (GL_COLOR_BUFFER_BIT);
|
|
2337
|
+
*
|
|
2338
|
+
* // record the active framebuffer ID, so we can return to it
|
|
2339
|
+
* // with `glBindFramebuffer (GL_FRAMEBUFFER, screen_fb)` should
|
|
2340
|
+
* // we, for instance, intend on utilizing the results of an
|
|
2341
|
+
* // intermediate render texture pass
|
|
2342
|
+
* GLuint screen_fb = 0;
|
|
2343
|
+
* glGetIntegerv (GL_FRAMEBUFFER_BINDING, &screen_fb);
|
|
2344
|
+
*
|
|
2345
|
+
* // draw your object
|
|
2346
|
+
* // draw_an_object ();
|
|
2347
|
+
*
|
|
2348
|
+
* // we completed our drawing; the draw commands will be
|
|
2349
|
+
* // flushed at the end of the signal emission chain, and
|
|
2350
|
+
* // the buffers will be drawn on the window
|
|
2351
|
+
* return TRUE;
|
|
2400
2352
|
* }
|
|
2401
2353
|
*
|
|
2402
2354
|
* void setup_glarea (void)
|
|
2403
2355
|
* {
|
|
2404
|
-
*
|
|
2405
|
-
*
|
|
2356
|
+
* // create a GtkGLArea instance
|
|
2357
|
+
* GtkWidget *gl_area = gtk_gl_area_new ();
|
|
2406
2358
|
*
|
|
2407
|
-
*
|
|
2408
|
-
*
|
|
2359
|
+
* // connect to the "render" signal
|
|
2360
|
+
* g_signal_connect (gl_area, "render", G_CALLBACK (render), NULL);
|
|
2409
2361
|
* }
|
|
2410
2362
|
* ```
|
|
2411
2363
|
*
|
|
@@ -2421,42 +2373,42 @@ export const Frame = {
|
|
|
2421
2373
|
* static void
|
|
2422
2374
|
* on_realize (GtkGLArea *area)
|
|
2423
2375
|
* {
|
|
2424
|
-
*
|
|
2425
|
-
*
|
|
2426
|
-
*
|
|
2427
|
-
*
|
|
2428
|
-
*
|
|
2429
|
-
*
|
|
2430
|
-
*
|
|
2431
|
-
*
|
|
2432
|
-
*
|
|
2433
|
-
*
|
|
2434
|
-
*
|
|
2435
|
-
*
|
|
2436
|
-
*
|
|
2437
|
-
*
|
|
2438
|
-
*
|
|
2439
|
-
*
|
|
2440
|
-
*
|
|
2441
|
-
*
|
|
2442
|
-
*
|
|
2443
|
-
*
|
|
2444
|
-
*
|
|
2445
|
-
*
|
|
2446
|
-
*
|
|
2447
|
-
*
|
|
2448
|
-
*
|
|
2449
|
-
*
|
|
2450
|
-
*
|
|
2451
|
-
*
|
|
2452
|
-
*
|
|
2376
|
+
* // We need to make the context current if we want to
|
|
2377
|
+
* // call GL API
|
|
2378
|
+
* gtk_gl_area_make_current (area);
|
|
2379
|
+
*
|
|
2380
|
+
* // If there were errors during the initialization or
|
|
2381
|
+
* // when trying to make the context current, this
|
|
2382
|
+
* // function will return a GError for you to catch
|
|
2383
|
+
* if (gtk_gl_area_get_error (area) != NULL)
|
|
2384
|
+
* return;
|
|
2385
|
+
*
|
|
2386
|
+
* // You can also use gtk_gl_area_set_error() in order
|
|
2387
|
+
* // to show eventual initialization errors on the
|
|
2388
|
+
* // GtkGLArea widget itself
|
|
2389
|
+
* GError *internal_error = NULL;
|
|
2390
|
+
* init_buffer_objects (&error);
|
|
2391
|
+
* if (error != NULL)
|
|
2392
|
+
* {
|
|
2393
|
+
* gtk_gl_area_set_error (area, error);
|
|
2394
|
+
* g_error_free (error);
|
|
2395
|
+
* return;
|
|
2396
|
+
* }
|
|
2397
|
+
*
|
|
2398
|
+
* init_shaders (&error);
|
|
2399
|
+
* if (error != NULL)
|
|
2400
|
+
* {
|
|
2401
|
+
* gtk_gl_area_set_error (area, error);
|
|
2402
|
+
* g_error_free (error);
|
|
2403
|
+
* return;
|
|
2404
|
+
* }
|
|
2453
2405
|
* }
|
|
2454
2406
|
* ```
|
|
2455
2407
|
*
|
|
2456
2408
|
* If you need to change the options for creating the `GdkGLContext`
|
|
2457
2409
|
* you should use the {@link GLArea.:create-context} signal.
|
|
2458
2410
|
*/
|
|
2459
|
-
export const
|
|
2411
|
+
export const GtkGLArea = "GtkGLArea";
|
|
2460
2412
|
/**
|
|
2461
2413
|
* Bypasses gsk rendering by passing the content of its child directly to the compositor.
|
|
2462
2414
|
*
|
|
@@ -2494,7 +2446,7 @@ export const GLArea = "GLArea";
|
|
|
2494
2446
|
*
|
|
2495
2447
|
* The GTK inspector provides a visual debugging tool for graphics offload.
|
|
2496
2448
|
*/
|
|
2497
|
-
export const
|
|
2449
|
+
export const GtkGraphicsOffload = "GtkGraphicsOffload";
|
|
2498
2450
|
/**
|
|
2499
2451
|
* Arranges its child widgets in rows and columns.
|
|
2500
2452
|
*
|
|
@@ -2523,44 +2475,44 @@ export const GraphicsOffload = "GraphicsOffload";
|
|
|
2523
2475
|
*
|
|
2524
2476
|
* ```xml
|
|
2525
2477
|
* <object class="GtkGrid" id="my_grid">
|
|
2526
|
-
*
|
|
2527
|
-
*
|
|
2528
|
-
*
|
|
2529
|
-
*
|
|
2530
|
-
*
|
|
2531
|
-
*
|
|
2532
|
-
*
|
|
2533
|
-
*
|
|
2534
|
-
*
|
|
2535
|
-
*
|
|
2536
|
-
*
|
|
2537
|
-
*
|
|
2538
|
-
*
|
|
2539
|
-
*
|
|
2540
|
-
*
|
|
2541
|
-
*
|
|
2542
|
-
*
|
|
2543
|
-
*
|
|
2544
|
-
*
|
|
2545
|
-
*
|
|
2546
|
-
*
|
|
2547
|
-
*
|
|
2548
|
-
*
|
|
2549
|
-
*
|
|
2550
|
-
*
|
|
2551
|
-
*
|
|
2552
|
-
*
|
|
2553
|
-
*
|
|
2554
|
-
*
|
|
2555
|
-
*
|
|
2556
|
-
*
|
|
2557
|
-
*
|
|
2558
|
-
*
|
|
2559
|
-
*
|
|
2560
|
-
*
|
|
2561
|
-
*
|
|
2562
|
-
*
|
|
2563
|
-
*
|
|
2478
|
+
* <child>
|
|
2479
|
+
* <object class="GtkButton" id="button1">
|
|
2480
|
+
* <property name="label">Button 1</property>
|
|
2481
|
+
* <layout>
|
|
2482
|
+
* <property name="column">0</property>
|
|
2483
|
+
* <property name="row">0</property>
|
|
2484
|
+
* </layout>
|
|
2485
|
+
* </object>
|
|
2486
|
+
* </child>
|
|
2487
|
+
* <child>
|
|
2488
|
+
* <object class="GtkButton" id="button2">
|
|
2489
|
+
* <property name="label">Button 2</property>
|
|
2490
|
+
* <layout>
|
|
2491
|
+
* <property name="column">1</property>
|
|
2492
|
+
* <property name="row">0</property>
|
|
2493
|
+
* </layout>
|
|
2494
|
+
* </object>
|
|
2495
|
+
* </child>
|
|
2496
|
+
* <child>
|
|
2497
|
+
* <object class="GtkButton" id="button3">
|
|
2498
|
+
* <property name="label">Button 3</property>
|
|
2499
|
+
* <layout>
|
|
2500
|
+
* <property name="column">2</property>
|
|
2501
|
+
* <property name="row">0</property>
|
|
2502
|
+
* <property name="row-span">2</property>
|
|
2503
|
+
* </layout>
|
|
2504
|
+
* </object>
|
|
2505
|
+
* </child>
|
|
2506
|
+
* <child>
|
|
2507
|
+
* <object class="GtkButton" id="button4">
|
|
2508
|
+
* <property name="label">Button 4</property>
|
|
2509
|
+
* <layout>
|
|
2510
|
+
* <property name="column">0</property>
|
|
2511
|
+
* <property name="row">1</property>
|
|
2512
|
+
* <property name="column-span">2</property>
|
|
2513
|
+
* </layout>
|
|
2514
|
+
* </object>
|
|
2515
|
+
* </child>
|
|
2564
2516
|
* </object>
|
|
2565
2517
|
* ```
|
|
2566
2518
|
*
|
|
@@ -2580,16 +2532,7 @@ export const GraphicsOffload = "GraphicsOffload";
|
|
|
2580
2532
|
*
|
|
2581
2533
|
* Starting from GTK 4.12, `GtkGrid` uses the {@link AccessibleRole.generic} role.
|
|
2582
2534
|
*/
|
|
2583
|
-
export const
|
|
2584
|
-
Root: "Grid.Root",
|
|
2585
|
-
Child: "Grid.Child",
|
|
2586
|
-
};
|
|
2587
|
-
function GridViewRoot(props) {
|
|
2588
|
-
return createElement("GridView.Root", props);
|
|
2589
|
-
}
|
|
2590
|
-
function GridViewItem(props) {
|
|
2591
|
-
return createElement("GridView.Item", props);
|
|
2592
|
-
}
|
|
2535
|
+
export const GtkGrid = "GtkGrid";
|
|
2593
2536
|
/**
|
|
2594
2537
|
* Presents a large dynamic grid of items.
|
|
2595
2538
|
*
|
|
@@ -2634,10 +2577,7 @@ function GridViewItem(props) {
|
|
|
2634
2577
|
* `GtkGridView` uses the {@link AccessibleRole.grid} role, and the items
|
|
2635
2578
|
* use the {@link AccessibleRole.grid_cell} role.
|
|
2636
2579
|
*/
|
|
2637
|
-
export const
|
|
2638
|
-
Root: GridViewRoot,
|
|
2639
|
-
Item: GridViewItem,
|
|
2640
|
-
};
|
|
2580
|
+
export const GtkGridView = "GtkGridView";
|
|
2641
2581
|
/**
|
|
2642
2582
|
* Creates a custom titlebar for a window.
|
|
2643
2583
|
*
|
|
@@ -2670,17 +2610,17 @@ export const GridView = {
|
|
|
2670
2610
|
*
|
|
2671
2611
|
* ```xml
|
|
2672
2612
|
* <object class="GtkHeaderBar">
|
|
2673
|
-
*
|
|
2674
|
-
*
|
|
2675
|
-
*
|
|
2676
|
-
*
|
|
2677
|
-
*
|
|
2678
|
-
*
|
|
2679
|
-
*
|
|
2680
|
-
*
|
|
2681
|
-
*
|
|
2682
|
-
*
|
|
2683
|
-
*
|
|
2613
|
+
* <property name="title-widget">
|
|
2614
|
+
* <object class="GtkLabel">
|
|
2615
|
+
* <property name="label" translatable="yes">Label</property>
|
|
2616
|
+
* <property name="single-line-mode">True</property>
|
|
2617
|
+
* <property name="ellipsize">end</property>
|
|
2618
|
+
* <property name="width-chars">5</property>
|
|
2619
|
+
* <style>
|
|
2620
|
+
* <class name="title"/>
|
|
2621
|
+
* </style>
|
|
2622
|
+
* </object>
|
|
2623
|
+
* </property>
|
|
2684
2624
|
* </object>
|
|
2685
2625
|
* ```
|
|
2686
2626
|
*
|
|
@@ -2689,14 +2629,14 @@ export const GridView = {
|
|
|
2689
2629
|
* ```
|
|
2690
2630
|
* headerbar
|
|
2691
2631
|
* ╰── windowhandle
|
|
2692
|
-
*
|
|
2693
|
-
*
|
|
2694
|
-
*
|
|
2695
|
-
*
|
|
2696
|
-
*
|
|
2697
|
-
*
|
|
2698
|
-
*
|
|
2699
|
-
*
|
|
2632
|
+
* ╰── box
|
|
2633
|
+
* ├── box.start
|
|
2634
|
+
* │ ├── windowcontrols.start
|
|
2635
|
+
* │ ╰── [other children]
|
|
2636
|
+
* ├── [Title Widget]
|
|
2637
|
+
* ╰── box.end
|
|
2638
|
+
* ├── [other children]
|
|
2639
|
+
* ╰── windowcontrols.end
|
|
2700
2640
|
* ```
|
|
2701
2641
|
*
|
|
2702
2642
|
* A `GtkHeaderBar`'s CSS node is called `headerbar`. It contains a `windowhandle`
|
|
@@ -2711,10 +2651,7 @@ export const GridView = {
|
|
|
2711
2651
|
*
|
|
2712
2652
|
* `GtkHeaderBar` uses the {@link AccessibleRole.group} role.
|
|
2713
2653
|
*/
|
|
2714
|
-
export const
|
|
2715
|
-
Root: "HeaderBar.Root",
|
|
2716
|
-
TitleWidget: "HeaderBar.TitleWidget",
|
|
2717
|
-
};
|
|
2654
|
+
export const GtkHeaderBar = "GtkHeaderBar";
|
|
2718
2655
|
/**
|
|
2719
2656
|
* `GtkIconView` is a widget which displays data in a grid of icons.
|
|
2720
2657
|
*
|
|
@@ -2742,7 +2679,7 @@ export const HeaderBar = {
|
|
|
2742
2679
|
* `GtkIconView` has a single CSS node with name iconview and style class .view.
|
|
2743
2680
|
* For rubberband selection, a subnode with name rubberband is used.
|
|
2744
2681
|
*/
|
|
2745
|
-
export const
|
|
2682
|
+
export const GtkIconView = "GtkIconView";
|
|
2746
2683
|
/**
|
|
2747
2684
|
* Displays an image.
|
|
2748
2685
|
*
|
|
@@ -2784,7 +2721,7 @@ export const IconView = "IconView";
|
|
|
2784
2721
|
*
|
|
2785
2722
|
* `GtkImage` uses the {@link AccessibleRole.img} role.
|
|
2786
2723
|
*/
|
|
2787
|
-
export const
|
|
2724
|
+
export const GtkImage = "GtkImage";
|
|
2788
2725
|
/**
|
|
2789
2726
|
* `GtkInfoBar` can be used to show messages to the user without a dialog.
|
|
2790
2727
|
*
|
|
@@ -2822,15 +2759,15 @@ export const Image = "Image";
|
|
|
2822
2759
|
* message_label = gtk_label_new ("");
|
|
2823
2760
|
* gtk_info_bar_add_child (bar, message_label);
|
|
2824
2761
|
* gtk_info_bar_add_button (bar,
|
|
2825
|
-
*
|
|
2826
|
-
*
|
|
2762
|
+
* _("_OK"),
|
|
2763
|
+
* GTK_RESPONSE_OK);
|
|
2827
2764
|
* g_signal_connect (bar,
|
|
2828
|
-
*
|
|
2829
|
-
*
|
|
2830
|
-
*
|
|
2765
|
+
* "response",
|
|
2766
|
+
* G_CALLBACK (gtk_widget_hide),
|
|
2767
|
+
* NULL);
|
|
2831
2768
|
* gtk_grid_attach (GTK_GRID (grid),
|
|
2832
|
-
*
|
|
2833
|
-
*
|
|
2769
|
+
* widget,
|
|
2770
|
+
* 0, 2, 1, 1);
|
|
2834
2771
|
*
|
|
2835
2772
|
* // ...
|
|
2836
2773
|
*
|
|
@@ -2860,7 +2797,7 @@ export const Image = "Image";
|
|
|
2860
2797
|
* If the info bar shows a close button, that button will have the .close
|
|
2861
2798
|
* style class applied.
|
|
2862
2799
|
*/
|
|
2863
|
-
export const
|
|
2800
|
+
export const GtkInfoBar = "GtkInfoBar";
|
|
2864
2801
|
/**
|
|
2865
2802
|
* Shows text in a predefined area.
|
|
2866
2803
|
*
|
|
@@ -2879,7 +2816,7 @@ export const InfoBar = "InfoBar";
|
|
|
2879
2816
|
*
|
|
2880
2817
|
* `GtkInscription` has a single CSS node with the name label.
|
|
2881
2818
|
*/
|
|
2882
|
-
export const
|
|
2819
|
+
export const GtkInscription = "GtkInscription";
|
|
2883
2820
|
/**
|
|
2884
2821
|
* Displays a small amount of text.
|
|
2885
2822
|
*
|
|
@@ -2954,10 +2891,10 @@ export const Inscription = "Inscription";
|
|
|
2954
2891
|
*
|
|
2955
2892
|
* ```xml
|
|
2956
2893
|
* <object class="GtkLabel">
|
|
2957
|
-
*
|
|
2958
|
-
*
|
|
2959
|
-
*
|
|
2960
|
-
*
|
|
2894
|
+
* <attributes>
|
|
2895
|
+
* <attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
|
|
2896
|
+
* <attribute name="background" value="red" start="5" end="10"/>
|
|
2897
|
+
* </attributes>
|
|
2961
2898
|
* </object>
|
|
2962
2899
|
* ```
|
|
2963
2900
|
*
|
|
@@ -3095,7 +3032,7 @@ export const Inscription = "Inscription";
|
|
|
3095
3032
|
* with the {@link Label.:activate-link} signal and the
|
|
3096
3033
|
* {@link Label.get_current_uri} function.
|
|
3097
3034
|
*/
|
|
3098
|
-
export const
|
|
3035
|
+
export const GtkLabel = "GtkLabel";
|
|
3099
3036
|
/**
|
|
3100
3037
|
* Shows a level indicator.
|
|
3101
3038
|
*
|
|
@@ -3121,31 +3058,31 @@ export const Label = "Label";
|
|
|
3121
3058
|
* static GtkWidget *
|
|
3122
3059
|
* create_level_bar (void)
|
|
3123
3060
|
* {
|
|
3124
|
-
*
|
|
3125
|
-
*
|
|
3061
|
+
* GtkWidget *widget;
|
|
3062
|
+
* GtkLevelBar *bar;
|
|
3126
3063
|
*
|
|
3127
|
-
*
|
|
3128
|
-
*
|
|
3064
|
+
* widget = gtk_level_bar_new ();
|
|
3065
|
+
* bar = GTK_LEVEL_BAR (widget);
|
|
3129
3066
|
*
|
|
3130
|
-
*
|
|
3067
|
+
* // This changes the value of the default low offset
|
|
3131
3068
|
*
|
|
3132
|
-
*
|
|
3133
|
-
*
|
|
3134
|
-
*
|
|
3069
|
+
* gtk_level_bar_add_offset_value (bar,
|
|
3070
|
+
* GTK_LEVEL_BAR_OFFSET_LOW,
|
|
3071
|
+
* 0.10);
|
|
3135
3072
|
*
|
|
3136
|
-
*
|
|
3137
|
-
*
|
|
3138
|
-
*
|
|
3139
|
-
*
|
|
3140
|
-
*
|
|
3141
|
-
*
|
|
3142
|
-
*
|
|
3143
|
-
*
|
|
3144
|
-
*
|
|
3073
|
+
* // This adds a new offset to the bar; the application will
|
|
3074
|
+
* // be able to change its color CSS like this:
|
|
3075
|
+
* //
|
|
3076
|
+
* // levelbar block.my-offset {
|
|
3077
|
+
* // background-color: magenta;
|
|
3078
|
+
* // border-style: solid;
|
|
3079
|
+
* // border-color: black;
|
|
3080
|
+
* // border-width: 1px;
|
|
3081
|
+
* // }
|
|
3145
3082
|
*
|
|
3146
|
-
*
|
|
3083
|
+
* gtk_level_bar_add_offset_value (bar, "my-offset", 0.60);
|
|
3147
3084
|
*
|
|
3148
|
-
*
|
|
3085
|
+
* return widget;
|
|
3149
3086
|
* }
|
|
3150
3087
|
* ```
|
|
3151
3088
|
*
|
|
@@ -3174,10 +3111,10 @@ export const Label = "Label";
|
|
|
3174
3111
|
* ```
|
|
3175
3112
|
* levelbar[.discrete]
|
|
3176
3113
|
* ╰── trough
|
|
3177
|
-
*
|
|
3178
|
-
*
|
|
3179
|
-
*
|
|
3180
|
-
*
|
|
3114
|
+
* ├── block.filled.level-name
|
|
3115
|
+
* ┊
|
|
3116
|
+
* ├── block.empty
|
|
3117
|
+
* ┊
|
|
3181
3118
|
* ```
|
|
3182
3119
|
*
|
|
3183
3120
|
* `GtkLevelBar` has a main CSS node with name levelbar and one of the style
|
|
@@ -3195,7 +3132,7 @@ export const Label = "Label";
|
|
|
3195
3132
|
*
|
|
3196
3133
|
* `GtkLevelBar` uses the {@link AccessibleRole.meter} role.
|
|
3197
3134
|
*/
|
|
3198
|
-
export const
|
|
3135
|
+
export const GtkLevelBar = "GtkLevelBar";
|
|
3199
3136
|
/**
|
|
3200
3137
|
* A button with a hyperlink.
|
|
3201
3138
|
*
|
|
@@ -3237,7 +3174,7 @@ export const LevelBar = "LevelBar";
|
|
|
3237
3174
|
*
|
|
3238
3175
|
* `GtkLinkButton` uses the {@link AccessibleRole.link} role.
|
|
3239
3176
|
*/
|
|
3240
|
-
export const
|
|
3177
|
+
export const GtkLinkButton = "GtkLinkButton";
|
|
3241
3178
|
/**
|
|
3242
3179
|
* The abstract base class for GTK's list widgets.
|
|
3243
3180
|
*
|
|
@@ -3284,7 +3221,7 @@ export const LinkButton = "LinkButton";
|
|
|
3284
3221
|
* - `listitem.scroll-to` moves the visible area of the list to this item with
|
|
3285
3222
|
* the minimum amount of scrolling required.
|
|
3286
3223
|
*/
|
|
3287
|
-
export const
|
|
3224
|
+
export const GtkListBase = "GtkListBase";
|
|
3288
3225
|
/**
|
|
3289
3226
|
* Shows a vertical list.
|
|
3290
3227
|
*
|
|
@@ -3351,20 +3288,14 @@ export const ListBase = "ListBase";
|
|
|
3351
3288
|
* `GtkListBox` uses the {@link AccessibleRole.list} role and `GtkListBoxRow` uses
|
|
3352
3289
|
* the {@link AccessibleRole.list_item} role.
|
|
3353
3290
|
*/
|
|
3354
|
-
export const
|
|
3291
|
+
export const GtkListBox = "GtkListBox";
|
|
3355
3292
|
/**
|
|
3356
3293
|
* The kind of widget that can be added to a `GtkListBox`.
|
|
3357
3294
|
*
|
|
3358
3295
|
* {@link ListBox} will automatically wrap its children in a `GtkListboxRow`
|
|
3359
3296
|
* when necessary.
|
|
3360
3297
|
*/
|
|
3361
|
-
export const
|
|
3362
|
-
function ListViewRoot(props) {
|
|
3363
|
-
return createElement("ListView.Root", props);
|
|
3364
|
-
}
|
|
3365
|
-
function ListViewItem(props) {
|
|
3366
|
-
return createElement("ListView.Item", props);
|
|
3367
|
-
}
|
|
3298
|
+
export const GtkListBoxRow = "GtkListBoxRow";
|
|
3368
3299
|
/**
|
|
3369
3300
|
* Presents a large dynamic list of items.
|
|
3370
3301
|
*
|
|
@@ -3388,52 +3319,52 @@ function ListViewItem(props) {
|
|
|
3388
3319
|
* ```c
|
|
3389
3320
|
* static void
|
|
3390
3321
|
* setup_listitem_cb (GtkListItemFactory *factory,
|
|
3391
|
-
*
|
|
3322
|
+
* GtkListItem *list_item)
|
|
3392
3323
|
* {
|
|
3393
|
-
*
|
|
3324
|
+
* GtkWidget *image;
|
|
3394
3325
|
*
|
|
3395
|
-
*
|
|
3396
|
-
*
|
|
3397
|
-
*
|
|
3326
|
+
* image = gtk_image_new ();
|
|
3327
|
+
* gtk_image_set_icon_size (GTK_IMAGE (image), GTK_ICON_SIZE_LARGE);
|
|
3328
|
+
* gtk_list_item_set_child (list_item, image);
|
|
3398
3329
|
* }
|
|
3399
3330
|
*
|
|
3400
3331
|
* static void
|
|
3401
3332
|
* bind_listitem_cb (GtkListItemFactory *factory,
|
|
3402
|
-
*
|
|
3333
|
+
* GtkListItem *list_item)
|
|
3403
3334
|
* {
|
|
3404
|
-
*
|
|
3405
|
-
*
|
|
3335
|
+
* GtkWidget *image;
|
|
3336
|
+
* GAppInfo *app_info;
|
|
3406
3337
|
*
|
|
3407
|
-
*
|
|
3408
|
-
*
|
|
3409
|
-
*
|
|
3338
|
+
* image = gtk_list_item_get_child (list_item);
|
|
3339
|
+
* app_info = gtk_list_item_get_item (list_item);
|
|
3340
|
+
* gtk_image_set_from_gicon (GTK_IMAGE (image), g_app_info_get_icon (app_info));
|
|
3410
3341
|
* }
|
|
3411
3342
|
*
|
|
3412
3343
|
* static void
|
|
3413
3344
|
* activate_cb (GtkListView *list,
|
|
3414
|
-
*
|
|
3415
|
-
*
|
|
3345
|
+
* guint position,
|
|
3346
|
+
* gpointer unused)
|
|
3416
3347
|
* {
|
|
3417
|
-
*
|
|
3348
|
+
* GAppInfo *app_info;
|
|
3418
3349
|
*
|
|
3419
|
-
*
|
|
3420
|
-
*
|
|
3421
|
-
*
|
|
3350
|
+
* app_info = g_list_model_get_item (G_LIST_MODEL (gtk_list_view_get_model (list)), position);
|
|
3351
|
+
* g_app_info_launch (app_info, NULL, NULL, NULL);
|
|
3352
|
+
* g_object_unref (app_info);
|
|
3422
3353
|
* }
|
|
3423
3354
|
*
|
|
3424
3355
|
* ...
|
|
3425
3356
|
*
|
|
3426
|
-
*
|
|
3357
|
+
* model = create_application_list ();
|
|
3427
3358
|
*
|
|
3428
|
-
*
|
|
3429
|
-
*
|
|
3430
|
-
*
|
|
3359
|
+
* factory = gtk_signal_list_item_factory_new ();
|
|
3360
|
+
* g_signal_connect (factory, "setup", G_CALLBACK (setup_listitem_cb), NULL);
|
|
3361
|
+
* g_signal_connect (factory, "bind", G_CALLBACK (bind_listitem_cb), NULL);
|
|
3431
3362
|
*
|
|
3432
|
-
*
|
|
3363
|
+
* list = gtk_list_view_new (GTK_SELECTION_MODEL (gtk_single_selection_new (model)), factory);
|
|
3433
3364
|
*
|
|
3434
|
-
*
|
|
3365
|
+
* g_signal_connect (list, "activate", G_CALLBACK (activate_cb), NULL);
|
|
3435
3366
|
*
|
|
3436
|
-
*
|
|
3367
|
+
* gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (sw), list);
|
|
3437
3368
|
* ```
|
|
3438
3369
|
*
|
|
3439
3370
|
* # Actions
|
|
@@ -3471,10 +3402,7 @@ function ListViewItem(props) {
|
|
|
3471
3402
|
* `GtkListView` uses the {@link AccessibleRole.list} role, and the list
|
|
3472
3403
|
* items use the {@link AccessibleRole.list_item} role.
|
|
3473
3404
|
*/
|
|
3474
|
-
export const
|
|
3475
|
-
Root: ListViewRoot,
|
|
3476
|
-
Item: ListViewItem,
|
|
3477
|
-
};
|
|
3405
|
+
export const GtkListView = "GtkListView";
|
|
3478
3406
|
/**
|
|
3479
3407
|
* `GtkLockButton` is a widget to obtain and revoke authorizations
|
|
3480
3408
|
* needed to operate the controls.
|
|
@@ -3514,7 +3442,7 @@ export const ListView = {
|
|
|
3514
3442
|
* {@link LockButton.tooltip-unlock} and
|
|
3515
3443
|
* {@link LockButton.tooltip-not-authorized} properties.
|
|
3516
3444
|
*/
|
|
3517
|
-
export const
|
|
3445
|
+
export const GtkLockButton = "GtkLockButton";
|
|
3518
3446
|
/**
|
|
3519
3447
|
* Shows controls for video playback.
|
|
3520
3448
|
*
|
|
@@ -3522,7 +3450,7 @@ export const LockButton = "LockButton";
|
|
|
3522
3450
|
*
|
|
3523
3451
|
* Usually, `GtkMediaControls` is used as part of {@link Video}.
|
|
3524
3452
|
*/
|
|
3525
|
-
export const
|
|
3453
|
+
export const GtkMediaControls = "GtkMediaControls";
|
|
3526
3454
|
/**
|
|
3527
3455
|
* Displays a popup when clicked.
|
|
3528
3456
|
*
|
|
@@ -3562,8 +3490,8 @@ export const MediaControls = "MediaControls";
|
|
|
3562
3490
|
* ```
|
|
3563
3491
|
* menubutton
|
|
3564
3492
|
* ╰── button.toggle
|
|
3565
|
-
*
|
|
3566
|
-
*
|
|
3493
|
+
* ╰── <content>
|
|
3494
|
+
* ╰── [arrow]
|
|
3567
3495
|
* ```
|
|
3568
3496
|
*
|
|
3569
3497
|
* `GtkMenuButton` has a single CSS node with name `menubutton`
|
|
@@ -3587,11 +3515,7 @@ export const MediaControls = "MediaControls";
|
|
|
3587
3515
|
*
|
|
3588
3516
|
* `GtkMenuButton` uses the {@link AccessibleRole.button} role.
|
|
3589
3517
|
*/
|
|
3590
|
-
export const
|
|
3591
|
-
Root: "MenuButton.Root",
|
|
3592
|
-
Child: "MenuButton.Child",
|
|
3593
|
-
Popover: "MenuButton.Popover",
|
|
3594
|
-
};
|
|
3518
|
+
export const GtkMenuButton = "GtkMenuButton";
|
|
3595
3519
|
/**
|
|
3596
3520
|
* `GtkMessageDialog` presents a dialog with some message text.
|
|
3597
3521
|
*
|
|
@@ -3611,18 +3535,18 @@ export const MenuButton = {
|
|
|
3611
3535
|
* ```c
|
|
3612
3536
|
* GtkDialogFlags flags = GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL;
|
|
3613
3537
|
* dialog = gtk_message_dialog_new (parent_window,
|
|
3614
|
-
*
|
|
3615
|
-
*
|
|
3616
|
-
*
|
|
3617
|
-
*
|
|
3618
|
-
*
|
|
3619
|
-
*
|
|
3538
|
+
* flags,
|
|
3539
|
+
* GTK_MESSAGE_ERROR,
|
|
3540
|
+
* GTK_BUTTONS_CLOSE,
|
|
3541
|
+
* "Error reading “%s”: %s",
|
|
3542
|
+
* filename,
|
|
3543
|
+
* g_strerror (errno));
|
|
3620
3544
|
* // Destroy the dialog when the user responds to it
|
|
3621
3545
|
* // (e.g. clicks a button)
|
|
3622
3546
|
*
|
|
3623
3547
|
* g_signal_connect (dialog, "response",
|
|
3624
|
-
*
|
|
3625
|
-
*
|
|
3548
|
+
* G_CALLBACK (gtk_window_destroy),
|
|
3549
|
+
* NULL);
|
|
3626
3550
|
* ```
|
|
3627
3551
|
*
|
|
3628
3552
|
* You might do a non-modal `GtkMessageDialog` simply by omitting the
|
|
@@ -3631,18 +3555,18 @@ export const MenuButton = {
|
|
|
3631
3555
|
* ```c
|
|
3632
3556
|
* GtkDialogFlags flags = GTK_DIALOG_DESTROY_WITH_PARENT;
|
|
3633
3557
|
* dialog = gtk_message_dialog_new (parent_window,
|
|
3634
|
-
*
|
|
3635
|
-
*
|
|
3636
|
-
*
|
|
3637
|
-
*
|
|
3638
|
-
*
|
|
3639
|
-
*
|
|
3558
|
+
* flags,
|
|
3559
|
+
* GTK_MESSAGE_ERROR,
|
|
3560
|
+
* GTK_BUTTONS_CLOSE,
|
|
3561
|
+
* "Error reading “%s”: %s",
|
|
3562
|
+
* filename,
|
|
3563
|
+
* g_strerror (errno));
|
|
3640
3564
|
*
|
|
3641
3565
|
* // Destroy the dialog when the user responds to it
|
|
3642
3566
|
* // (e.g. clicks a button)
|
|
3643
3567
|
* g_signal_connect (dialog, "response",
|
|
3644
|
-
*
|
|
3645
|
-
*
|
|
3568
|
+
* G_CALLBACK (gtk_window_destroy),
|
|
3569
|
+
* NULL);
|
|
3646
3570
|
* ```
|
|
3647
3571
|
*
|
|
3648
3572
|
* # GtkMessageDialog as GtkBuildable
|
|
@@ -3650,7 +3574,7 @@ export const MenuButton = {
|
|
|
3650
3574
|
* The `GtkMessageDialog` implementation of the `GtkBuildable` interface exposes
|
|
3651
3575
|
* the message area as an internal child with the name “message_area”.
|
|
3652
3576
|
*/
|
|
3653
|
-
export const
|
|
3577
|
+
export const GtkMessageDialog = "GtkMessageDialog";
|
|
3654
3578
|
/**
|
|
3655
3579
|
* Switches between children using tabs.
|
|
3656
3580
|
*
|
|
@@ -3681,16 +3605,16 @@ export const MessageDialog = "MessageDialog";
|
|
|
3681
3605
|
*
|
|
3682
3606
|
* ```xml
|
|
3683
3607
|
* <object class="GtkNotebook">
|
|
3684
|
-
*
|
|
3685
|
-
*
|
|
3686
|
-
*
|
|
3687
|
-
*
|
|
3688
|
-
*
|
|
3689
|
-
*
|
|
3690
|
-
*
|
|
3691
|
-
*
|
|
3692
|
-
*
|
|
3693
|
-
*
|
|
3608
|
+
* <child>
|
|
3609
|
+
* <object class="GtkLabel" id="notebook-content">
|
|
3610
|
+
* <property name="label">Content</property>
|
|
3611
|
+
* </object>
|
|
3612
|
+
* </child>
|
|
3613
|
+
* <child type="tab">
|
|
3614
|
+
* <object class="GtkLabel" id="notebook-tab">
|
|
3615
|
+
* <property name="label">Tab</property>
|
|
3616
|
+
* </object>
|
|
3617
|
+
* </child>
|
|
3694
3618
|
* </object>
|
|
3695
3619
|
* ```
|
|
3696
3620
|
*
|
|
@@ -3736,9 +3660,9 @@ export const MessageDialog = "MessageDialog";
|
|
|
3736
3660
|
* │ ╰── [<action widget>]
|
|
3737
3661
|
* │
|
|
3738
3662
|
* ╰── stack
|
|
3739
|
-
*
|
|
3740
|
-
*
|
|
3741
|
-
*
|
|
3663
|
+
* ├── <child>
|
|
3664
|
+
* ┊
|
|
3665
|
+
* ╰── <child>
|
|
3742
3666
|
* ```
|
|
3743
3667
|
*
|
|
3744
3668
|
* `GtkNotebook` has a main CSS node with name `notebook`, a subnode
|
|
@@ -3769,10 +3693,7 @@ export const MessageDialog = "MessageDialog";
|
|
|
3769
3693
|
* - {@link AccessibleRole.tab} role for each tab
|
|
3770
3694
|
* - {@link AccessibleRole.tab_panel} for each page
|
|
3771
3695
|
*/
|
|
3772
|
-
export const
|
|
3773
|
-
Root: "Notebook.Root",
|
|
3774
|
-
Page: "Notebook.Page",
|
|
3775
|
-
};
|
|
3696
|
+
export const GtkNotebook = "GtkNotebook";
|
|
3776
3697
|
/**
|
|
3777
3698
|
* Places “overlay” widgets on top of a single main child.
|
|
3778
3699
|
*
|
|
@@ -3806,7 +3727,7 @@ export const Notebook = {
|
|
|
3806
3727
|
* whose alignments cause them to be positioned at an edge get the style classes
|
|
3807
3728
|
* “.left”, “.right”, “.top”, and/or “.bottom” according to their position.
|
|
3808
3729
|
*/
|
|
3809
|
-
export const
|
|
3730
|
+
export const GtkOverlay = "GtkOverlay";
|
|
3810
3731
|
/**
|
|
3811
3732
|
* Presents a page setup dialog for platforms which don’t provide
|
|
3812
3733
|
* a native page setup dialog, like Unix.
|
|
@@ -3822,7 +3743,7 @@ export const Overlay = "Overlay";
|
|
|
3822
3743
|
* `GtkPageSetupUnixDialog` has a single CSS node with the name `window` and
|
|
3823
3744
|
* style class `.pagesetup`.
|
|
3824
3745
|
*/
|
|
3825
|
-
export const
|
|
3746
|
+
export const GtkPageSetupUnixDialog = "GtkPageSetupUnixDialog";
|
|
3826
3747
|
/**
|
|
3827
3748
|
* Arranges its children in two panes, horizontally or vertically.
|
|
3828
3749
|
*
|
|
@@ -3903,11 +3824,7 @@ export const PageSetupUnixDialog = "PageSetupUnixDialog";
|
|
|
3903
3824
|
* gtk_widget_set_size_request (frame2, 50, -1);
|
|
3904
3825
|
* ```
|
|
3905
3826
|
*/
|
|
3906
|
-
export const
|
|
3907
|
-
Root: "Paned.Root",
|
|
3908
|
-
EndChild: "Paned.EndChild",
|
|
3909
|
-
StartChild: "Paned.StartChild",
|
|
3910
|
-
};
|
|
3827
|
+
export const GtkPaned = "GtkPaned";
|
|
3911
3828
|
/**
|
|
3912
3829
|
* A single-line text entry widget for entering passwords and other secrets.
|
|
3913
3830
|
*
|
|
@@ -3929,8 +3846,8 @@ export const Paned = {
|
|
|
3929
3846
|
* ```
|
|
3930
3847
|
* entry.password
|
|
3931
3848
|
* ╰── text
|
|
3932
|
-
*
|
|
3933
|
-
*
|
|
3849
|
+
* ├── image.caps-lock-indicator
|
|
3850
|
+
* ┊
|
|
3934
3851
|
* ```
|
|
3935
3852
|
*
|
|
3936
3853
|
* `GtkPasswordEntry` has a single CSS node with name entry that carries
|
|
@@ -3942,7 +3859,7 @@ export const Paned = {
|
|
|
3942
3859
|
*
|
|
3943
3860
|
* `GtkPasswordEntry` uses the {@link AccessibleRole.text_box} role.
|
|
3944
3861
|
*/
|
|
3945
|
-
export const
|
|
3862
|
+
export const GtkPasswordEntry = "GtkPasswordEntry";
|
|
3946
3863
|
/**
|
|
3947
3864
|
* Displays a `GdkPaintable`.
|
|
3948
3865
|
*
|
|
@@ -3991,7 +3908,7 @@ export const PasswordEntry = "PasswordEntry";
|
|
|
3991
3908
|
*
|
|
3992
3909
|
* `GtkPicture` uses the {@link AccessibleRole.img} role.
|
|
3993
3910
|
*/
|
|
3994
|
-
export const
|
|
3911
|
+
export const GtkPicture = "GtkPicture";
|
|
3995
3912
|
/**
|
|
3996
3913
|
* Presents a bubble-like popup.
|
|
3997
3914
|
*
|
|
@@ -4025,22 +3942,22 @@ export const Picture = "Picture";
|
|
|
4025
3942
|
*
|
|
4026
3943
|
* ```xml
|
|
4027
3944
|
* <section>
|
|
4028
|
-
*
|
|
4029
|
-
*
|
|
4030
|
-
*
|
|
4031
|
-
*
|
|
4032
|
-
*
|
|
4033
|
-
*
|
|
4034
|
-
*
|
|
4035
|
-
*
|
|
4036
|
-
*
|
|
4037
|
-
*
|
|
4038
|
-
*
|
|
4039
|
-
*
|
|
4040
|
-
*
|
|
4041
|
-
*
|
|
4042
|
-
*
|
|
4043
|
-
*
|
|
3945
|
+
* <attribute name="display-hint">horizontal-buttons</attribute>
|
|
3946
|
+
* <item>
|
|
3947
|
+
* <attribute name="label">Cut</attribute>
|
|
3948
|
+
* <attribute name="action">app.cut</attribute>
|
|
3949
|
+
* <attribute name="verb-icon">edit-cut-symbolic</attribute>
|
|
3950
|
+
* </item>
|
|
3951
|
+
* <item>
|
|
3952
|
+
* <attribute name="label">Copy</attribute>
|
|
3953
|
+
* <attribute name="action">app.copy</attribute>
|
|
3954
|
+
* <attribute name="verb-icon">edit-copy-symbolic</attribute>
|
|
3955
|
+
* </item>
|
|
3956
|
+
* <item>
|
|
3957
|
+
* <attribute name="label">Paste</attribute>
|
|
3958
|
+
* <attribute name="action">app.paste</attribute>
|
|
3959
|
+
* <attribute name="verb-icon">edit-paste-symbolic</attribute>
|
|
3960
|
+
* </item>
|
|
4044
3961
|
* </section>
|
|
4045
3962
|
* ```
|
|
4046
3963
|
*
|
|
@@ -4061,7 +3978,7 @@ export const Picture = "Picture";
|
|
|
4061
3978
|
* popover.background[.menu]
|
|
4062
3979
|
* ├── arrow
|
|
4063
3980
|
* ╰── contents
|
|
4064
|
-
*
|
|
3981
|
+
* ╰── <child>
|
|
4065
3982
|
* ```
|
|
4066
3983
|
*
|
|
4067
3984
|
* `GtkPopover` has a main node with name `popover`, an arrow with name `arrow`,
|
|
@@ -4087,23 +4004,7 @@ export const Picture = "Picture";
|
|
|
4087
4004
|
* solid, no border-radius, only one border width (border-bottom-width is
|
|
4088
4005
|
* used) and no box-shadow.
|
|
4089
4006
|
*/
|
|
4090
|
-
export const
|
|
4091
|
-
Root: "Popover.Root",
|
|
4092
|
-
Child: "Popover.Child",
|
|
4093
|
-
DefaultWidget: "Popover.DefaultWidget",
|
|
4094
|
-
};
|
|
4095
|
-
function PopoverMenuRoot(props) {
|
|
4096
|
-
return createElement("PopoverMenu.Root", props);
|
|
4097
|
-
}
|
|
4098
|
-
function PopoverMenuItem(props) {
|
|
4099
|
-
return createElement("Menu.Item", props);
|
|
4100
|
-
}
|
|
4101
|
-
function PopoverMenuSection(props) {
|
|
4102
|
-
return createElement("Menu.Section", props);
|
|
4103
|
-
}
|
|
4104
|
-
function PopoverMenuSubmenu(props) {
|
|
4105
|
-
return createElement("Menu.Submenu", props);
|
|
4106
|
-
}
|
|
4007
|
+
export const GtkPopover = "GtkPopover";
|
|
4107
4008
|
/**
|
|
4108
4009
|
* A subclass of `GtkPopover` that implements menu behavior.
|
|
4109
4010
|
*
|
|
@@ -4133,20 +4034,20 @@ function PopoverMenuSubmenu(props) {
|
|
|
4133
4034
|
*
|
|
4134
4035
|
* ```xml
|
|
4135
4036
|
* <menu id='app-menu'>
|
|
4136
|
-
*
|
|
4137
|
-
*
|
|
4138
|
-
*
|
|
4139
|
-
*
|
|
4140
|
-
*
|
|
4141
|
-
*
|
|
4142
|
-
*
|
|
4143
|
-
*
|
|
4144
|
-
*
|
|
4145
|
-
*
|
|
4146
|
-
*
|
|
4147
|
-
*
|
|
4148
|
-
*
|
|
4149
|
-
*
|
|
4037
|
+
* <section>
|
|
4038
|
+
* <item>
|
|
4039
|
+
* <attribute name='label' translatable='yes'>_New Window</attribute>
|
|
4040
|
+
* <attribute name='action'>app.new</attribute>
|
|
4041
|
+
* </item>
|
|
4042
|
+
* <item>
|
|
4043
|
+
* <attribute name='label' translatable='yes'>_About Sunny</attribute>
|
|
4044
|
+
* <attribute name='action'>app.about</attribute>
|
|
4045
|
+
* </item>
|
|
4046
|
+
* <item>
|
|
4047
|
+
* <attribute name='label' translatable='yes'>_Quit</attribute>
|
|
4048
|
+
* <attribute name='action'>app.quit</attribute>
|
|
4049
|
+
* </item>
|
|
4050
|
+
* </section>
|
|
4150
4051
|
* </menu>
|
|
4151
4052
|
* ```
|
|
4152
4053
|
*
|
|
@@ -4222,12 +4123,7 @@ function PopoverMenuSubmenu(props) {
|
|
|
4222
4123
|
* {@link AccessibleRole.checkbox} or {@link AccessibleRole.menu_item_radio}
|
|
4223
4124
|
* roles, depending on the action they are connected to.
|
|
4224
4125
|
*/
|
|
4225
|
-
export const
|
|
4226
|
-
Root: PopoverMenuRoot,
|
|
4227
|
-
Item: PopoverMenuItem,
|
|
4228
|
-
Section: PopoverMenuSection,
|
|
4229
|
-
Submenu: PopoverMenuSubmenu,
|
|
4230
|
-
};
|
|
4126
|
+
export const GtkPopoverMenu = "GtkPopoverMenu";
|
|
4231
4127
|
/**
|
|
4232
4128
|
* Presents a horizontal bar of items that pop up menus when clicked.
|
|
4233
4129
|
*
|
|
@@ -4243,7 +4139,7 @@ export const PopoverMenu = {
|
|
|
4243
4139
|
* ├── item[.active]
|
|
4244
4140
|
* ┊ ╰── popover
|
|
4245
4141
|
* ╰── item
|
|
4246
|
-
*
|
|
4142
|
+
* ╰── popover
|
|
4247
4143
|
* ```
|
|
4248
4144
|
*
|
|
4249
4145
|
* `GtkPopoverMenuBar` has a single CSS node with name menubar, below which
|
|
@@ -4258,7 +4154,7 @@ export const PopoverMenu = {
|
|
|
4258
4154
|
* the menu items use the {@link AccessibleRole.menu_item} role and
|
|
4259
4155
|
* the menus use the {@link AccessibleRole.menu} role.
|
|
4260
4156
|
*/
|
|
4261
|
-
export const
|
|
4157
|
+
export const GtkPopoverMenuBar = "GtkPopoverMenuBar";
|
|
4262
4158
|
/**
|
|
4263
4159
|
* A print dialog for platforms which don’t provide a native
|
|
4264
4160
|
* print dialog, like Unix.
|
|
@@ -4289,26 +4185,26 @@ export const PopoverMenuBar = "PopoverMenuBar";
|
|
|
4289
4185
|
*
|
|
4290
4186
|
* ```xml
|
|
4291
4187
|
* <object class="GtkPrintUnixDialog" id="dialog1">
|
|
4292
|
-
*
|
|
4293
|
-
*
|
|
4294
|
-
*
|
|
4295
|
-
*
|
|
4296
|
-
*
|
|
4297
|
-
*
|
|
4298
|
-
*
|
|
4299
|
-
*
|
|
4300
|
-
*
|
|
4301
|
-
*
|
|
4302
|
-
*
|
|
4303
|
-
*
|
|
4304
|
-
*
|
|
4305
|
-
*
|
|
4306
|
-
*
|
|
4307
|
-
*
|
|
4308
|
-
*
|
|
4309
|
-
*
|
|
4310
|
-
*
|
|
4311
|
-
*
|
|
4188
|
+
* <child internal-child="notebook">
|
|
4189
|
+
* <object class="GtkNotebook" id="notebook">
|
|
4190
|
+
* <child>
|
|
4191
|
+
* <object type="GtkNotebookPage">
|
|
4192
|
+
* <property name="tab_expand">False</property>
|
|
4193
|
+
* <property name="tab_fill">False</property>
|
|
4194
|
+
* <property name="tab">
|
|
4195
|
+
* <object class="GtkLabel" id="tablabel">
|
|
4196
|
+
* <property name="label">Tab label</property>
|
|
4197
|
+
* </object>
|
|
4198
|
+
* </property>
|
|
4199
|
+
* <property name="child">
|
|
4200
|
+
* <object class="GtkLabel" id="tabcontent">
|
|
4201
|
+
* <property name="label">Content on notebook tab</property>
|
|
4202
|
+
* </object>
|
|
4203
|
+
* </property>
|
|
4204
|
+
* </object>
|
|
4205
|
+
* </child>
|
|
4206
|
+
* </object>
|
|
4207
|
+
* </child>
|
|
4312
4208
|
* </object>
|
|
4313
4209
|
* ```
|
|
4314
4210
|
*
|
|
@@ -4317,7 +4213,7 @@ export const PopoverMenuBar = "PopoverMenuBar";
|
|
|
4317
4213
|
* `GtkPrintUnixDialog` has a single CSS node with name window. The style classes
|
|
4318
4214
|
* dialog and print are added.
|
|
4319
4215
|
*/
|
|
4320
|
-
export const
|
|
4216
|
+
export const GtkPrintUnixDialog = "GtkPrintUnixDialog";
|
|
4321
4217
|
/**
|
|
4322
4218
|
* Displays the progress of a long-running operation.
|
|
4323
4219
|
*
|
|
@@ -4350,7 +4246,7 @@ export const PrintUnixDialog = "PrintUnixDialog";
|
|
|
4350
4246
|
* progressbar[.osd]
|
|
4351
4247
|
* ├── [text]
|
|
4352
4248
|
* ╰── trough[.empty][.full]
|
|
4353
|
-
*
|
|
4249
|
+
* ╰── progress[.pulse]
|
|
4354
4250
|
* ```
|
|
4355
4251
|
*
|
|
4356
4252
|
* `GtkProgressBar` has a main CSS node with name progressbar and subnodes with
|
|
@@ -4367,7 +4263,7 @@ export const PrintUnixDialog = "PrintUnixDialog";
|
|
|
4367
4263
|
* and sets the {@link AccessibleProperty.value_min}, {@link AccessibleProperty.value_max} and {@link AccessibleProperty.value_now} properties to reflect
|
|
4368
4264
|
* the progress.
|
|
4369
4265
|
*/
|
|
4370
|
-
export const
|
|
4266
|
+
export const GtkProgressBar = "GtkProgressBar";
|
|
4371
4267
|
/**
|
|
4372
4268
|
* Base class for widgets which visualize an adjustment.
|
|
4373
4269
|
*
|
|
@@ -4384,7 +4280,7 @@ export const ProgressBar = "ProgressBar";
|
|
|
4384
4280
|
* dragging, or initiating the drag with a long-press will enable the
|
|
4385
4281
|
* fine-tuning mode.
|
|
4386
4282
|
*/
|
|
4387
|
-
export const
|
|
4283
|
+
export const GtkRange = "GtkRange";
|
|
4388
4284
|
/**
|
|
4389
4285
|
* Animates the transition of its child from invisible to visible.
|
|
4390
4286
|
*
|
|
@@ -4408,7 +4304,7 @@ export const Range = "Range";
|
|
|
4408
4304
|
* The child of `GtkRevealer`, if set, is always available in the accessibility
|
|
4409
4305
|
* tree, regardless of the state of the revealer widget.
|
|
4410
4306
|
*/
|
|
4411
|
-
export const
|
|
4307
|
+
export const GtkRevealer = "GtkRevealer";
|
|
4412
4308
|
/**
|
|
4413
4309
|
* Allows to select a numeric value with a slider control.
|
|
4414
4310
|
*
|
|
@@ -4461,9 +4357,9 @@ export const Revealer = "Revealer";
|
|
|
4461
4357
|
* ┊ ┊
|
|
4462
4358
|
* │ ╰── mark
|
|
4463
4359
|
* ╰── trough
|
|
4464
|
-
*
|
|
4465
|
-
*
|
|
4466
|
-
*
|
|
4360
|
+
* ├── [fill]
|
|
4361
|
+
* ├── [highlight]
|
|
4362
|
+
* ╰── slider
|
|
4467
4363
|
* ```
|
|
4468
4364
|
*
|
|
4469
4365
|
* `GtkScale` has a main CSS node with name scale and a subnode for its contents,
|
|
@@ -4500,7 +4396,7 @@ export const Revealer = "Revealer";
|
|
|
4500
4396
|
*
|
|
4501
4397
|
* `GtkScale` uses the {@link AccessibleRole.slider} role.
|
|
4502
4398
|
*/
|
|
4503
|
-
export const
|
|
4399
|
+
export const GtkScale = "GtkScale";
|
|
4504
4400
|
/**
|
|
4505
4401
|
* Provides a button which pops up a scale widget.
|
|
4506
4402
|
*
|
|
@@ -4519,13 +4415,13 @@ export const Scale = "Scale";
|
|
|
4519
4415
|
* ```
|
|
4520
4416
|
* scalebutton.scale
|
|
4521
4417
|
* ╰── button.toggle
|
|
4522
|
-
*
|
|
4418
|
+
* ╰── <icon>
|
|
4523
4419
|
* ```
|
|
4524
4420
|
*
|
|
4525
4421
|
* `GtkScaleButton` has a single CSS node with name scalebutton and `.scale`
|
|
4526
4422
|
* style class, and contains a `button` node with a `.toggle` style class.
|
|
4527
4423
|
*/
|
|
4528
|
-
export const
|
|
4424
|
+
export const GtkScaleButton = "GtkScaleButton";
|
|
4529
4425
|
/**
|
|
4530
4426
|
* Shows a horizontal or vertical scrollbar.
|
|
4531
4427
|
*
|
|
@@ -4550,8 +4446,8 @@ export const ScaleButton = "ScaleButton";
|
|
|
4550
4446
|
* ```
|
|
4551
4447
|
* scrollbar
|
|
4552
4448
|
* ╰── range[.fine-tune]
|
|
4553
|
-
*
|
|
4554
|
-
*
|
|
4449
|
+
* ╰── trough
|
|
4450
|
+
* ╰── slider
|
|
4555
4451
|
* ```
|
|
4556
4452
|
*
|
|
4557
4453
|
* `GtkScrollbar` has a main CSS node with name scrollbar and a subnode for its
|
|
@@ -4570,7 +4466,7 @@ export const ScaleButton = "ScaleButton";
|
|
|
4570
4466
|
*
|
|
4571
4467
|
* `GtkScrollbar` uses the {@link AccessibleRole.scrollbar} role.
|
|
4572
4468
|
*/
|
|
4573
|
-
export const
|
|
4469
|
+
export const GtkScrollbar = "GtkScrollbar";
|
|
4574
4470
|
/**
|
|
4575
4471
|
* Makes its child scrollable.
|
|
4576
4472
|
*
|
|
@@ -4650,7 +4546,7 @@ export const Scrollbar = "Scrollbar";
|
|
|
4650
4546
|
* Starting from GTK 4.12, `GtkScrolledWindow` uses the {@link AccessibleRole.generic}
|
|
4651
4547
|
* role.
|
|
4652
4548
|
*/
|
|
4653
|
-
export const
|
|
4549
|
+
export const GtkScrolledWindow = "GtkScrolledWindow";
|
|
4654
4550
|
/**
|
|
4655
4551
|
* Reveals a search entry when search is started.
|
|
4656
4552
|
*
|
|
@@ -4689,9 +4585,9 @@ export const ScrolledWindow = "ScrolledWindow";
|
|
|
4689
4585
|
* ```
|
|
4690
4586
|
* searchbar
|
|
4691
4587
|
* ╰── revealer
|
|
4692
|
-
*
|
|
4693
|
-
*
|
|
4694
|
-
*
|
|
4588
|
+
* ╰── box
|
|
4589
|
+
* ├── [child]
|
|
4590
|
+
* ╰── [button.close]
|
|
4695
4591
|
* ```
|
|
4696
4592
|
*
|
|
4697
4593
|
* `GtkSearchBar` has a main CSS node with name searchbar. It has a child
|
|
@@ -4703,11 +4599,7 @@ export const ScrolledWindow = "ScrolledWindow";
|
|
|
4703
4599
|
*
|
|
4704
4600
|
* `GtkSearchBar` uses the {@link AccessibleRole.search} role.
|
|
4705
4601
|
*/
|
|
4706
|
-
export const
|
|
4707
|
-
Root: "SearchBar.Root",
|
|
4708
|
-
Child: "SearchBar.Child",
|
|
4709
|
-
KeyCaptureWidget: "SearchBar.KeyCaptureWidget",
|
|
4710
|
-
};
|
|
4602
|
+
export const GtkSearchBar = "GtkSearchBar";
|
|
4711
4603
|
/**
|
|
4712
4604
|
* A single-line text entry widget for use as a search entry.
|
|
4713
4605
|
*
|
|
@@ -4762,7 +4654,7 @@ export const SearchBar = {
|
|
|
4762
4654
|
*
|
|
4763
4655
|
* `GtkSearchEntry` uses the {@link AccessibleRole.search_box} role.
|
|
4764
4656
|
*/
|
|
4765
|
-
export const
|
|
4657
|
+
export const GtkSearchEntry = "GtkSearchEntry";
|
|
4766
4658
|
/**
|
|
4767
4659
|
* Draws a horizontal or vertical line to separate other widgets.
|
|
4768
4660
|
*
|
|
@@ -4781,13 +4673,13 @@ export const SearchEntry = "SearchEntry";
|
|
|
4781
4673
|
*
|
|
4782
4674
|
* `GtkSeparator` uses the {@link AccessibleRole.separator} role.
|
|
4783
4675
|
*/
|
|
4784
|
-
export const
|
|
4676
|
+
export const GtkSeparator = "GtkSeparator";
|
|
4785
4677
|
/**
|
|
4786
4678
|
* `GtkShortcutLabel` displays a single keyboard shortcut or gesture.
|
|
4787
4679
|
*
|
|
4788
4680
|
* The main use case for `GtkShortcutLabel` is inside a {@link ShortcutsWindow}.
|
|
4789
4681
|
*/
|
|
4790
|
-
export const
|
|
4682
|
+
export const GtkShortcutLabel = "GtkShortcutLabel";
|
|
4791
4683
|
/**
|
|
4792
4684
|
* A `GtkShortcutsGroup` represents a group of related keyboard shortcuts
|
|
4793
4685
|
* or gestures.
|
|
@@ -4806,7 +4698,7 @@ export const ShortcutLabel = "ShortcutLabel";
|
|
|
4806
4698
|
* If you need to add a shortcut programmatically, use
|
|
4807
4699
|
* {@link ShortcutsGroup.add_shortcut}.
|
|
4808
4700
|
*/
|
|
4809
|
-
export const
|
|
4701
|
+
export const GtkShortcutsGroup = "GtkShortcutsGroup";
|
|
4810
4702
|
/**
|
|
4811
4703
|
* A `GtkShortcutsSection` collects all the keyboard shortcuts and gestures
|
|
4812
4704
|
* for a major application mode.
|
|
@@ -4839,14 +4731,14 @@ export const ShortcutsGroup = "ShortcutsGroup";
|
|
|
4839
4731
|
*
|
|
4840
4732
|
* - {@link ShortcutsSection.:change-current-page}
|
|
4841
4733
|
*/
|
|
4842
|
-
export const
|
|
4734
|
+
export const GtkShortcutsSection = "GtkShortcutsSection";
|
|
4843
4735
|
/**
|
|
4844
4736
|
* A `GtkShortcutsShortcut` represents a single keyboard shortcut or gesture
|
|
4845
4737
|
* with a short text.
|
|
4846
4738
|
*
|
|
4847
4739
|
* This widget is only meant to be used with `GtkShortcutsWindow`.
|
|
4848
4740
|
*/
|
|
4849
|
-
export const
|
|
4741
|
+
export const GtkShortcutsShortcut = "GtkShortcutsShortcut";
|
|
4850
4742
|
/**
|
|
4851
4743
|
* A `GtkShortcutsWindow` shows information about the keyboard shortcuts
|
|
4852
4744
|
* and gestures of an application.
|
|
@@ -4907,7 +4799,7 @@ export const ShortcutsShortcut = "ShortcutsShortcut";
|
|
|
4907
4799
|
* `GtkShortcutsWindow` has a single CSS node with the name `window` and style
|
|
4908
4800
|
* class `.shortcuts`.
|
|
4909
4801
|
*/
|
|
4910
|
-
export const
|
|
4802
|
+
export const GtkShortcutsWindow = "GtkShortcutsWindow";
|
|
4911
4803
|
/**
|
|
4912
4804
|
* Allows to enter or change numeric values.
|
|
4913
4805
|
*
|
|
@@ -4936,27 +4828,27 @@ export const ShortcutsWindow = "ShortcutsWindow";
|
|
|
4936
4828
|
*
|
|
4937
4829
|
* int
|
|
4938
4830
|
* grab_int_value (GtkSpinButton *button,
|
|
4939
|
-
*
|
|
4831
|
+
* gpointer user_data)
|
|
4940
4832
|
* {
|
|
4941
|
-
*
|
|
4833
|
+
* return gtk_spin_button_get_value_as_int (button);
|
|
4942
4834
|
* }
|
|
4943
4835
|
*
|
|
4944
4836
|
* void
|
|
4945
4837
|
* create_integer_spin_button (void)
|
|
4946
4838
|
* {
|
|
4947
4839
|
*
|
|
4948
|
-
*
|
|
4949
|
-
*
|
|
4840
|
+
* GtkWidget *window, *button;
|
|
4841
|
+
* GtkAdjustment *adjustment;
|
|
4950
4842
|
*
|
|
4951
|
-
*
|
|
4843
|
+
* adjustment = gtk_adjustment_new (50.0, 0.0, 100.0, 1.0, 5.0, 0.0);
|
|
4952
4844
|
*
|
|
4953
|
-
*
|
|
4845
|
+
* window = gtk_window_new ();
|
|
4954
4846
|
*
|
|
4955
|
-
*
|
|
4956
|
-
*
|
|
4957
|
-
*
|
|
4847
|
+
* // creates the spinbutton, with no decimal places
|
|
4848
|
+
* button = gtk_spin_button_new (adjustment, 1.0, 0);
|
|
4849
|
+
* gtk_window_set_child (GTK_WINDOW (window), button);
|
|
4958
4850
|
*
|
|
4959
|
-
*
|
|
4851
|
+
* gtk_window_present (GTK_WINDOW (window));
|
|
4960
4852
|
* }
|
|
4961
4853
|
* ```
|
|
4962
4854
|
*
|
|
@@ -4968,26 +4860,26 @@ export const ShortcutsWindow = "ShortcutsWindow";
|
|
|
4968
4860
|
*
|
|
4969
4861
|
* float
|
|
4970
4862
|
* grab_float_value (GtkSpinButton *button,
|
|
4971
|
-
*
|
|
4863
|
+
* gpointer user_data)
|
|
4972
4864
|
* {
|
|
4973
|
-
*
|
|
4865
|
+
* return gtk_spin_button_get_value (button);
|
|
4974
4866
|
* }
|
|
4975
4867
|
*
|
|
4976
4868
|
* void
|
|
4977
4869
|
* create_floating_spin_button (void)
|
|
4978
4870
|
* {
|
|
4979
|
-
*
|
|
4980
|
-
*
|
|
4871
|
+
* GtkWidget *window, *button;
|
|
4872
|
+
* GtkAdjustment *adjustment;
|
|
4981
4873
|
*
|
|
4982
|
-
*
|
|
4874
|
+
* adjustment = gtk_adjustment_new (2.500, 0.0, 5.0, 0.001, 0.1, 0.0);
|
|
4983
4875
|
*
|
|
4984
|
-
*
|
|
4876
|
+
* window = gtk_window_new ();
|
|
4985
4877
|
*
|
|
4986
|
-
*
|
|
4987
|
-
*
|
|
4988
|
-
*
|
|
4878
|
+
* // creates the spinbutton, with three decimal places
|
|
4879
|
+
* button = gtk_spin_button_new (adjustment, 0.001, 3);
|
|
4880
|
+
* gtk_window_set_child (GTK_WINDOW (window), button);
|
|
4989
4881
|
*
|
|
4990
|
-
*
|
|
4882
|
+
* gtk_window_present (GTK_WINDOW (window));
|
|
4991
4883
|
* }
|
|
4992
4884
|
* ```
|
|
4993
4885
|
*
|
|
@@ -5027,7 +4919,7 @@ export const ShortcutsWindow = "ShortcutsWindow";
|
|
|
5027
4919
|
*
|
|
5028
4920
|
* `GtkSpinButton` uses the {@link AccessibleRole.spin_button} role.
|
|
5029
4921
|
*/
|
|
5030
|
-
export const
|
|
4922
|
+
export const GtkSpinButton = "GtkSpinButton";
|
|
5031
4923
|
/**
|
|
5032
4924
|
* Displays an icon-size spinning animation.
|
|
5033
4925
|
*
|
|
@@ -5049,16 +4941,7 @@ export const SpinButton = "SpinButton";
|
|
|
5049
4941
|
*
|
|
5050
4942
|
* `GtkSpinner` uses the {@link AccessibleRole.progress_bar} role.
|
|
5051
4943
|
*/
|
|
5052
|
-
export const
|
|
5053
|
-
function StackRoot(props) {
|
|
5054
|
-
return createElement("Stack.Root", props);
|
|
5055
|
-
}
|
|
5056
|
-
function StackPage(props) {
|
|
5057
|
-
return createElement("Stack.Page", props);
|
|
5058
|
-
}
|
|
5059
|
-
function StackVisibleChild(props) {
|
|
5060
|
-
return createElement("Stack.VisibleChild", props);
|
|
5061
|
-
}
|
|
4944
|
+
export const GtkSpinner = "GtkSpinner";
|
|
5062
4945
|
/**
|
|
5063
4946
|
* Shows one of its children at a time.
|
|
5064
4947
|
*
|
|
@@ -5086,18 +4969,18 @@ function StackVisibleChild(props) {
|
|
|
5086
4969
|
* objects explicitly, and set the child widget as a property on it:
|
|
5087
4970
|
*
|
|
5088
4971
|
* ```xml
|
|
5089
|
-
*
|
|
5090
|
-
*
|
|
5091
|
-
*
|
|
5092
|
-
*
|
|
5093
|
-
*
|
|
5094
|
-
*
|
|
5095
|
-
*
|
|
5096
|
-
*
|
|
5097
|
-
*
|
|
5098
|
-
*
|
|
5099
|
-
*
|
|
5100
|
-
*
|
|
4972
|
+
* <object class="GtkStack" id="stack">
|
|
4973
|
+
* <child>
|
|
4974
|
+
* <object class="GtkStackPage">
|
|
4975
|
+
* <property name="name">page1</property>
|
|
4976
|
+
* <property name="title">In the beginning…</property>
|
|
4977
|
+
* <property name="child">
|
|
4978
|
+
* <object class="GtkLabel">
|
|
4979
|
+
* <property name="label">It was dark</property>
|
|
4980
|
+
* </object>
|
|
4981
|
+
* </property>
|
|
4982
|
+
* </object>
|
|
4983
|
+
* </child>
|
|
5101
4984
|
* ```
|
|
5102
4985
|
*
|
|
5103
4986
|
* # CSS nodes
|
|
@@ -5109,11 +4992,7 @@ function StackVisibleChild(props) {
|
|
|
5109
4992
|
* `GtkStack` uses the {@link AccessibleRole.tab_panel} role for the stack
|
|
5110
4993
|
* pages, which are the accessible parent objects of the child widgets.
|
|
5111
4994
|
*/
|
|
5112
|
-
export const
|
|
5113
|
-
Root: StackRoot,
|
|
5114
|
-
Page: StackPage,
|
|
5115
|
-
VisibleChild: StackVisibleChild,
|
|
5116
|
-
};
|
|
4995
|
+
export const GtkStack = "GtkStack";
|
|
5117
4996
|
/**
|
|
5118
4997
|
* Uses a sidebar to switch between `GtkStack` pages.
|
|
5119
4998
|
*
|
|
@@ -5133,10 +5012,7 @@ export const Stack = {
|
|
|
5133
5012
|
* .needs-attention style class to the widgets representing the stack
|
|
5134
5013
|
* pages.
|
|
5135
5014
|
*/
|
|
5136
|
-
export const
|
|
5137
|
-
Root: "StackSidebar.Root",
|
|
5138
|
-
Stack: "StackSidebar.Stack",
|
|
5139
|
-
};
|
|
5015
|
+
export const GtkStackSidebar = "GtkStackSidebar";
|
|
5140
5016
|
/**
|
|
5141
5017
|
* Shows a row of buttons to switch between `GtkStack` pages.
|
|
5142
5018
|
*
|
|
@@ -5171,10 +5047,7 @@ export const StackSidebar = {
|
|
|
5171
5047
|
* the stack switcher to be made vertical with
|
|
5172
5048
|
* `gtk_orientable_set_orientation()`.
|
|
5173
5049
|
*/
|
|
5174
|
-
export const
|
|
5175
|
-
Root: "StackSwitcher.Root",
|
|
5176
|
-
Stack: "StackSwitcher.Stack",
|
|
5177
|
-
};
|
|
5050
|
+
export const GtkStackSwitcher = "GtkStackSwitcher";
|
|
5178
5051
|
/**
|
|
5179
5052
|
* A `GtkStatusbar` widget is usually placed along the bottom of an application's
|
|
5180
5053
|
* main {@link Window}.
|
|
@@ -5213,7 +5086,7 @@ export const StackSwitcher = {
|
|
|
5213
5086
|
*
|
|
5214
5087
|
* `GtkStatusbar` has a single CSS node with name `statusbar`.
|
|
5215
5088
|
*/
|
|
5216
|
-
export const
|
|
5089
|
+
export const GtkStatusbar = "GtkStatusbar";
|
|
5217
5090
|
/**
|
|
5218
5091
|
* Shows a "light switch" that has two states: on or off.
|
|
5219
5092
|
*
|
|
@@ -5253,7 +5126,7 @@ export const Statusbar = "Statusbar";
|
|
|
5253
5126
|
*
|
|
5254
5127
|
* `GtkSwitch` uses the {@link AccessibleRole.switch} role.
|
|
5255
5128
|
*/
|
|
5256
|
-
export const
|
|
5129
|
+
export const GtkSwitch = "GtkSwitch";
|
|
5257
5130
|
/**
|
|
5258
5131
|
* A single-line text entry.
|
|
5259
5132
|
*
|
|
@@ -5366,7 +5239,7 @@ export const Switch = "Switch";
|
|
|
5366
5239
|
* as a delegate for a `GtkEditable` implementation that will be represented
|
|
5367
5240
|
* to accessibility.
|
|
5368
5241
|
*/
|
|
5369
|
-
export const
|
|
5242
|
+
export const GtkText = "GtkText";
|
|
5370
5243
|
/**
|
|
5371
5244
|
* Displays the contents of a {@link TextBuffer}.
|
|
5372
5245
|
*
|
|
@@ -5442,7 +5315,7 @@ export const Text = "Text";
|
|
|
5442
5315
|
*
|
|
5443
5316
|
* `GtkTextView` uses the {@link AccessibleRole.text_box} role.
|
|
5444
5317
|
*/
|
|
5445
|
-
export const
|
|
5318
|
+
export const GtkTextView = "GtkTextView";
|
|
5446
5319
|
/**
|
|
5447
5320
|
* Shows a button which remains “pressed-in” when clicked.
|
|
5448
5321
|
*
|
|
@@ -5481,47 +5354,44 @@ export const TextView = "TextView";
|
|
|
5481
5354
|
* ```c
|
|
5482
5355
|
* static void
|
|
5483
5356
|
* output_state (GtkToggleButton *source,
|
|
5484
|
-
*
|
|
5357
|
+
* gpointer user_data)
|
|
5485
5358
|
* {
|
|
5486
|
-
*
|
|
5487
|
-
*
|
|
5488
|
-
*
|
|
5359
|
+
* g_print ("Toggle button "%s" is active: %s",
|
|
5360
|
+
* gtk_button_get_label (GTK_BUTTON (source)),
|
|
5361
|
+
* gtk_toggle_button_get_active (source) ? "Yes" : "No");
|
|
5489
5362
|
* }
|
|
5490
5363
|
*
|
|
5491
5364
|
* static void
|
|
5492
5365
|
* make_toggles (void)
|
|
5493
5366
|
* {
|
|
5494
|
-
*
|
|
5495
|
-
*
|
|
5496
|
-
*
|
|
5497
|
-
*
|
|
5498
|
-
*
|
|
5499
|
-
*
|
|
5500
|
-
*
|
|
5501
|
-
*
|
|
5502
|
-
*
|
|
5503
|
-
*
|
|
5504
|
-
*
|
|
5505
|
-
*
|
|
5506
|
-
*
|
|
5507
|
-
*
|
|
5508
|
-
*
|
|
5509
|
-
*
|
|
5510
|
-
*
|
|
5511
|
-
*
|
|
5512
|
-
*
|
|
5513
|
-
*
|
|
5514
|
-
*
|
|
5515
|
-
*
|
|
5516
|
-
*
|
|
5517
|
-
*
|
|
5367
|
+
* GtkWidget *window, *toggle1, *toggle2;
|
|
5368
|
+
* GtkWidget *box;
|
|
5369
|
+
* const char *text;
|
|
5370
|
+
*
|
|
5371
|
+
* window = gtk_window_new ();
|
|
5372
|
+
* box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
|
|
5373
|
+
*
|
|
5374
|
+
* text = "Hi, I’m toggle button one";
|
|
5375
|
+
* toggle1 = gtk_toggle_button_new_with_label (text);
|
|
5376
|
+
*
|
|
5377
|
+
* g_signal_connect (toggle1, "toggled",
|
|
5378
|
+
* G_CALLBACK (output_state),
|
|
5379
|
+
* NULL);
|
|
5380
|
+
* gtk_box_append (GTK_BOX (box), toggle1);
|
|
5381
|
+
*
|
|
5382
|
+
* text = "Hi, I’m toggle button two";
|
|
5383
|
+
* toggle2 = gtk_toggle_button_new_with_label (text);
|
|
5384
|
+
* g_signal_connect (toggle2, "toggled",
|
|
5385
|
+
* G_CALLBACK (output_state),
|
|
5386
|
+
* NULL);
|
|
5387
|
+
* gtk_box_append (GTK_BOX (box), toggle2);
|
|
5388
|
+
*
|
|
5389
|
+
* gtk_window_set_child (GTK_WINDOW (window), box);
|
|
5390
|
+
* gtk_window_present (GTK_WINDOW (window));
|
|
5518
5391
|
* }
|
|
5519
5392
|
* ```
|
|
5520
5393
|
*/
|
|
5521
|
-
export const
|
|
5522
|
-
Root: "ToggleButton.Root",
|
|
5523
|
-
Group: "ToggleButton.Group",
|
|
5524
|
-
};
|
|
5394
|
+
export const GtkToggleButton = "GtkToggleButton";
|
|
5525
5395
|
/**
|
|
5526
5396
|
* Provides an expander for a tree-like list.
|
|
5527
5397
|
*
|
|
@@ -5600,7 +5470,7 @@ export const ToggleButton = {
|
|
|
5600
5470
|
* Since GTK 4.12, `GtkTreeExpander` uses the {@link AccessibleRole.button} role.
|
|
5601
5471
|
* Toggling it will change the `GTK_ACCESSIBLE_STATE_EXPANDED` state.
|
|
5602
5472
|
*/
|
|
5603
|
-
export const
|
|
5473
|
+
export const GtkTreeExpander = "GtkTreeExpander";
|
|
5604
5474
|
/**
|
|
5605
5475
|
* A widget for displaying both trees and lists
|
|
5606
5476
|
*
|
|
@@ -5643,23 +5513,23 @@ export const TreeExpander = "TreeExpander";
|
|
|
5643
5513
|
*
|
|
5644
5514
|
* ```xml
|
|
5645
5515
|
* <object class="GtkTreeView" id="treeview">
|
|
5646
|
-
*
|
|
5647
|
-
*
|
|
5648
|
-
*
|
|
5649
|
-
*
|
|
5650
|
-
*
|
|
5651
|
-
*
|
|
5652
|
-
*
|
|
5653
|
-
*
|
|
5654
|
-
*
|
|
5655
|
-
*
|
|
5656
|
-
*
|
|
5657
|
-
*
|
|
5658
|
-
*
|
|
5659
|
-
*
|
|
5660
|
-
*
|
|
5661
|
-
*
|
|
5662
|
-
*
|
|
5516
|
+
* <property name="model">liststore1</property>
|
|
5517
|
+
* <child>
|
|
5518
|
+
* <object class="GtkTreeViewColumn" id="test-column">
|
|
5519
|
+
* <property name="title">Test</property>
|
|
5520
|
+
* <child>
|
|
5521
|
+
* <object class="GtkCellRendererText" id="test-renderer"/>
|
|
5522
|
+
* <attributes>
|
|
5523
|
+
* <attribute name="text">1</attribute>
|
|
5524
|
+
* </attributes>
|
|
5525
|
+
* </child>
|
|
5526
|
+
* </object>
|
|
5527
|
+
* </child>
|
|
5528
|
+
* <child internal-child="selection">
|
|
5529
|
+
* <object class="GtkTreeSelection" id="selection">
|
|
5530
|
+
* <signal name="changed" handler="on_treeview_selection_changed"/>
|
|
5531
|
+
* </object>
|
|
5532
|
+
* </child>
|
|
5663
5533
|
* </object>
|
|
5664
5534
|
* ```
|
|
5665
5535
|
*
|
|
@@ -5691,7 +5561,7 @@ export const TreeExpander = "TreeExpander";
|
|
|
5691
5561
|
*
|
|
5692
5562
|
* For the drop target location during DND, a subnode with name `dndtarget` is used.
|
|
5693
5563
|
*/
|
|
5694
|
-
export const
|
|
5564
|
+
export const GtkTreeView = "GtkTreeView";
|
|
5695
5565
|
/**
|
|
5696
5566
|
* Shows a `GtkMediaStream` with media controls.
|
|
5697
5567
|
*
|
|
@@ -5708,7 +5578,7 @@ export const TreeView = "TreeView";
|
|
|
5708
5578
|
* you may want to use the {@link GdkPaintable} API and a media framework
|
|
5709
5579
|
* such as Gstreamer directly.
|
|
5710
5580
|
*/
|
|
5711
|
-
export const
|
|
5581
|
+
export const GtkVideo = "GtkVideo";
|
|
5712
5582
|
/**
|
|
5713
5583
|
* Implements scrollability for widgets that don't support scrolling
|
|
5714
5584
|
* on their own.
|
|
@@ -5729,14 +5599,14 @@ export const Video = "Video";
|
|
|
5729
5599
|
*
|
|
5730
5600
|
* Starting from GTK 4.12, `GtkViewport` uses the {@link AccessibleRole.generic} role.
|
|
5731
5601
|
*/
|
|
5732
|
-
export const
|
|
5602
|
+
export const GtkViewport = "GtkViewport";
|
|
5733
5603
|
/**
|
|
5734
5604
|
* `GtkVolumeButton` is a `GtkScaleButton` subclass tailored for
|
|
5735
5605
|
* volume control.
|
|
5736
5606
|
*
|
|
5737
5607
|
* 
|
|
5738
5608
|
*/
|
|
5739
|
-
export const
|
|
5609
|
+
export const GtkVolumeButton = "GtkVolumeButton";
|
|
5740
5610
|
/**
|
|
5741
5611
|
* Shows window frame controls.
|
|
5742
5612
|
*
|
|
@@ -5751,19 +5621,19 @@ export const VolumeButton = "VolumeButton";
|
|
|
5751
5621
|
*
|
|
5752
5622
|
* ```xml
|
|
5753
5623
|
* <object class="GtkBox">
|
|
5754
|
-
*
|
|
5755
|
-
*
|
|
5756
|
-
*
|
|
5757
|
-
*
|
|
5758
|
-
*
|
|
5759
|
-
*
|
|
5760
|
-
*
|
|
5761
|
-
*
|
|
5762
|
-
*
|
|
5763
|
-
*
|
|
5764
|
-
*
|
|
5765
|
-
*
|
|
5766
|
-
*
|
|
5624
|
+
* <child>
|
|
5625
|
+
* <object class="GtkWindowControls">
|
|
5626
|
+
* <property name="side">start</property>
|
|
5627
|
+
* </object>
|
|
5628
|
+
* </child>
|
|
5629
|
+
*
|
|
5630
|
+
* ...
|
|
5631
|
+
*
|
|
5632
|
+
* <child>
|
|
5633
|
+
* <object class="GtkWindowControls">
|
|
5634
|
+
* <property name="side">end</property>
|
|
5635
|
+
* </object>
|
|
5636
|
+
* </child>
|
|
5767
5637
|
* </object>
|
|
5768
5638
|
* ```
|
|
5769
5639
|
*
|
|
@@ -5789,7 +5659,7 @@ export const VolumeButton = "VolumeButton";
|
|
|
5789
5659
|
*
|
|
5790
5660
|
* `GtkWindowControls` uses the {@link AccessibleRole.group} role.
|
|
5791
5661
|
*/
|
|
5792
|
-
export const
|
|
5662
|
+
export const GtkWindowControls = "GtkWindowControls";
|
|
5793
5663
|
/**
|
|
5794
5664
|
* Implements titlebar functionality for a window.
|
|
5795
5665
|
*
|
|
@@ -5808,7 +5678,7 @@ export const WindowControls = "WindowControls";
|
|
|
5808
5678
|
* Starting from GTK 4.12, `GtkWindowHandle` uses the {@link AccessibleRole.generic}
|
|
5809
5679
|
* role.
|
|
5810
5680
|
*/
|
|
5811
|
-
export const
|
|
5681
|
+
export const GtkWindowHandle = "GtkWindowHandle";
|
|
5812
5682
|
/**
|
|
5813
5683
|
* A freeform window.
|
|
5814
5684
|
*
|
|
@@ -5820,16 +5690,16 @@ export const WindowHandle = "WindowHandle";
|
|
|
5820
5690
|
*
|
|
5821
5691
|
* ```xml
|
|
5822
5692
|
* <object class="AdwWindow">
|
|
5823
|
-
*
|
|
5824
|
-
*
|
|
5825
|
-
*
|
|
5826
|
-
*
|
|
5827
|
-
*
|
|
5828
|
-
*
|
|
5829
|
-
*
|
|
5830
|
-
*
|
|
5831
|
-
*
|
|
5832
|
-
*
|
|
5693
|
+
* <property name="content">
|
|
5694
|
+
* <object class="AdwToolbarView">
|
|
5695
|
+
* <child type="top">
|
|
5696
|
+
* <object class="AdwHeaderBar"/>
|
|
5697
|
+
* </child>
|
|
5698
|
+
* <property name="content">
|
|
5699
|
+
* <!-- ... -->
|
|
5700
|
+
* </property>
|
|
5701
|
+
* </object>
|
|
5702
|
+
* </property>
|
|
5833
5703
|
* </object>
|
|
5834
5704
|
* ```
|
|
5835
5705
|
*
|
|
@@ -5851,28 +5721,28 @@ export const WindowHandle = "WindowHandle";
|
|
|
5851
5721
|
*
|
|
5852
5722
|
* ```xml
|
|
5853
5723
|
* <object class="AdwWindow">
|
|
5854
|
-
*
|
|
5855
|
-
*
|
|
5856
|
-
*
|
|
5857
|
-
*
|
|
5858
|
-
*
|
|
5859
|
-
*
|
|
5860
|
-
*
|
|
5861
|
-
*
|
|
5862
|
-
*
|
|
5863
|
-
*
|
|
5864
|
-
*
|
|
5865
|
-
*
|
|
5866
|
-
*
|
|
5867
|
-
*
|
|
5868
|
-
*
|
|
5869
|
-
*
|
|
5870
|
-
*
|
|
5871
|
-
*
|
|
5872
|
-
*
|
|
5873
|
-
*
|
|
5874
|
-
*
|
|
5875
|
-
*
|
|
5724
|
+
* <property name="content">
|
|
5725
|
+
* <object class="AdwToolbarView">
|
|
5726
|
+
* <child type="top">
|
|
5727
|
+
* <object class="AdwHeaderBar"/>
|
|
5728
|
+
* </child>
|
|
5729
|
+
* <property name="content">
|
|
5730
|
+
* <!-- ... -->
|
|
5731
|
+
* </property>
|
|
5732
|
+
* <child type="bottom">
|
|
5733
|
+
* <object class="GtkActionBar" id="bottom_bar">
|
|
5734
|
+
* <property name="revealed">True</property>
|
|
5735
|
+
* <property name="visible">False</property>
|
|
5736
|
+
* </object>
|
|
5737
|
+
* </child>
|
|
5738
|
+
* </object>
|
|
5739
|
+
* </property>
|
|
5740
|
+
* <child>
|
|
5741
|
+
* <object class="AdwBreakpoint">
|
|
5742
|
+
* <condition>max-width: 500px</condition>
|
|
5743
|
+
* <setter object="bottom_bar" property="visible">True</setter>
|
|
5744
|
+
* </object>
|
|
5745
|
+
* </child>
|
|
5876
5746
|
* </object>
|
|
5877
5747
|
* ```
|
|
5878
5748
|
*
|
|
@@ -5887,10 +5757,7 @@ export const WindowHandle = "WindowHandle";
|
|
|
5887
5757
|
* GTK Inspector or by pressing `Ctrl`+`Shift`+`M`,
|
|
5888
5758
|
* and controlled via the {@link AdwWindow.adaptive-preview} property.
|
|
5889
5759
|
*/
|
|
5890
|
-
export const AdwWindow =
|
|
5891
|
-
Root: "AdwWindow.Root",
|
|
5892
|
-
Content: "AdwWindow.Content",
|
|
5893
|
-
};
|
|
5760
|
+
export const AdwWindow = "AdwWindow";
|
|
5894
5761
|
/**
|
|
5895
5762
|
* A dialog showing information about the application.
|
|
5896
5763
|
*
|
|
@@ -6028,27 +5895,27 @@ export const AdwWindow = {
|
|
|
6028
5895
|
* static void
|
|
6029
5896
|
* show_about (GtkApplication *app)
|
|
6030
5897
|
* {
|
|
6031
|
-
*
|
|
6032
|
-
*
|
|
6033
|
-
*
|
|
6034
|
-
*
|
|
6035
|
-
*
|
|
6036
|
-
*
|
|
6037
|
-
*
|
|
6038
|
-
*
|
|
6039
|
-
*
|
|
6040
|
-
*
|
|
6041
|
-
*
|
|
6042
|
-
*
|
|
6043
|
-
*
|
|
6044
|
-
*
|
|
6045
|
-
*
|
|
6046
|
-
*
|
|
6047
|
-
*
|
|
6048
|
-
*
|
|
6049
|
-
*
|
|
6050
|
-
*
|
|
6051
|
-
*
|
|
5898
|
+
* const char *developers[] = {
|
|
5899
|
+
* "Angela Avery",
|
|
5900
|
+
* NULL
|
|
5901
|
+
* };
|
|
5902
|
+
*
|
|
5903
|
+
* const char *designers[] = {
|
|
5904
|
+
* "GNOME Design Team",
|
|
5905
|
+
* NULL
|
|
5906
|
+
* };
|
|
5907
|
+
*
|
|
5908
|
+
* adw_show_about_dialog (GTK_WIDGET (gtk_application_get_active_window (app)),
|
|
5909
|
+
* "application-name", _("Example"),
|
|
5910
|
+
* "application-icon", "org.example.App",
|
|
5911
|
+
* "version", "1.2.3",
|
|
5912
|
+
* "copyright", "© 2022 Angela Avery",
|
|
5913
|
+
* "issue-url", "https://gitlab.gnome.org/example/example/-/issues/",
|
|
5914
|
+
* "license-type", GTK_LICENSE_GPL_3_0,
|
|
5915
|
+
* "developers", developers,
|
|
5916
|
+
* "designers", designers,
|
|
5917
|
+
* "translator-credits", _("translator-credits"),
|
|
5918
|
+
* NULL);
|
|
6052
5919
|
* }
|
|
6053
5920
|
* ```
|
|
6054
5921
|
*
|
|
@@ -6190,27 +6057,27 @@ export const AdwAboutDialog = "AdwAboutDialog";
|
|
|
6190
6057
|
* static void
|
|
6191
6058
|
* show_about (GtkApplication *app)
|
|
6192
6059
|
* {
|
|
6193
|
-
*
|
|
6194
|
-
*
|
|
6195
|
-
*
|
|
6196
|
-
*
|
|
6197
|
-
*
|
|
6198
|
-
*
|
|
6199
|
-
*
|
|
6200
|
-
*
|
|
6201
|
-
*
|
|
6202
|
-
*
|
|
6203
|
-
*
|
|
6204
|
-
*
|
|
6205
|
-
*
|
|
6206
|
-
*
|
|
6207
|
-
*
|
|
6208
|
-
*
|
|
6209
|
-
*
|
|
6210
|
-
*
|
|
6211
|
-
*
|
|
6212
|
-
*
|
|
6213
|
-
*
|
|
6060
|
+
* const char *developers[] = {
|
|
6061
|
+
* "Angela Avery",
|
|
6062
|
+
* NULL
|
|
6063
|
+
* };
|
|
6064
|
+
*
|
|
6065
|
+
* const char *designers[] = {
|
|
6066
|
+
* "GNOME Design Team",
|
|
6067
|
+
* NULL
|
|
6068
|
+
* };
|
|
6069
|
+
*
|
|
6070
|
+
* adw_show_about_window (gtk_application_get_active_window (app),
|
|
6071
|
+
* "application-name", _("Example"),
|
|
6072
|
+
* "application-icon", "org.example.App",
|
|
6073
|
+
* "version", "1.2.3",
|
|
6074
|
+
* "copyright", "© 2022 Angela Avery",
|
|
6075
|
+
* "issue-url", "https://gitlab.gnome.org/example/example/-/issues/",
|
|
6076
|
+
* "license-type", GTK_LICENSE_GPL_3_0,
|
|
6077
|
+
* "developers", developers,
|
|
6078
|
+
* "designers", designers,
|
|
6079
|
+
* "translator-credits", _("translator-credits"),
|
|
6080
|
+
* NULL);
|
|
6214
6081
|
* }
|
|
6215
6082
|
* ```
|
|
6216
6083
|
*
|
|
@@ -6264,10 +6131,7 @@ export const AdwAboutWindow = "AdwAboutWindow";
|
|
|
6264
6131
|
* When used together with the `.monospace` style class, only the subtitle
|
|
6265
6132
|
* becomes monospace, not the title or any extra widgets.
|
|
6266
6133
|
*/
|
|
6267
|
-
export const AdwActionRow =
|
|
6268
|
-
Root: "AdwActionRow.Root",
|
|
6269
|
-
ActivatableWidget: "AdwActionRow.ActivatableWidget",
|
|
6270
|
-
};
|
|
6134
|
+
export const AdwActionRow = "AdwActionRow";
|
|
6271
6135
|
/**
|
|
6272
6136
|
* A dialog presenting a message or a question.
|
|
6273
6137
|
*
|
|
@@ -6300,17 +6164,17 @@ export const AdwActionRow = {
|
|
|
6300
6164
|
* dialog = adw_alert_dialog_new (_("Replace File?"), NULL);
|
|
6301
6165
|
*
|
|
6302
6166
|
* adw_alert_dialog_format_body (ADW_ALERT_DIALOG (dialog),
|
|
6303
|
-
*
|
|
6304
|
-
*
|
|
6167
|
+
* _("A file named “%s” already exists. Do you want to replace it?"),
|
|
6168
|
+
* filename);
|
|
6305
6169
|
*
|
|
6306
6170
|
* adw_alert_dialog_add_responses (ADW_ALERT_DIALOG (dialog),
|
|
6307
|
-
*
|
|
6308
|
-
*
|
|
6309
|
-
*
|
|
6171
|
+
* "cancel", _("_Cancel"),
|
|
6172
|
+
* "replace", _("_Replace"),
|
|
6173
|
+
* NULL);
|
|
6310
6174
|
*
|
|
6311
6175
|
* adw_alert_dialog_set_response_appearance (ADW_ALERT_DIALOG (dialog),
|
|
6312
|
-
*
|
|
6313
|
-
*
|
|
6176
|
+
* "replace",
|
|
6177
|
+
* ADW_RESPONSE_DESTRUCTIVE);
|
|
6314
6178
|
*
|
|
6315
6179
|
* adw_alert_dialog_set_default_response (ADW_ALERT_DIALOG (dialog), "cancel");
|
|
6316
6180
|
* adw_alert_dialog_set_close_response (ADW_ALERT_DIALOG (dialog), "cancel");
|
|
@@ -6328,39 +6192,39 @@ export const AdwActionRow = {
|
|
|
6328
6192
|
* ```c
|
|
6329
6193
|
* static void
|
|
6330
6194
|
* dialog_cb (AdwAlertDialog *dialog,
|
|
6331
|
-
*
|
|
6332
|
-
*
|
|
6195
|
+
* GAsyncResult *result,
|
|
6196
|
+
* MyWindow *self)
|
|
6333
6197
|
* {
|
|
6334
|
-
*
|
|
6198
|
+
* const char *response = adw_alert_dialog_choose_finish (dialog, result);
|
|
6335
6199
|
*
|
|
6336
|
-
*
|
|
6200
|
+
* // ...
|
|
6337
6201
|
* }
|
|
6338
6202
|
*
|
|
6339
6203
|
* static void
|
|
6340
6204
|
* show_dialog (MyWindow *self)
|
|
6341
6205
|
* {
|
|
6342
|
-
*
|
|
6206
|
+
* AdwDialog *dialog;
|
|
6343
6207
|
*
|
|
6344
|
-
*
|
|
6208
|
+
* dialog = adw_alert_dialog_new (_("Replace File?"), NULL);
|
|
6345
6209
|
*
|
|
6346
|
-
*
|
|
6347
|
-
*
|
|
6348
|
-
*
|
|
6210
|
+
* adw_alert_dialog_format_body (ADW_ALERT_DIALOG (dialog),
|
|
6211
|
+
* _("A file named “%s” already exists. Do you want to replace it?"),
|
|
6212
|
+
* filename);
|
|
6349
6213
|
*
|
|
6350
|
-
*
|
|
6351
|
-
*
|
|
6352
|
-
*
|
|
6353
|
-
*
|
|
6214
|
+
* adw_alert_dialog_add_responses (ADW_ALERT_DIALOG (dialog),
|
|
6215
|
+
* "cancel", _("_Cancel"),
|
|
6216
|
+
* "replace", _("_Replace"),
|
|
6217
|
+
* NULL);
|
|
6354
6218
|
*
|
|
6355
|
-
*
|
|
6356
|
-
*
|
|
6357
|
-
*
|
|
6219
|
+
* adw_alert_dialog_set_response_appearance (ADW_ALERT_DIALOG (dialog),
|
|
6220
|
+
* "replace",
|
|
6221
|
+
* ADW_RESPONSE_DESTRUCTIVE);
|
|
6358
6222
|
*
|
|
6359
|
-
*
|
|
6360
|
-
*
|
|
6223
|
+
* adw_alert_dialog_set_default_response (ADW_ALERT_DIALOG (dialog), "cancel");
|
|
6224
|
+
* adw_alert_dialog_set_close_response (ADW_ALERT_DIALOG (dialog), "cancel");
|
|
6361
6225
|
*
|
|
6362
|
-
*
|
|
6363
|
-
*
|
|
6226
|
+
* adw_alert_dialog_choose (ADW_ALERT_DIALOG (dialog), GTK_WIDGET (self),
|
|
6227
|
+
* NULL, (GAsyncReadyCallback) dialog_cb, self);
|
|
6364
6228
|
* }
|
|
6365
6229
|
* ```
|
|
6366
6230
|
*
|
|
@@ -6384,23 +6248,20 @@ export const AdwActionRow = {
|
|
|
6384
6248
|
*
|
|
6385
6249
|
* ```xml
|
|
6386
6250
|
* <object class="AdwAlertDialog" id="dialog">
|
|
6387
|
-
*
|
|
6388
|
-
*
|
|
6389
|
-
*
|
|
6390
|
-
*
|
|
6391
|
-
*
|
|
6392
|
-
*
|
|
6393
|
-
*
|
|
6394
|
-
*
|
|
6395
|
-
*
|
|
6396
|
-
*
|
|
6251
|
+
* <property name="heading" translatable="yes">Save Changes?</property>
|
|
6252
|
+
* <property name="body" translatable="yes">Open documents contain unsaved changes. Changes which are not saved will be permanently lost.</property>
|
|
6253
|
+
* <property name="default-response">save</property>
|
|
6254
|
+
* <property name="close-response">cancel</property>
|
|
6255
|
+
* <signal name="response" handler="response_cb"/>
|
|
6256
|
+
* <responses>
|
|
6257
|
+
* <response id="cancel" translatable="yes">_Cancel</response>
|
|
6258
|
+
* <response id="discard" translatable="yes" appearance="destructive">_Discard</response>
|
|
6259
|
+
* <response id="save" translatable="yes" appearance="suggested" enabled="false">_Save</response>
|
|
6260
|
+
* </responses>
|
|
6397
6261
|
* </object>
|
|
6398
6262
|
* ```
|
|
6399
6263
|
*/
|
|
6400
|
-
export const AdwAlertDialog =
|
|
6401
|
-
Root: "AdwAlertDialog.Root",
|
|
6402
|
-
ExtraChild: "AdwAlertDialog.ExtraChild",
|
|
6403
|
-
};
|
|
6264
|
+
export const AdwAlertDialog = "AdwAlertDialog";
|
|
6404
6265
|
/**
|
|
6405
6266
|
* A freeform application window.
|
|
6406
6267
|
*
|
|
@@ -6415,26 +6276,23 @@ export const AdwAlertDialog = {
|
|
|
6415
6276
|
*
|
|
6416
6277
|
* ```xml
|
|
6417
6278
|
* <object class="AdwApplicationWindow">
|
|
6418
|
-
*
|
|
6419
|
-
*
|
|
6420
|
-
*
|
|
6421
|
-
*
|
|
6422
|
-
*
|
|
6423
|
-
*
|
|
6424
|
-
*
|
|
6425
|
-
*
|
|
6426
|
-
*
|
|
6427
|
-
*
|
|
6279
|
+
* <property name="content">
|
|
6280
|
+
* <object class="AdwToolbarView">
|
|
6281
|
+
* <child type="top">
|
|
6282
|
+
* <object class="AdwHeaderBar"/>
|
|
6283
|
+
* </child>
|
|
6284
|
+
* <property name="content">
|
|
6285
|
+
* <!-- ... -->
|
|
6286
|
+
* </property>
|
|
6287
|
+
* </object>
|
|
6288
|
+
* </property>
|
|
6428
6289
|
* </object>
|
|
6429
6290
|
* ```
|
|
6430
6291
|
*
|
|
6431
6292
|
* Using {@link Application.menubar} is not supported and may result in
|
|
6432
6293
|
* visual glitches.
|
|
6433
6294
|
*/
|
|
6434
|
-
export const AdwApplicationWindow =
|
|
6435
|
-
Root: "AdwApplicationWindow.Root",
|
|
6436
|
-
Content: "AdwApplicationWindow.Content",
|
|
6437
|
-
};
|
|
6295
|
+
export const AdwApplicationWindow = "AdwApplicationWindow";
|
|
6438
6296
|
/**
|
|
6439
6297
|
* A widget displaying an image, with a generated fallback.
|
|
6440
6298
|
*
|
|
@@ -6570,12 +6428,7 @@ export const AdwBin = "AdwBin";
|
|
|
6570
6428
|
* “bottom-bar”. Specifying “content” or omitting the child type results in
|
|
6571
6429
|
* setting the content child.
|
|
6572
6430
|
*/
|
|
6573
|
-
export const AdwBottomSheet =
|
|
6574
|
-
Root: "AdwBottomSheet.Root",
|
|
6575
|
-
BottomBar: "AdwBottomSheet.BottomBar",
|
|
6576
|
-
Content: "AdwBottomSheet.Content",
|
|
6577
|
-
Sheet: "AdwBottomSheet.Sheet",
|
|
6578
|
-
};
|
|
6431
|
+
export const AdwBottomSheet = "AdwBottomSheet";
|
|
6579
6432
|
/**
|
|
6580
6433
|
* A widget that changes layout based on available size.
|
|
6581
6434
|
*
|
|
@@ -6648,8 +6501,8 @@ export const AdwBottomSheet = {
|
|
|
6648
6501
|
*
|
|
6649
6502
|
* breakpoint = adw_breakpoint_new (adw_breakpoint_condition_parse ("max-width: 200px"));
|
|
6650
6503
|
* adw_breakpoint_add_setters (breakpoint,
|
|
6651
|
-
*
|
|
6652
|
-
*
|
|
6504
|
+
* G_OBJECT (child), "label", "Narrow",
|
|
6505
|
+
* NULL);
|
|
6653
6506
|
* adw_breakpoint_bin_add_breakpoint (ADW_BREAKPOINT_BIN (bin), breakpoint);
|
|
6654
6507
|
* ```
|
|
6655
6508
|
*
|
|
@@ -6664,23 +6517,23 @@ export const AdwBottomSheet = {
|
|
|
6664
6517
|
*
|
|
6665
6518
|
* ```xml
|
|
6666
6519
|
* <object class="AdwBreakpointBin">
|
|
6667
|
-
*
|
|
6668
|
-
*
|
|
6669
|
-
*
|
|
6670
|
-
*
|
|
6671
|
-
*
|
|
6672
|
-
*
|
|
6673
|
-
*
|
|
6674
|
-
*
|
|
6675
|
-
*
|
|
6676
|
-
*
|
|
6677
|
-
*
|
|
6678
|
-
*
|
|
6679
|
-
*
|
|
6680
|
-
*
|
|
6681
|
-
*
|
|
6682
|
-
*
|
|
6683
|
-
*
|
|
6520
|
+
* <property name="width-request">150</property>
|
|
6521
|
+
* <property name="height-request">150</property>
|
|
6522
|
+
* <property name="child">
|
|
6523
|
+
* <object class="GtkLabel" id="child">
|
|
6524
|
+
* <property name="label">Wide</property>
|
|
6525
|
+
* <property name="ellipsize">end</property>
|
|
6526
|
+
* <style>
|
|
6527
|
+
* <class name="title-1"/>
|
|
6528
|
+
* </style>
|
|
6529
|
+
* </object>
|
|
6530
|
+
* </property>
|
|
6531
|
+
* <child>
|
|
6532
|
+
* <object class="AdwBreakpoint">
|
|
6533
|
+
* <condition>max-width: 200px</condition>
|
|
6534
|
+
* <setter object="child" property="label">Narrow</setter>
|
|
6535
|
+
* </object>
|
|
6536
|
+
* </child>
|
|
6684
6537
|
* </object>
|
|
6685
6538
|
* ```
|
|
6686
6539
|
*
|
|
@@ -6700,13 +6553,13 @@ export const AdwBreakpointBin = "AdwBreakpointBin";
|
|
|
6700
6553
|
*
|
|
6701
6554
|
* ```xml
|
|
6702
6555
|
* <object class="GtkButton">
|
|
6703
|
-
*
|
|
6704
|
-
*
|
|
6705
|
-
*
|
|
6706
|
-
*
|
|
6707
|
-
*
|
|
6708
|
-
*
|
|
6709
|
-
*
|
|
6556
|
+
* <property name="child">
|
|
6557
|
+
* <object class="AdwButtonContent">
|
|
6558
|
+
* <property name="icon-name">document-open-symbolic</property>
|
|
6559
|
+
* <property name="label" translatable="yes">_Open</property>
|
|
6560
|
+
* <property name="use-underline">True</property>
|
|
6561
|
+
* </object>
|
|
6562
|
+
* </property>
|
|
6710
6563
|
* </object>
|
|
6711
6564
|
* ```
|
|
6712
6565
|
*
|
|
@@ -6718,8 +6571,8 @@ export const AdwBreakpointBin = "AdwBreakpointBin";
|
|
|
6718
6571
|
* ```
|
|
6719
6572
|
* buttoncontent
|
|
6720
6573
|
* ╰── box
|
|
6721
|
-
*
|
|
6722
|
-
*
|
|
6574
|
+
* ├── image
|
|
6575
|
+
* ╰── label
|
|
6723
6576
|
* ```
|
|
6724
6577
|
*
|
|
6725
6578
|
* `AdwButtonContent`'s CSS node is called `buttoncontent`. It contains a `box`
|
|
@@ -6871,16 +6724,16 @@ export const AdwClampScrollable = "AdwClampScrollable";
|
|
|
6871
6724
|
* Example of an `AdwComboRow` UI definition:
|
|
6872
6725
|
* ```xml
|
|
6873
6726
|
* <object class="AdwComboRow">
|
|
6874
|
-
*
|
|
6875
|
-
*
|
|
6876
|
-
*
|
|
6877
|
-
*
|
|
6878
|
-
*
|
|
6879
|
-
*
|
|
6880
|
-
*
|
|
6881
|
-
*
|
|
6882
|
-
*
|
|
6883
|
-
*
|
|
6727
|
+
* <property name="title" translatable="yes">Combo Row</property>
|
|
6728
|
+
* <property name="model">
|
|
6729
|
+
* <object class="GtkStringList">
|
|
6730
|
+
* <items>
|
|
6731
|
+
* <item translatable="yes">Foo</item>
|
|
6732
|
+
* <item translatable="yes">Bar</item>
|
|
6733
|
+
* <item translatable="yes">Baz</item>
|
|
6734
|
+
* </items>
|
|
6735
|
+
* </object>
|
|
6736
|
+
* </property>
|
|
6884
6737
|
* </object>
|
|
6885
6738
|
* ```
|
|
6886
6739
|
*
|
|
@@ -6959,12 +6812,7 @@ export const AdwComboRow = "AdwComboRow";
|
|
|
6959
6812
|
* minimum size, and {@link Widget.width-request} and
|
|
6960
6813
|
* {@link Widget.height-request} properties must be set manually.
|
|
6961
6814
|
*/
|
|
6962
|
-
export const AdwDialog =
|
|
6963
|
-
Root: "AdwDialog.Root",
|
|
6964
|
-
Child: "AdwDialog.Child",
|
|
6965
|
-
DefaultWidget: "AdwDialog.DefaultWidget",
|
|
6966
|
-
FocusWidget: "AdwDialog.FocusWidget",
|
|
6967
|
-
};
|
|
6815
|
+
export const AdwDialog = "AdwDialog";
|
|
6968
6816
|
/**
|
|
6969
6817
|
* A {@link ListBoxRow} with an embedded text entry.
|
|
6970
6818
|
*
|
|
@@ -7089,12 +6937,7 @@ export const AdwExpanderRow = "AdwExpanderRow";
|
|
|
7089
6937
|
* `AdwFlap` has a single CSS node with name `flap`. The node will get the style
|
|
7090
6938
|
* classes `.folded` when it is folded, and `.unfolded` when it's not.
|
|
7091
6939
|
*/
|
|
7092
|
-
export const AdwFlap =
|
|
7093
|
-
Root: "AdwFlap.Root",
|
|
7094
|
-
Content: "AdwFlap.Content",
|
|
7095
|
-
Flap: "AdwFlap.Flap",
|
|
7096
|
-
Separator: "AdwFlap.Separator",
|
|
7097
|
-
};
|
|
6940
|
+
export const AdwFlap = "AdwFlap";
|
|
7098
6941
|
/**
|
|
7099
6942
|
* A title bar widget.
|
|
7100
6943
|
*
|
|
@@ -7156,19 +6999,19 @@ export const AdwFlap = {
|
|
|
7156
6999
|
* ```
|
|
7157
7000
|
* headerbar
|
|
7158
7001
|
* ╰── windowhandle
|
|
7159
|
-
*
|
|
7160
|
-
*
|
|
7161
|
-
*
|
|
7162
|
-
*
|
|
7163
|
-
*
|
|
7164
|
-
*
|
|
7165
|
-
*
|
|
7166
|
-
*
|
|
7167
|
-
*
|
|
7168
|
-
*
|
|
7169
|
-
*
|
|
7170
|
-
*
|
|
7171
|
-
*
|
|
7002
|
+
* ╰── box
|
|
7003
|
+
* ├── widget
|
|
7004
|
+
* │ ╰── box.start
|
|
7005
|
+
* │ ├── windowcontrols.start
|
|
7006
|
+
* │ ├── widget
|
|
7007
|
+
* │ │ ╰── [button.back]
|
|
7008
|
+
* │ ╰── [other children]
|
|
7009
|
+
* ├── widget
|
|
7010
|
+
* │ ╰── [Title Widget]
|
|
7011
|
+
* ╰── widget
|
|
7012
|
+
* ╰── box.end
|
|
7013
|
+
* ├── [other children]
|
|
7014
|
+
* ╰── windowcontrols.end
|
|
7172
7015
|
* ```
|
|
7173
7016
|
*
|
|
7174
7017
|
* `AdwHeaderBar`'s CSS node is called `headerbar`. It contains a `windowhandle`
|
|
@@ -7188,10 +7031,7 @@ export const AdwFlap = {
|
|
|
7188
7031
|
*
|
|
7189
7032
|
* `AdwHeaderBar` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role.
|
|
7190
7033
|
*/
|
|
7191
|
-
export const AdwHeaderBar =
|
|
7192
|
-
Root: "AdwHeaderBar.Root",
|
|
7193
|
-
TitleWidget: "AdwHeaderBar.TitleWidget",
|
|
7194
|
-
};
|
|
7034
|
+
export const AdwHeaderBar = "AdwHeaderBar";
|
|
7195
7035
|
/**
|
|
7196
7036
|
* A view switcher that uses a toggle group.
|
|
7197
7037
|
*
|
|
@@ -7259,10 +7099,7 @@ export const AdwLayoutSlot = "AdwLayoutSlot";
|
|
|
7259
7099
|
* style classes `.folded` when it is folded, `.unfolded` when it's not, or none
|
|
7260
7100
|
* if it hasn't computed its fold yet.
|
|
7261
7101
|
*/
|
|
7262
|
-
export const AdwLeaflet =
|
|
7263
|
-
Root: "AdwLeaflet.Root",
|
|
7264
|
-
VisibleChild: "AdwLeaflet.VisibleChild",
|
|
7265
|
-
};
|
|
7102
|
+
export const AdwLeaflet = "AdwLeaflet";
|
|
7266
7103
|
/**
|
|
7267
7104
|
* A dialog presenting a message or a question.
|
|
7268
7105
|
*
|
|
@@ -7295,13 +7132,13 @@ export const AdwLeaflet = {
|
|
|
7295
7132
|
* dialog = adw_message_dialog_new (parent, _("Replace File?"), NULL);
|
|
7296
7133
|
*
|
|
7297
7134
|
* adw_message_dialog_format_body (ADW_MESSAGE_DIALOG (dialog),
|
|
7298
|
-
*
|
|
7299
|
-
*
|
|
7135
|
+
* _("A file named “%s” already exists. Do you want to replace it?"),
|
|
7136
|
+
* filename);
|
|
7300
7137
|
*
|
|
7301
7138
|
* adw_message_dialog_add_responses (ADW_MESSAGE_DIALOG (dialog),
|
|
7302
|
-
*
|
|
7303
|
-
*
|
|
7304
|
-
*
|
|
7139
|
+
* "cancel", _("_Cancel"),
|
|
7140
|
+
* "replace", _("_Replace"),
|
|
7141
|
+
* NULL);
|
|
7305
7142
|
*
|
|
7306
7143
|
* adw_message_dialog_set_response_appearance (ADW_MESSAGE_DIALOG (dialog), "replace", ADW_RESPONSE_DESTRUCTIVE);
|
|
7307
7144
|
*
|
|
@@ -7321,36 +7158,36 @@ export const AdwLeaflet = {
|
|
|
7321
7158
|
* ```c
|
|
7322
7159
|
* static void
|
|
7323
7160
|
* dialog_cb (AdwMessageDialog *dialog,
|
|
7324
|
-
*
|
|
7325
|
-
*
|
|
7161
|
+
* GAsyncResult *result,
|
|
7162
|
+
* MyWindow *self)
|
|
7326
7163
|
* {
|
|
7327
|
-
*
|
|
7164
|
+
* const char *response = adw_message_dialog_choose_finish (dialog, result);
|
|
7328
7165
|
*
|
|
7329
|
-
*
|
|
7166
|
+
* // ...
|
|
7330
7167
|
* }
|
|
7331
7168
|
*
|
|
7332
7169
|
* static void
|
|
7333
7170
|
* show_dialog (MyWindow *self)
|
|
7334
7171
|
* {
|
|
7335
|
-
*
|
|
7172
|
+
* GtkWidget *dialog;
|
|
7336
7173
|
*
|
|
7337
|
-
*
|
|
7174
|
+
* dialog = adw_message_dialog_new (GTK_WINDOW (self), _("Replace File?"), NULL);
|
|
7338
7175
|
*
|
|
7339
|
-
*
|
|
7340
|
-
*
|
|
7341
|
-
*
|
|
7176
|
+
* adw_message_dialog_format_body (ADW_MESSAGE_DIALOG (dialog),
|
|
7177
|
+
* _("A file named “%s” already exists. Do you want to replace it?"),
|
|
7178
|
+
* filename);
|
|
7342
7179
|
*
|
|
7343
|
-
*
|
|
7344
|
-
*
|
|
7345
|
-
*
|
|
7346
|
-
*
|
|
7180
|
+
* adw_message_dialog_add_responses (ADW_MESSAGE_DIALOG (dialog),
|
|
7181
|
+
* "cancel", _("_Cancel"),
|
|
7182
|
+
* "replace", _("_Replace"),
|
|
7183
|
+
* NULL);
|
|
7347
7184
|
*
|
|
7348
|
-
*
|
|
7185
|
+
* adw_message_dialog_set_response_appearance (ADW_MESSAGE_DIALOG (dialog), "replace", ADW_RESPONSE_DESTRUCTIVE);
|
|
7349
7186
|
*
|
|
7350
|
-
*
|
|
7351
|
-
*
|
|
7187
|
+
* adw_message_dialog_set_default_response (ADW_MESSAGE_DIALOG (dialog), "cancel");
|
|
7188
|
+
* adw_message_dialog_set_close_response (ADW_MESSAGE_DIALOG (dialog), "cancel");
|
|
7352
7189
|
*
|
|
7353
|
-
*
|
|
7190
|
+
* adw_message_dialog_choose (ADW_MESSAGE_DIALOG (dialog), NULL, (GAsyncReadyCallback) dialog_cb, self);
|
|
7354
7191
|
* }
|
|
7355
7192
|
* ```
|
|
7356
7193
|
*
|
|
@@ -7374,16 +7211,16 @@ export const AdwLeaflet = {
|
|
|
7374
7211
|
*
|
|
7375
7212
|
* ```xml
|
|
7376
7213
|
* <object class="AdwMessageDialog" id="dialog">
|
|
7377
|
-
*
|
|
7378
|
-
*
|
|
7379
|
-
*
|
|
7380
|
-
*
|
|
7381
|
-
*
|
|
7382
|
-
*
|
|
7383
|
-
*
|
|
7384
|
-
*
|
|
7385
|
-
*
|
|
7386
|
-
*
|
|
7214
|
+
* <property name="heading" translatable="yes">Save Changes?</property>
|
|
7215
|
+
* <property name="body" translatable="yes">Open documents contain unsaved changes. Changes which are not saved will be permanently lost.</property>
|
|
7216
|
+
* <property name="default-response">save</property>
|
|
7217
|
+
* <property name="close-response">cancel</property>
|
|
7218
|
+
* <signal name="response" handler="response_cb"/>
|
|
7219
|
+
* <responses>
|
|
7220
|
+
* <response id="cancel" translatable="yes">_Cancel</response>
|
|
7221
|
+
* <response id="discard" translatable="yes" appearance="destructive">_Discard</response>
|
|
7222
|
+
* <response id="save" translatable="yes" appearance="suggested" enabled="false">_Save</response>
|
|
7223
|
+
* </responses>
|
|
7387
7224
|
* </object>
|
|
7388
7225
|
* ```
|
|
7389
7226
|
*
|
|
@@ -7391,10 +7228,7 @@ export const AdwLeaflet = {
|
|
|
7391
7228
|
*
|
|
7392
7229
|
* `AdwMessageDialog` uses the `GTK_ACCESSIBLE_ROLE_DIALOG` role.
|
|
7393
7230
|
*/
|
|
7394
|
-
export const AdwMessageDialog =
|
|
7395
|
-
Root: "AdwMessageDialog.Root",
|
|
7396
|
-
ExtraChild: "AdwMessageDialog.ExtraChild",
|
|
7397
|
-
};
|
|
7231
|
+
export const AdwMessageDialog = "AdwMessageDialog";
|
|
7398
7232
|
/**
|
|
7399
7233
|
* A widget for switching between different layouts.
|
|
7400
7234
|
*
|
|
@@ -7425,51 +7259,51 @@ export const AdwMessageDialog = {
|
|
|
7425
7259
|
*
|
|
7426
7260
|
* ```xml
|
|
7427
7261
|
* <object class="AdwMultiLayoutView">
|
|
7428
|
-
*
|
|
7429
|
-
*
|
|
7430
|
-
*
|
|
7431
|
-
*
|
|
7432
|
-
*
|
|
7433
|
-
*
|
|
7434
|
-
*
|
|
7435
|
-
*
|
|
7436
|
-
*
|
|
7437
|
-
*
|
|
7438
|
-
*
|
|
7439
|
-
*
|
|
7440
|
-
*
|
|
7441
|
-
*
|
|
7442
|
-
*
|
|
7443
|
-
*
|
|
7444
|
-
*
|
|
7445
|
-
*
|
|
7446
|
-
*
|
|
7447
|
-
*
|
|
7448
|
-
*
|
|
7449
|
-
*
|
|
7450
|
-
*
|
|
7451
|
-
*
|
|
7452
|
-
*
|
|
7453
|
-
*
|
|
7454
|
-
*
|
|
7455
|
-
*
|
|
7456
|
-
*
|
|
7457
|
-
*
|
|
7458
|
-
*
|
|
7459
|
-
*
|
|
7460
|
-
*
|
|
7461
|
-
*
|
|
7462
|
-
*
|
|
7463
|
-
*
|
|
7464
|
-
*
|
|
7465
|
-
*
|
|
7466
|
-
*
|
|
7467
|
-
*
|
|
7468
|
-
*
|
|
7469
|
-
*
|
|
7470
|
-
*
|
|
7471
|
-
*
|
|
7472
|
-
*
|
|
7262
|
+
* <child>
|
|
7263
|
+
* <object class="AdwLayout">
|
|
7264
|
+
* <property name="name">sidebar</property>
|
|
7265
|
+
* <property name="content">
|
|
7266
|
+
* <object class="AdwOverlaySplitView">
|
|
7267
|
+
* <property name="sidebar">
|
|
7268
|
+
* <object class="AdwLayoutSlot">
|
|
7269
|
+
* <property name="id">secondary</property>
|
|
7270
|
+
* </object>
|
|
7271
|
+
* </property>
|
|
7272
|
+
* <property name="content">
|
|
7273
|
+
* <object class="AdwLayoutSlot">
|
|
7274
|
+
* <property name="id">primary</property>
|
|
7275
|
+
* </object>
|
|
7276
|
+
* </property>
|
|
7277
|
+
* </object>
|
|
7278
|
+
* </property>
|
|
7279
|
+
* </object>
|
|
7280
|
+
* </child>
|
|
7281
|
+
* <child>
|
|
7282
|
+
* <object class="AdwLayout">
|
|
7283
|
+
* <property name="name">bottom-sheet</property>
|
|
7284
|
+
* <property name="content">
|
|
7285
|
+
* <object class="AdwBottomSheet">
|
|
7286
|
+
* <property name="open">True</property>
|
|
7287
|
+
* <property name="content">
|
|
7288
|
+
* <object class="AdwLayoutSlot">
|
|
7289
|
+
* <property name="id">primary</property>
|
|
7290
|
+
* </object>
|
|
7291
|
+
* </property>
|
|
7292
|
+
* <property name="sheet">
|
|
7293
|
+
* <object class="AdwLayoutSlot">
|
|
7294
|
+
* <property name="id">secondary</property>
|
|
7295
|
+
* </object>
|
|
7296
|
+
* </property>
|
|
7297
|
+
* </object>
|
|
7298
|
+
* </property>
|
|
7299
|
+
* </object>
|
|
7300
|
+
* </child>
|
|
7301
|
+
* <child type="primary">
|
|
7302
|
+
* <!-- ... -->
|
|
7303
|
+
* </child>
|
|
7304
|
+
* <child type="secondary">
|
|
7305
|
+
* <!-- ... -->
|
|
7306
|
+
* </child>
|
|
7473
7307
|
* </object>
|
|
7474
7308
|
* ```
|
|
7475
7309
|
*
|
|
@@ -7528,36 +7362,36 @@ export const AdwNavigationPage = "AdwNavigationPage";
|
|
|
7528
7362
|
*
|
|
7529
7363
|
* ```xml
|
|
7530
7364
|
* <object class="AdwWindow">
|
|
7531
|
-
*
|
|
7532
|
-
*
|
|
7533
|
-
*
|
|
7534
|
-
*
|
|
7535
|
-
*
|
|
7536
|
-
*
|
|
7537
|
-
*
|
|
7538
|
-
*
|
|
7539
|
-
*
|
|
7540
|
-
*
|
|
7541
|
-
*
|
|
7542
|
-
*
|
|
7543
|
-
*
|
|
7544
|
-
*
|
|
7545
|
-
*
|
|
7546
|
-
*
|
|
7547
|
-
*
|
|
7548
|
-
*
|
|
7549
|
-
*
|
|
7550
|
-
*
|
|
7551
|
-
*
|
|
7552
|
-
*
|
|
7553
|
-
*
|
|
7554
|
-
*
|
|
7555
|
-
*
|
|
7556
|
-
*
|
|
7557
|
-
*
|
|
7558
|
-
*
|
|
7559
|
-
*
|
|
7560
|
-
*
|
|
7365
|
+
* <property name="width-request">280</property>
|
|
7366
|
+
* <property name="height-request">200</property>
|
|
7367
|
+
* <property name="default-width">800</property>
|
|
7368
|
+
* <property name="default-height">800</property>
|
|
7369
|
+
* <child>
|
|
7370
|
+
* <object class="AdwBreakpoint">
|
|
7371
|
+
* <condition>max-width: 400sp</condition>
|
|
7372
|
+
* <setter object="split_view" property="collapsed">True</setter>
|
|
7373
|
+
* </object>
|
|
7374
|
+
* </child>
|
|
7375
|
+
* <property name="content">
|
|
7376
|
+
* <object class="AdwNavigationSplitView" id="split_view">
|
|
7377
|
+
* <property name="sidebar">
|
|
7378
|
+
* <object class="AdwNavigationPage">
|
|
7379
|
+
* <property name="title" translatable="yes">Sidebar</property>
|
|
7380
|
+
* <property name="child">
|
|
7381
|
+
* <!-- ... -->
|
|
7382
|
+
* </property>
|
|
7383
|
+
* </object>
|
|
7384
|
+
* </property>
|
|
7385
|
+
* <property name="content">
|
|
7386
|
+
* <object class="AdwNavigationPage">
|
|
7387
|
+
* <property name="title" translatable="yes">Content</property>
|
|
7388
|
+
* <property name="child">
|
|
7389
|
+
* <!-- ... -->
|
|
7390
|
+
* </property>
|
|
7391
|
+
* </object>
|
|
7392
|
+
* </property>
|
|
7393
|
+
* </object>
|
|
7394
|
+
* </property>
|
|
7561
7395
|
* </object>
|
|
7562
7396
|
* ```
|
|
7563
7397
|
*
|
|
@@ -7617,8 +7451,8 @@ export const AdwNavigationPage = "AdwNavigationPage";
|
|
|
7617
7451
|
* ```
|
|
7618
7452
|
* navigation-split-view
|
|
7619
7453
|
* ╰── navigation-view
|
|
7620
|
-
*
|
|
7621
|
-
*
|
|
7454
|
+
* ├── [sidebar child]
|
|
7455
|
+
* ╰── [content child]
|
|
7622
7456
|
* ```
|
|
7623
7457
|
*
|
|
7624
7458
|
* When not collapsed, it contains two nodes with the name `widget`, one with
|
|
@@ -7630,7 +7464,7 @@ export const AdwNavigationPage = "AdwNavigationPage";
|
|
|
7630
7464
|
* ├── widget.sidebar-pane
|
|
7631
7465
|
* │ ╰── [sidebar child]
|
|
7632
7466
|
* ╰── widget.content-pane
|
|
7633
|
-
*
|
|
7467
|
+
* ╰── [content child]
|
|
7634
7468
|
* ```
|
|
7635
7469
|
*
|
|
7636
7470
|
* ## Accessibility
|
|
@@ -7738,46 +7572,46 @@ export const AdwNavigationSplitView = "AdwNavigationSplitView";
|
|
|
7738
7572
|
*
|
|
7739
7573
|
* ```xml
|
|
7740
7574
|
* <object class="AdwNavigationView">
|
|
7741
|
-
*
|
|
7742
|
-
*
|
|
7743
|
-
*
|
|
7744
|
-
*
|
|
7745
|
-
*
|
|
7746
|
-
*
|
|
7747
|
-
*
|
|
7748
|
-
*
|
|
7749
|
-
*
|
|
7750
|
-
*
|
|
7751
|
-
*
|
|
7752
|
-
*
|
|
7753
|
-
*
|
|
7754
|
-
*
|
|
7755
|
-
*
|
|
7756
|
-
*
|
|
7757
|
-
*
|
|
7758
|
-
*
|
|
7759
|
-
*
|
|
7760
|
-
*
|
|
7761
|
-
*
|
|
7762
|
-
*
|
|
7763
|
-
*
|
|
7764
|
-
*
|
|
7765
|
-
*
|
|
7766
|
-
*
|
|
7767
|
-
*
|
|
7768
|
-
*
|
|
7769
|
-
*
|
|
7770
|
-
*
|
|
7771
|
-
*
|
|
7772
|
-
*
|
|
7773
|
-
*
|
|
7774
|
-
*
|
|
7775
|
-
*
|
|
7776
|
-
*
|
|
7777
|
-
*
|
|
7778
|
-
*
|
|
7779
|
-
*
|
|
7780
|
-
*
|
|
7575
|
+
* <child>
|
|
7576
|
+
* <object class="AdwNavigationPage">
|
|
7577
|
+
* <property name="title" translatable="yes">Page 1</property>
|
|
7578
|
+
* <property name="child">
|
|
7579
|
+
* <object class="AdwToolbarView">
|
|
7580
|
+
* <child type="top">
|
|
7581
|
+
* <object class="AdwHeaderBar"/>
|
|
7582
|
+
* </child>
|
|
7583
|
+
* <property name="content">
|
|
7584
|
+
* <object class="GtkButton">
|
|
7585
|
+
* <property name="label" translatable="yes">Open Page 2</property>
|
|
7586
|
+
* <property name="halign">center</property>
|
|
7587
|
+
* <property name="valign">center</property>
|
|
7588
|
+
* <property name="action-name">navigation.push</property>
|
|
7589
|
+
* <property name="action-target">'page-2'</property>
|
|
7590
|
+
* <style>
|
|
7591
|
+
* <class name="pill"/>
|
|
7592
|
+
* </style>
|
|
7593
|
+
* </object>
|
|
7594
|
+
* </property>
|
|
7595
|
+
* </object>
|
|
7596
|
+
* </property>
|
|
7597
|
+
* </object>
|
|
7598
|
+
* </child>
|
|
7599
|
+
* <child>
|
|
7600
|
+
* <object class="AdwNavigationPage">
|
|
7601
|
+
* <property name="title" translatable="yes">Page 2</property>
|
|
7602
|
+
* <property name="tag">page-2</property>
|
|
7603
|
+
* <property name="child">
|
|
7604
|
+
* <object class="AdwToolbarView">
|
|
7605
|
+
* <child type="top">
|
|
7606
|
+
* <object class="AdwHeaderBar"/>
|
|
7607
|
+
* </child>
|
|
7608
|
+
* <property name="content">
|
|
7609
|
+
* <!-- ... -->
|
|
7610
|
+
* </property>
|
|
7611
|
+
* </object>
|
|
7612
|
+
* </property>
|
|
7613
|
+
* </object>
|
|
7614
|
+
* </child>
|
|
7781
7615
|
* </object>
|
|
7782
7616
|
* ```
|
|
7783
7617
|
*
|
|
@@ -7827,24 +7661,24 @@ export const AdwNavigationView = "AdwNavigationView";
|
|
|
7827
7661
|
*
|
|
7828
7662
|
* ```xml
|
|
7829
7663
|
* <object class="AdwWindow">
|
|
7830
|
-
*
|
|
7831
|
-
*
|
|
7832
|
-
*
|
|
7833
|
-
*
|
|
7834
|
-
*
|
|
7835
|
-
*
|
|
7836
|
-
*
|
|
7837
|
-
*
|
|
7838
|
-
*
|
|
7839
|
-
*
|
|
7840
|
-
*
|
|
7841
|
-
*
|
|
7842
|
-
*
|
|
7843
|
-
*
|
|
7844
|
-
*
|
|
7845
|
-
*
|
|
7846
|
-
*
|
|
7847
|
-
*
|
|
7664
|
+
* <property name="default-width">800</property>
|
|
7665
|
+
* <property name="default-height">800</property>
|
|
7666
|
+
* <child>
|
|
7667
|
+
* <object class="AdwBreakpoint">
|
|
7668
|
+
* <condition>max-width: 400sp</condition>
|
|
7669
|
+
* <setter object="split_view" property="collapsed">True</setter>
|
|
7670
|
+
* </object>
|
|
7671
|
+
* </child>
|
|
7672
|
+
* <property name="content">
|
|
7673
|
+
* <object class="AdwOverlaySplitView" id="split_view">
|
|
7674
|
+
* <property name="sidebar">
|
|
7675
|
+
* <!-- ... -->
|
|
7676
|
+
* </property>
|
|
7677
|
+
* <property name="content">
|
|
7678
|
+
* <!-- ... -->
|
|
7679
|
+
* </property>
|
|
7680
|
+
* </object>
|
|
7681
|
+
* </property>
|
|
7848
7682
|
* </object>
|
|
7849
7683
|
* ```
|
|
7850
7684
|
*
|
|
@@ -7901,7 +7735,7 @@ export const AdwNavigationView = "AdwNavigationView";
|
|
|
7901
7735
|
* ├── widget.sidebar-pane
|
|
7902
7736
|
* │ ╰── [sidebar child]
|
|
7903
7737
|
* ╰── widget.content-pane
|
|
7904
|
-
*
|
|
7738
|
+
* ╰── [content child]
|
|
7905
7739
|
* ```
|
|
7906
7740
|
*
|
|
7907
7741
|
* When collapsed, the one containing the sidebar child has the `.background`
|
|
@@ -7912,18 +7746,14 @@ export const AdwNavigationView = "AdwNavigationView";
|
|
|
7912
7746
|
* ├── widget.background
|
|
7913
7747
|
* │ ╰── [sidebar child]
|
|
7914
7748
|
* ╰── widget
|
|
7915
|
-
*
|
|
7749
|
+
* ╰── [content child]
|
|
7916
7750
|
* ```
|
|
7917
7751
|
*
|
|
7918
7752
|
* ## Accessibility
|
|
7919
7753
|
*
|
|
7920
7754
|
* `AdwOverlaySplitView` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role.
|
|
7921
7755
|
*/
|
|
7922
|
-
export const AdwOverlaySplitView =
|
|
7923
|
-
Root: "AdwOverlaySplitView.Root",
|
|
7924
|
-
Content: "AdwOverlaySplitView.Content",
|
|
7925
|
-
Sidebar: "AdwOverlaySplitView.Sidebar",
|
|
7926
|
-
};
|
|
7756
|
+
export const AdwOverlaySplitView = "AdwOverlaySplitView";
|
|
7927
7757
|
/**
|
|
7928
7758
|
* A {@link AdwEntryRow} tailored for entering secrets.
|
|
7929
7759
|
*
|
|
@@ -7962,10 +7792,7 @@ export const AdwPasswordEntryRow = "AdwPasswordEntryRow";
|
|
|
7962
7792
|
* `AdwPreferencesDialog` has a main CSS node with the name `dialog` and the
|
|
7963
7793
|
* style class `.preferences`.
|
|
7964
7794
|
*/
|
|
7965
|
-
export const AdwPreferencesDialog =
|
|
7966
|
-
Root: "AdwPreferencesDialog.Root",
|
|
7967
|
-
VisiblePage: "AdwPreferencesDialog.VisiblePage",
|
|
7968
|
-
};
|
|
7795
|
+
export const AdwPreferencesDialog = "AdwPreferencesDialog";
|
|
7969
7796
|
/**
|
|
7970
7797
|
* A group of preference rows.
|
|
7971
7798
|
*
|
|
@@ -8001,10 +7828,7 @@ export const AdwPreferencesDialog = {
|
|
|
8001
7828
|
*
|
|
8002
7829
|
* `AdwPreferencesGroup` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role.
|
|
8003
7830
|
*/
|
|
8004
|
-
export const AdwPreferencesGroup =
|
|
8005
|
-
Root: "AdwPreferencesGroup.Root",
|
|
8006
|
-
HeaderSuffix: "AdwPreferencesGroup.HeaderSuffix",
|
|
8007
|
-
};
|
|
7831
|
+
export const AdwPreferencesGroup = "AdwPreferencesGroup";
|
|
8008
7832
|
/**
|
|
8009
7833
|
* A page from {@link AdwPreferencesDialog}.
|
|
8010
7834
|
*
|
|
@@ -8047,10 +7871,7 @@ export const AdwPreferencesRow = "AdwPreferencesRow";
|
|
|
8047
7871
|
* `AdwPreferencesWindow` has a main CSS node with the name `window` and the
|
|
8048
7872
|
* style class `.preferences`.
|
|
8049
7873
|
*/
|
|
8050
|
-
export const AdwPreferencesWindow =
|
|
8051
|
-
Root: "AdwPreferencesWindow.Root",
|
|
8052
|
-
VisiblePage: "AdwPreferencesWindow.VisiblePage",
|
|
8053
|
-
};
|
|
7874
|
+
export const AdwPreferencesWindow = "AdwPreferencesWindow";
|
|
8054
7875
|
/**
|
|
8055
7876
|
* A widget that displays a keyboard shortcut.
|
|
8056
7877
|
*
|
|
@@ -8119,55 +7940,55 @@ export const AdwShortcutLabel = "AdwShortcutLabel";
|
|
|
8119
7940
|
*
|
|
8120
7941
|
* ```xml
|
|
8121
7942
|
* <object class="AdwShortcutsDialog" id="shortcuts_dialog">
|
|
8122
|
-
*
|
|
8123
|
-
*
|
|
8124
|
-
*
|
|
8125
|
-
*
|
|
8126
|
-
*
|
|
8127
|
-
*
|
|
8128
|
-
*
|
|
8129
|
-
*
|
|
8130
|
-
*
|
|
8131
|
-
*
|
|
8132
|
-
*
|
|
8133
|
-
*
|
|
8134
|
-
*
|
|
8135
|
-
*
|
|
8136
|
-
*
|
|
8137
|
-
*
|
|
8138
|
-
*
|
|
8139
|
-
*
|
|
8140
|
-
*
|
|
8141
|
-
*
|
|
8142
|
-
*
|
|
8143
|
-
*
|
|
8144
|
-
*
|
|
8145
|
-
*
|
|
8146
|
-
*
|
|
8147
|
-
*
|
|
8148
|
-
*
|
|
8149
|
-
*
|
|
8150
|
-
*
|
|
8151
|
-
*
|
|
8152
|
-
*
|
|
8153
|
-
*
|
|
8154
|
-
*
|
|
8155
|
-
*
|
|
8156
|
-
*
|
|
8157
|
-
*
|
|
8158
|
-
*
|
|
8159
|
-
*
|
|
8160
|
-
*
|
|
8161
|
-
*
|
|
8162
|
-
*
|
|
8163
|
-
*
|
|
8164
|
-
*
|
|
8165
|
-
*
|
|
8166
|
-
*
|
|
8167
|
-
*
|
|
8168
|
-
*
|
|
8169
|
-
*
|
|
8170
|
-
*
|
|
7943
|
+
* <child>
|
|
7944
|
+
* <object class="AdwShortcutsSection">
|
|
7945
|
+
* <property name="title" translatable="yes">General</property>
|
|
7946
|
+
* <child>
|
|
7947
|
+
* <object class="AdwShortcutsItem">
|
|
7948
|
+
* <property name="title" translatable="yes">Open Menu</property>
|
|
7949
|
+
* <property name="accelerator">F10</property>
|
|
7950
|
+
* </object>
|
|
7951
|
+
* </child>
|
|
7952
|
+
* <child>
|
|
7953
|
+
* <object class="AdwShortcutsItem">
|
|
7954
|
+
* <property name="title" translatable="yes">Quit</property>
|
|
7955
|
+
* <property name="action-name">app.quit</property>
|
|
7956
|
+
* </object>
|
|
7957
|
+
* </child>
|
|
7958
|
+
* </object>
|
|
7959
|
+
* </child>
|
|
7960
|
+
* <child>
|
|
7961
|
+
* <object class="AdwShortcutsSection">
|
|
7962
|
+
* <child>
|
|
7963
|
+
* <object class="AdwShortcutsItem">
|
|
7964
|
+
* <property name="title" translatable="yes">Move Tab Left</property>
|
|
7965
|
+
* <property name="accelerator"><Shift><Ctrl>Page_Up</property>
|
|
7966
|
+
* <property name="direction">ltr</property>
|
|
7967
|
+
* </object>
|
|
7968
|
+
* </child>
|
|
7969
|
+
* <child>
|
|
7970
|
+
* <object class="AdwShortcutsItem">
|
|
7971
|
+
* <property name="title" translatable="yes">Move Tab Right</property>
|
|
7972
|
+
* <property name="accelerator"><Shift><Ctrl>Page_Down</property>
|
|
7973
|
+
* <property name="direction">ltr</property>
|
|
7974
|
+
* </object>
|
|
7975
|
+
* </child>
|
|
7976
|
+
* <child>
|
|
7977
|
+
* <object class="AdwShortcutsItem">
|
|
7978
|
+
* <property name="title" translatable="yes">Move Tab Right</property>
|
|
7979
|
+
* <property name="accelerator"><Shift><Ctrl>Page_Up</property>
|
|
7980
|
+
* <property name="direction">rtl</property>
|
|
7981
|
+
* </object>
|
|
7982
|
+
* </child>
|
|
7983
|
+
* <child>
|
|
7984
|
+
* <object class="AdwShortcutsItem">
|
|
7985
|
+
* <property name="title" translatable="yes">Move Tab Left</property>
|
|
7986
|
+
* <property name="accelerator"><Shift><Ctrl>Page_Down</property>
|
|
7987
|
+
* <property name="direction">rtl</property>
|
|
7988
|
+
* </object>
|
|
7989
|
+
* </child>
|
|
7990
|
+
* </object>
|
|
7991
|
+
* </child>
|
|
8171
7992
|
* </object>
|
|
8172
7993
|
* ```
|
|
8173
7994
|
*
|
|
@@ -8198,10 +8019,10 @@ export const AdwShortcutsDialog = "AdwShortcutsDialog";
|
|
|
8198
8019
|
*
|
|
8199
8020
|
* ```xml
|
|
8200
8021
|
* <object class="AdwSpinner">
|
|
8201
|
-
*
|
|
8202
|
-
*
|
|
8203
|
-
*
|
|
8204
|
-
*
|
|
8022
|
+
* <property name="halign">center</property>
|
|
8023
|
+
* <property name="valign">center</property>
|
|
8024
|
+
* <property name="width-request">48</property>
|
|
8025
|
+
* <property name="height-request">48</property>
|
|
8205
8026
|
* </object>
|
|
8206
8027
|
* ```
|
|
8207
8028
|
*
|
|
@@ -8227,16 +8048,16 @@ export const AdwSpinner = "AdwSpinner";
|
|
|
8227
8048
|
*
|
|
8228
8049
|
* ```xml
|
|
8229
8050
|
* <object class="AdwSpinRow">
|
|
8230
|
-
*
|
|
8231
|
-
*
|
|
8232
|
-
*
|
|
8233
|
-
*
|
|
8234
|
-
*
|
|
8235
|
-
*
|
|
8236
|
-
*
|
|
8237
|
-
*
|
|
8238
|
-
*
|
|
8239
|
-
*
|
|
8051
|
+
* <property name="title" translatable="yes">Spin Row</property>
|
|
8052
|
+
* <property name="adjustment">
|
|
8053
|
+
* <object class="GtkAdjustment">
|
|
8054
|
+
* <property name="lower">0</property>
|
|
8055
|
+
* <property name="upper">100</property>
|
|
8056
|
+
* <property name="value">50</property>
|
|
8057
|
+
* <property name="page-increment">10</property>
|
|
8058
|
+
* <property name="step-increment">1</property>
|
|
8059
|
+
* </object>
|
|
8060
|
+
* </property>
|
|
8240
8061
|
* </object>
|
|
8241
8062
|
* ```
|
|
8242
8063
|
*
|
|
@@ -8272,8 +8093,8 @@ export const AdwSpinRow = "AdwSpinRow";
|
|
|
8272
8093
|
* │ ╰── <content>
|
|
8273
8094
|
* ├── separator
|
|
8274
8095
|
* ╰── menubutton
|
|
8275
|
-
*
|
|
8276
|
-
*
|
|
8096
|
+
* ╰── button.toggle
|
|
8097
|
+
* ╰── arrow
|
|
8277
8098
|
* ```
|
|
8278
8099
|
*
|
|
8279
8100
|
* `AdwSplitButton`'s CSS node is called `splitbutton`. It contains the css
|
|
@@ -8299,11 +8120,7 @@ export const AdwSpinRow = "AdwSpinRow";
|
|
|
8299
8120
|
*
|
|
8300
8121
|
* `AdwSplitButton` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role.
|
|
8301
8122
|
*/
|
|
8302
|
-
export const AdwSplitButton =
|
|
8303
|
-
Root: "AdwSplitButton.Root",
|
|
8304
|
-
Child: "AdwSplitButton.Child",
|
|
8305
|
-
Popover: "AdwSplitButton.Popover",
|
|
8306
|
-
};
|
|
8123
|
+
export const AdwSplitButton = "AdwSplitButton";
|
|
8307
8124
|
/**
|
|
8308
8125
|
* A best fit container.
|
|
8309
8126
|
*
|
|
@@ -8366,8 +8183,8 @@ export const AdwStatusPage = "AdwStatusPage";
|
|
|
8366
8183
|
* Example of an `AdwSwitchRow` UI definition:
|
|
8367
8184
|
* ```xml
|
|
8368
8185
|
* <object class="AdwSwitchRow">
|
|
8369
|
-
*
|
|
8370
|
-
*
|
|
8186
|
+
* <property name="title" translatable="yes">Switch Row</property>
|
|
8187
|
+
* <signal name="notify::active" handler="switch_row_notify_active_cb"/>
|
|
8371
8188
|
* </object>
|
|
8372
8189
|
* ```
|
|
8373
8190
|
*
|
|
@@ -8407,11 +8224,7 @@ export const AdwSwitchRow = "AdwSwitchRow";
|
|
|
8407
8224
|
*
|
|
8408
8225
|
* 
|
|
8409
8226
|
*/
|
|
8410
|
-
export const AdwTabBar =
|
|
8411
|
-
Root: "AdwTabBar.Root",
|
|
8412
|
-
EndActionWidget: "AdwTabBar.EndActionWidget",
|
|
8413
|
-
StartActionWidget: "AdwTabBar.StartActionWidget",
|
|
8414
|
-
};
|
|
8227
|
+
export const AdwTabBar = "AdwTabBar";
|
|
8415
8228
|
/**
|
|
8416
8229
|
* A button that displays the number of {@link AdwTabView} pages.
|
|
8417
8230
|
*
|
|
@@ -8426,8 +8239,8 @@ export const AdwTabBar = {
|
|
|
8426
8239
|
*
|
|
8427
8240
|
* ```xml
|
|
8428
8241
|
* <object class="AdwTabButton">
|
|
8429
|
-
*
|
|
8430
|
-
*
|
|
8242
|
+
* <property name="view">view</property>
|
|
8243
|
+
* <property name="action-name">overview.open</property>
|
|
8431
8244
|
* </object>
|
|
8432
8245
|
* ```
|
|
8433
8246
|
*
|
|
@@ -8527,7 +8340,7 @@ export const AdwTabOverview = "AdwTabOverview";
|
|
|
8527
8340
|
*
|
|
8528
8341
|
* ```c
|
|
8529
8342
|
* adw_tab_view_remove_shortcuts (view, ADW_TAB_VIEW_SHORTCUT_CONTROL_HOME |
|
|
8530
|
-
*
|
|
8343
|
+
* ADW_TAB_VIEW_SHORTCUT_CONTROL_END);
|
|
8531
8344
|
* ```
|
|
8532
8345
|
*
|
|
8533
8346
|
* ## CSS nodes
|
|
@@ -8562,9 +8375,9 @@ export const AdwTabView = "AdwTabView";
|
|
|
8562
8375
|
* ├── toast
|
|
8563
8376
|
* ┊ ├── widget
|
|
8564
8377
|
* ┊ │ ├── [label.heading]
|
|
8565
|
-
*
|
|
8566
|
-
*
|
|
8567
|
-
*
|
|
8378
|
+
* │ ╰── [custom title]
|
|
8379
|
+
* ├── [button]
|
|
8380
|
+
* ╰── button.circular.flat
|
|
8568
8381
|
* ```
|
|
8569
8382
|
*
|
|
8570
8383
|
* `AdwToastOverlay`'s CSS node is called `toastoverlay`. It contains the child,
|
|
@@ -8613,23 +8426,23 @@ export const AdwToastOverlay = "AdwToastOverlay";
|
|
|
8613
8426
|
* Example of an `AdwToggleGroup` UI definition:
|
|
8614
8427
|
*
|
|
8615
8428
|
* ```xml
|
|
8616
|
-
*
|
|
8617
|
-
*
|
|
8618
|
-
*
|
|
8619
|
-
*
|
|
8620
|
-
*
|
|
8621
|
-
*
|
|
8622
|
-
*
|
|
8623
|
-
*
|
|
8624
|
-
*
|
|
8625
|
-
*
|
|
8626
|
-
*
|
|
8627
|
-
*
|
|
8628
|
-
*
|
|
8629
|
-
*
|
|
8630
|
-
*
|
|
8631
|
-
*
|
|
8632
|
-
*
|
|
8429
|
+
* <object class="AdwToggleGroup">
|
|
8430
|
+
* <property name="active-name">picture</property>
|
|
8431
|
+
* <child>
|
|
8432
|
+
* <object class="AdwToggle">
|
|
8433
|
+
* <property name="icon-name">camera-photo-symbolic</property>
|
|
8434
|
+
* <property name="tooltip" translatable="yes">Picture Mode</property>
|
|
8435
|
+
* <property name="name">picture</property>
|
|
8436
|
+
* </object>
|
|
8437
|
+
* </child>
|
|
8438
|
+
* <child>
|
|
8439
|
+
* <object class="AdwToggle">
|
|
8440
|
+
* <property name="icon-name">camera-video-symbolic</property>
|
|
8441
|
+
* <property name="tooltip" translatable="yes">Recording Mode</property>
|
|
8442
|
+
* <property name="name">recording</property>
|
|
8443
|
+
* </object>
|
|
8444
|
+
* </child>
|
|
8445
|
+
* </object>
|
|
8633
8446
|
* ```
|
|
8634
8447
|
*
|
|
8635
8448
|
* See also: {@link AdwInlineViewSwitcher}.
|
|
@@ -8680,14 +8493,14 @@ export const AdwToggleGroup = "AdwToggleGroup";
|
|
|
8680
8493
|
* Example of an `AdwToolbarView` UI definition:
|
|
8681
8494
|
* ```xml
|
|
8682
8495
|
* <object class="AdwToolbarView">
|
|
8683
|
-
*
|
|
8684
|
-
*
|
|
8685
|
-
*
|
|
8686
|
-
*
|
|
8687
|
-
*
|
|
8688
|
-
*
|
|
8689
|
-
*
|
|
8690
|
-
*
|
|
8496
|
+
* <child type="top">
|
|
8497
|
+
* <object class="AdwHeaderBar"/>
|
|
8498
|
+
* </child>
|
|
8499
|
+
* <property name="content">
|
|
8500
|
+
* <object class="AdwPreferencesPage">
|
|
8501
|
+
* <!-- ... -->
|
|
8502
|
+
* </object>
|
|
8503
|
+
* </property>
|
|
8691
8504
|
* </object>
|
|
8692
8505
|
* ```
|
|
8693
8506
|
*
|
|
@@ -8751,21 +8564,7 @@ export const AdwToggleGroup = "AdwToggleGroup";
|
|
|
8751
8564
|
*
|
|
8752
8565
|
* `AdwToolbarView` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role.
|
|
8753
8566
|
*/
|
|
8754
|
-
export const AdwToolbarView =
|
|
8755
|
-
Root: "AdwToolbarView.Root",
|
|
8756
|
-
Content: "AdwToolbarView.Content",
|
|
8757
|
-
Top: "AdwToolbarView.Top",
|
|
8758
|
-
Bottom: "AdwToolbarView.Bottom",
|
|
8759
|
-
};
|
|
8760
|
-
function AdwViewStackRoot(props) {
|
|
8761
|
-
return createElement("AdwViewStack.Root", props);
|
|
8762
|
-
}
|
|
8763
|
-
function AdwViewStackPage(props) {
|
|
8764
|
-
return createElement("AdwViewStack.Page", props);
|
|
8765
|
-
}
|
|
8766
|
-
function AdwViewStackVisibleChild(props) {
|
|
8767
|
-
return createElement("AdwViewStack.VisibleChild", props);
|
|
8768
|
-
}
|
|
8567
|
+
export const AdwToolbarView = "AdwToolbarView";
|
|
8769
8568
|
/**
|
|
8770
8569
|
* A view container for {@link AdwViewSwitcher}.
|
|
8771
8570
|
*
|
|
@@ -8800,19 +8599,19 @@ function AdwViewStackVisibleChild(props) {
|
|
|
8800
8599
|
* property on it:
|
|
8801
8600
|
*
|
|
8802
8601
|
* ```xml
|
|
8803
|
-
*
|
|
8804
|
-
*
|
|
8805
|
-
*
|
|
8806
|
-
*
|
|
8807
|
-
*
|
|
8808
|
-
*
|
|
8809
|
-
*
|
|
8810
|
-
*
|
|
8811
|
-
*
|
|
8812
|
-
*
|
|
8813
|
-
*
|
|
8814
|
-
*
|
|
8815
|
-
*
|
|
8602
|
+
* <object class="AdwViewStack" id="stack">
|
|
8603
|
+
* <child>
|
|
8604
|
+
* <object class="AdwViewStackPage">
|
|
8605
|
+
* <property name="name">overview</property>
|
|
8606
|
+
* <property name="title">Overview</property>
|
|
8607
|
+
* <property name="child">
|
|
8608
|
+
* <object class="AdwStatusPage">
|
|
8609
|
+
* <property name="title">Welcome!</property>
|
|
8610
|
+
* </object>
|
|
8611
|
+
* </property>
|
|
8612
|
+
* </object>
|
|
8613
|
+
* </child>
|
|
8614
|
+
* </object>
|
|
8816
8615
|
* ```
|
|
8817
8616
|
*
|
|
8818
8617
|
* ## CSS nodes
|
|
@@ -8824,11 +8623,7 @@ function AdwViewStackVisibleChild(props) {
|
|
|
8824
8623
|
* `AdwViewStack` uses the `GTK_ACCESSIBLE_ROLE_TAB_PANEL` for the stack pages
|
|
8825
8624
|
* which are the accessible parent objects of the child widgets.
|
|
8826
8625
|
*/
|
|
8827
|
-
export const AdwViewStack =
|
|
8828
|
-
Root: AdwViewStackRoot,
|
|
8829
|
-
Page: AdwViewStackPage,
|
|
8830
|
-
VisibleChild: AdwViewStackVisibleChild,
|
|
8831
|
-
};
|
|
8626
|
+
export const AdwViewStack = "AdwViewStack";
|
|
8832
8627
|
/**
|
|
8833
8628
|
* An adaptive view switcher.
|
|
8834
8629
|
*
|
|
@@ -8849,35 +8644,35 @@ export const AdwViewStack = {
|
|
|
8849
8644
|
*
|
|
8850
8645
|
* ```xml
|
|
8851
8646
|
* <object class="AdwWindow">
|
|
8852
|
-
*
|
|
8853
|
-
*
|
|
8854
|
-
*
|
|
8855
|
-
*
|
|
8856
|
-
*
|
|
8857
|
-
*
|
|
8858
|
-
*
|
|
8859
|
-
*
|
|
8860
|
-
*
|
|
8861
|
-
*
|
|
8862
|
-
*
|
|
8863
|
-
*
|
|
8864
|
-
*
|
|
8865
|
-
*
|
|
8866
|
-
*
|
|
8867
|
-
*
|
|
8868
|
-
*
|
|
8869
|
-
*
|
|
8870
|
-
*
|
|
8871
|
-
*
|
|
8872
|
-
*
|
|
8873
|
-
*
|
|
8874
|
-
*
|
|
8875
|
-
*
|
|
8876
|
-
*
|
|
8877
|
-
*
|
|
8878
|
-
*
|
|
8879
|
-
*
|
|
8880
|
-
*
|
|
8647
|
+
* <child>
|
|
8648
|
+
* <object class="AdwBreakpoint">
|
|
8649
|
+
* <condition>max-width: 550sp</condition>
|
|
8650
|
+
* <setter object="switcher_bar" property="reveal">True</setter>
|
|
8651
|
+
* <setter object="header_bar" property="title-widget"/>
|
|
8652
|
+
* </object>
|
|
8653
|
+
* </child>
|
|
8654
|
+
* <property name="content">
|
|
8655
|
+
* <object class="AdwToolbarView">
|
|
8656
|
+
* <child type="top">
|
|
8657
|
+
* <object class="AdwHeaderBar" id="header_bar">
|
|
8658
|
+
* <property name="title-widget">
|
|
8659
|
+
* <object class="AdwViewSwitcher">
|
|
8660
|
+
* <property name="stack">stack</property>
|
|
8661
|
+
* <property name="policy">wide</property>
|
|
8662
|
+
* </object>
|
|
8663
|
+
* </property>
|
|
8664
|
+
* </object>
|
|
8665
|
+
* </child>
|
|
8666
|
+
* <property name="content">
|
|
8667
|
+
* <object class="AdwViewStack" id="stack"/>
|
|
8668
|
+
* </property>
|
|
8669
|
+
* <child type="bottom">
|
|
8670
|
+
* <object class="AdwViewSwitcherBar" id="switcher_bar">
|
|
8671
|
+
* <property name="stack">stack</property>
|
|
8672
|
+
* </object>
|
|
8673
|
+
* </child>
|
|
8674
|
+
* </object>
|
|
8675
|
+
* </property>
|
|
8881
8676
|
* </object>
|
|
8882
8677
|
* ```
|
|
8883
8678
|
*
|
|
@@ -8914,35 +8709,35 @@ export const AdwViewSwitcher = "AdwViewSwitcher";
|
|
|
8914
8709
|
*
|
|
8915
8710
|
* ```xml
|
|
8916
8711
|
* <object class="AdwWindow">
|
|
8917
|
-
*
|
|
8918
|
-
*
|
|
8919
|
-
*
|
|
8920
|
-
*
|
|
8921
|
-
*
|
|
8922
|
-
*
|
|
8923
|
-
*
|
|
8924
|
-
*
|
|
8925
|
-
*
|
|
8926
|
-
*
|
|
8927
|
-
*
|
|
8928
|
-
*
|
|
8929
|
-
*
|
|
8930
|
-
*
|
|
8931
|
-
*
|
|
8932
|
-
*
|
|
8933
|
-
*
|
|
8934
|
-
*
|
|
8935
|
-
*
|
|
8936
|
-
*
|
|
8937
|
-
*
|
|
8938
|
-
*
|
|
8939
|
-
*
|
|
8940
|
-
*
|
|
8941
|
-
*
|
|
8942
|
-
*
|
|
8943
|
-
*
|
|
8944
|
-
*
|
|
8945
|
-
*
|
|
8712
|
+
* <child>
|
|
8713
|
+
* <object class="AdwBreakpoint">
|
|
8714
|
+
* <condition>max-width: 550sp</condition>
|
|
8715
|
+
* <setter object="switcher_bar" property="reveal">True</setter>
|
|
8716
|
+
* <setter object="header_bar" property="title-widget"/>
|
|
8717
|
+
* </object>
|
|
8718
|
+
* </child>
|
|
8719
|
+
* <property name="content">
|
|
8720
|
+
* <object class="AdwToolbarView">
|
|
8721
|
+
* <child type="top">
|
|
8722
|
+
* <object class="AdwHeaderBar" id="header_bar">
|
|
8723
|
+
* <property name="title-widget">
|
|
8724
|
+
* <object class="AdwViewSwitcher">
|
|
8725
|
+
* <property name="stack">stack</property>
|
|
8726
|
+
* <property name="policy">wide</property>
|
|
8727
|
+
* </object>
|
|
8728
|
+
* </property>
|
|
8729
|
+
* </object>
|
|
8730
|
+
* </child>
|
|
8731
|
+
* <property name="content">
|
|
8732
|
+
* <object class="AdwViewStack" id="stack"/>
|
|
8733
|
+
* </property>
|
|
8734
|
+
* <child type="bottom">
|
|
8735
|
+
* <object class="AdwViewSwitcherBar" id="switcher_bar">
|
|
8736
|
+
* <property name="stack">stack</property>
|
|
8737
|
+
* </object>
|
|
8738
|
+
* </child>
|
|
8739
|
+
* </object>
|
|
8740
|
+
* </property>
|
|
8946
8741
|
* </object>
|
|
8947
8742
|
* ```
|
|
8948
8743
|
*
|
|
@@ -8982,31 +8777,31 @@ export const AdwViewSwitcherBar = "AdwViewSwitcherBar";
|
|
|
8982
8777
|
*
|
|
8983
8778
|
* ```xml
|
|
8984
8779
|
* <object class="AdwWindow">
|
|
8985
|
-
*
|
|
8986
|
-
*
|
|
8987
|
-
*
|
|
8988
|
-
*
|
|
8989
|
-
*
|
|
8990
|
-
*
|
|
8991
|
-
*
|
|
8992
|
-
*
|
|
8993
|
-
*
|
|
8994
|
-
*
|
|
8995
|
-
*
|
|
8996
|
-
*
|
|
8997
|
-
*
|
|
8998
|
-
*
|
|
8999
|
-
*
|
|
9000
|
-
*
|
|
9001
|
-
*
|
|
9002
|
-
*
|
|
9003
|
-
*
|
|
9004
|
-
*
|
|
9005
|
-
*
|
|
9006
|
-
*
|
|
9007
|
-
*
|
|
9008
|
-
*
|
|
9009
|
-
*
|
|
8780
|
+
* <property name="content">
|
|
8781
|
+
* <object class="AdwToolbarView">
|
|
8782
|
+
* <child type="top">
|
|
8783
|
+
* <object class="AdwHeaderBar">
|
|
8784
|
+
* <property name="centering-policy">strict</property>
|
|
8785
|
+
* <property name="title-widget">
|
|
8786
|
+
* <object class="AdwViewSwitcherTitle" id="title">
|
|
8787
|
+
* <property name="stack">stack</property>
|
|
8788
|
+
* </object>
|
|
8789
|
+
* </property>
|
|
8790
|
+
* </object>
|
|
8791
|
+
* </child>
|
|
8792
|
+
* <property name="content">
|
|
8793
|
+
* <object class="AdwViewStack" id="stack"/>
|
|
8794
|
+
* </property>
|
|
8795
|
+
* <child type="bottom">
|
|
8796
|
+
* <object class="AdwViewSwitcherBar">
|
|
8797
|
+
* <property name="stack">stack</property>
|
|
8798
|
+
* <binding name="reveal">
|
|
8799
|
+
* <lookup name="title-visible">title</lookup>
|
|
8800
|
+
* </binding>
|
|
8801
|
+
* </object>
|
|
8802
|
+
* </child>
|
|
8803
|
+
* </object>
|
|
8804
|
+
* </property>
|
|
9010
8805
|
* </object>
|
|
9011
8806
|
* ```
|
|
9012
8807
|
*
|
|
@@ -9102,10 +8897,7 @@ export const AdwWrapBox = "AdwWrapBox";
|
|
|
9102
8897
|
* how to convert data from their {@link GtkSourceCompletionProposal} to content for
|
|
9103
8898
|
* the `GtkSourceCompletionCell`.
|
|
9104
8899
|
*/
|
|
9105
|
-
export const GtkSourceCompletionCell =
|
|
9106
|
-
Root: "GtkSourceCompletionCell.Root",
|
|
9107
|
-
Widget: "GtkSourceCompletionCell.Widget",
|
|
9108
|
-
};
|
|
8900
|
+
export const GtkSourceCompletionCell = "GtkSourceCompletionCell";
|
|
9109
8901
|
/**
|
|
9110
8902
|
* Gutter object for {@link GtkSourceView}.
|
|
9111
8903
|
*
|
|
@@ -9273,13 +9065,13 @@ export const GtkSourceStyleSchemePreview = "GtkSourceStyleSchemePreview";
|
|
|
9273
9065
|
* An example of a UI definition fragment with GtkSourceView:
|
|
9274
9066
|
* ```xml
|
|
9275
9067
|
* <object class="GtkSourceView" id="source_view">
|
|
9276
|
-
*
|
|
9277
|
-
*
|
|
9278
|
-
*
|
|
9279
|
-
*
|
|
9280
|
-
*
|
|
9281
|
-
*
|
|
9282
|
-
*
|
|
9068
|
+
* <property name="tab-width">4</property>
|
|
9069
|
+
* <property name="auto-indent">True</property>
|
|
9070
|
+
* <child internal-child="completion">
|
|
9071
|
+
* <object class="GtkSourceCompletion">
|
|
9072
|
+
* <property name="select-on-show">False</property>
|
|
9073
|
+
* </object>
|
|
9074
|
+
* </child>
|
|
9283
9075
|
* </object>
|
|
9284
9076
|
* ```
|
|
9285
9077
|
*
|
|
@@ -9292,10 +9084,10 @@ export const GtkSourceStyleSchemePreview = "GtkSourceStyleSchemePreview";
|
|
|
9292
9084
|
* ```c
|
|
9293
9085
|
* GtkCssProvider *provider = gtk_css_provider_new ();
|
|
9294
9086
|
* gtk_css_provider_load_from_string (provider,
|
|
9295
|
-
*
|
|
9087
|
+
* "textview { font-family: Monospace; font-size: 8pt; }");
|
|
9296
9088
|
* gtk_style_context_add_provider (gtk_widget_get_style_context (view),
|
|
9297
|
-
*
|
|
9298
|
-
*
|
|
9089
|
+
* GTK_STYLE_PROVIDER (provider),
|
|
9090
|
+
* GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
|
|
9299
9091
|
* g_object_unref (provider);
|
|
9300
9092
|
* ```
|
|
9301
9093
|
* ```python
|
|
@@ -9311,10 +9103,7 @@ export const GtkSourceStyleSchemePreview = "GtkSourceStyleSchemePreview";
|
|
|
9311
9103
|
* the default font set in CSS.
|
|
9312
9104
|
*/
|
|
9313
9105
|
export const GtkSourceView = "GtkSourceView";
|
|
9314
|
-
export const VteTerminal =
|
|
9315
|
-
Root: "VteTerminal.Root",
|
|
9316
|
-
ContextMenu: "VteTerminal.ContextMenu",
|
|
9317
|
-
};
|
|
9106
|
+
export const VteTerminal = "VteTerminal";
|
|
9318
9107
|
/**
|
|
9319
9108
|
* The central class of the WPE WebKit and WebKitGTK APIs.
|
|
9320
9109
|
*
|
|
@@ -9329,27 +9118,3 @@ export const VteTerminal = {
|
|
|
9329
9118
|
*/
|
|
9330
9119
|
export const WebKitWebView = "WebKitWebView";
|
|
9331
9120
|
export const WebKitWebViewBase = "WebKitWebViewBase";
|
|
9332
|
-
/**
|
|
9333
|
-
* Sets the application-wide menu bar.
|
|
9334
|
-
* The menu will appear in the window's title bar on supported platforms.
|
|
9335
|
-
* Use Menu.Item, Menu.Section, and Menu.Submenu as children.
|
|
9336
|
-
*/
|
|
9337
|
-
export const ApplicationMenu = "ApplicationMenu";
|
|
9338
|
-
function MenuItem(props) {
|
|
9339
|
-
return createElement("Menu.Item", props);
|
|
9340
|
-
}
|
|
9341
|
-
function MenuSection(props) {
|
|
9342
|
-
return createElement("Menu.Section", props);
|
|
9343
|
-
}
|
|
9344
|
-
function MenuSubmenu(props) {
|
|
9345
|
-
return createElement("Menu.Submenu", props);
|
|
9346
|
-
}
|
|
9347
|
-
/**
|
|
9348
|
-
* Declarative menu builder for use with PopoverMenu and ApplicationMenu.
|
|
9349
|
-
* Use Menu.Item for action items, Menu.Section for groups, Menu.Submenu for nested menus.
|
|
9350
|
-
*/
|
|
9351
|
-
export const Menu = {
|
|
9352
|
-
Item: MenuItem,
|
|
9353
|
-
Section: MenuSection,
|
|
9354
|
-
Submenu: MenuSubmenu,
|
|
9355
|
-
};
|