@girs/handy-1 4.4.0 → 4.5.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 +52 -38
- package/handy-1-vocabulary.d.ts +1315 -0
- package/handy-1-vocabulary.js +328 -0
- package/handy-1.d.ts +40 -40
- package/package.json +19 -19
- package/tsconfig.json +1 -1
|
@@ -0,0 +1,1315 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The GIR-derived widget VOCABULARY for Handy-1.
|
|
3
|
+
*
|
|
4
|
+
* GENERATED — do not edit. Provenance: Handy-1 — dropped empty base(s): GObject.InitiallyUnowned GObject.Object Atk.ImplementorIface Gio.ActionGroup Gio.ActionMap
|
|
5
|
+
*
|
|
6
|
+
* 29 concrete widgets, 30 declarations, 11 enum nick unions, 24 slot candidates.
|
|
7
|
+
*
|
|
8
|
+
* Module-scoped exports only. There is no `JSX` namespace here, no tag spelling and
|
|
9
|
+
* no `on<Signal>` prop name: those are DIALECT, and every framework answers them
|
|
10
|
+
* differently. The shape to avoid is the GLOBAL AUGMENT — a `declare global` on
|
|
11
|
+
* `React.JSX` collides with every other library on a shared tag — while a
|
|
12
|
+
* module-scoped `JSX` behind a `jsxImportSource` does not. This package is used by
|
|
13
|
+
* projects that want nothing to do with JSX, so it emits neither; a consumer declaring
|
|
14
|
+
* a module-scoped namespace over these names is doing it right.
|
|
15
|
+
*
|
|
16
|
+
* Three things this is and `ConstructorProps` is not: WRITABLE-only (measured on
|
|
17
|
+
* Gtk-4.0, `ConstructorProps` offers 150 read-only properties across 68 classes as
|
|
18
|
+
* settable, and GTK's failure mode for writing one is exit 0), OPTIONAL, and keyed
|
|
19
|
+
* by the name GObject actually REGISTERED — the dashed spelling `g_object_set`,
|
|
20
|
+
* GtkBuilder XML and Blueprint all use.
|
|
21
|
+
*
|
|
22
|
+
* Signal handler types are not re-derived: `X.SignalSignatures`, which this package
|
|
23
|
+
* already emits for every class with the parent chain, every implemented interface
|
|
24
|
+
* and the `notify::` keys folded in, is what `Widgets[G]['signals']` points at.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
import type Gio from '@girs/gio-2.0';
|
|
28
|
+
import type Gtk from '@girs/gtk-3.0';
|
|
29
|
+
import type Handy from './handy-1.js';
|
|
30
|
+
import type Pango from '@girs/pango-1.0';
|
|
31
|
+
import type { GtkActionableConstructOnly, GtkActionableProps, GtkApplicationWindowConstructOnly, GtkApplicationWindowProps, GtkBinConstructOnly, GtkBinProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkContainerConstructOnly, GtkContainerProps, GtkDrawingAreaConstructOnly, GtkDrawingAreaProps, GtkEventBoxConstructOnly, GtkEventBoxProps, GtkListBoxRowConstructOnly, GtkListBoxRowProps, GtkOrientableConstructOnly, GtkOrientableProps, GtkPackTypeNick, GtkWidgetConstructOnly, GtkWidgetProps, GtkWindowConstructOnly, GtkWindowProps } from '@girs/gtk-3.0/vocabulary';
|
|
32
|
+
|
|
33
|
+
// ---------------------------------------------------------------------------
|
|
34
|
+
// Enum nicks — the string vocabulary GObject registered, from GIR's `glib:nick`.
|
|
35
|
+
//
|
|
36
|
+
// Not derived from the member name. Substituting underscores for dashes is not a law:
|
|
37
|
+
// some nicks keep an underscore the substitution would have replaced, and only the
|
|
38
|
+
// attribute knows which. Gtk-4.0 and Adw-1 contradict no derivation at all, which is
|
|
39
|
+
// how a derived nick passes review and breaks elsewhere.
|
|
40
|
+
// Re-measure with `scripts/check-nick-derivation.mjs` in ts-for-gir.
|
|
41
|
+
// ---------------------------------------------------------------------------
|
|
42
|
+
|
|
43
|
+
export type HdyCenteringPolicyNick = 'loose' | 'strict';
|
|
44
|
+
export type HdyColorSchemeNick = 'default' | 'force-light' | 'prefer-light' | 'prefer-dark' | 'force-dark';
|
|
45
|
+
export type HdyDeckTransitionTypeNick = 'over' | 'under' | 'slide';
|
|
46
|
+
export type HdyFlapFoldPolicyNick = 'never' | 'always' | 'auto';
|
|
47
|
+
export type HdyFlapTransitionTypeNick = 'over' | 'under' | 'slide';
|
|
48
|
+
export type HdyHeaderGroupChildTypeNick = 'header-bar' | 'gtk-header-bar' | 'header-group';
|
|
49
|
+
export type HdyLeafletTransitionTypeNick = 'over' | 'under' | 'slide';
|
|
50
|
+
export type HdyNavigationDirectionNick = 'back' | 'forward';
|
|
51
|
+
export type HdySqueezerTransitionTypeNick = 'none' | 'crossfade';
|
|
52
|
+
export type HdyViewSwitcherPolicyNick = 'auto' | 'narrow' | 'wide';
|
|
53
|
+
export type PangoEllipsizeModeNick = 'none' | 'start' | 'middle' | 'end';
|
|
54
|
+
|
|
55
|
+
// ---------------------------------------------------------------------------
|
|
56
|
+
// Property surfaces — one interface per GIR DECLARATION, mirroring GIR's own
|
|
57
|
+
// inheritance rather than flattening per widget.
|
|
58
|
+
//
|
|
59
|
+
// The interfaces are load-bearing, not tidiness: `GtkBox` declares four properties
|
|
60
|
+
// of its own and `orientation` is not among them — it lives on `Gtk.Orientable`,
|
|
61
|
+
// because GObject installs interface properties on the implementor at runtime while
|
|
62
|
+
// GIR keeps them once, on the interface.
|
|
63
|
+
// ---------------------------------------------------------------------------
|
|
64
|
+
|
|
65
|
+
/** A [class@Gtk.ListBoxRow] used to present actions. */
|
|
66
|
+
export interface HdyActionRowProps extends HdyPreferencesRowProps, GtkActionableProps, GtkBuildableProps {
|
|
67
|
+
/**
|
|
68
|
+
* The activatable widget for this row.
|
|
69
|
+
* @since 1.0
|
|
70
|
+
*/
|
|
71
|
+
'activatable-widget'?: Gtk.Widget | null;
|
|
72
|
+
/**
|
|
73
|
+
* The icon name for this row.
|
|
74
|
+
* @since 1.0
|
|
75
|
+
*/
|
|
76
|
+
'icon-name'?: string;
|
|
77
|
+
/**
|
|
78
|
+
* The subtitle for this row.
|
|
79
|
+
* @since 1.0
|
|
80
|
+
*/
|
|
81
|
+
subtitle?: string | null;
|
|
82
|
+
/**
|
|
83
|
+
* The number of lines at the end of which the subtitle label will be ellipsized.
|
|
84
|
+
* @since 1.2
|
|
85
|
+
* @default 1
|
|
86
|
+
*/
|
|
87
|
+
'subtitle-lines'?: number;
|
|
88
|
+
/**
|
|
89
|
+
* The number of lines at the end of which the title label will be ellipsized.
|
|
90
|
+
* @since 1.2
|
|
91
|
+
* @default 1
|
|
92
|
+
*/
|
|
93
|
+
'title-lines'?: number;
|
|
94
|
+
/**
|
|
95
|
+
* Whether embedded underlines in the title or subtitle indicates a mnemonic.
|
|
96
|
+
* @since 1.0
|
|
97
|
+
* @default FALSE
|
|
98
|
+
*/
|
|
99
|
+
'use-underline'?: boolean;
|
|
100
|
+
}
|
|
101
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
102
|
+
export type HdyActionRowConstructOnly = HdyPreferencesRowConstructOnly | GtkActionableConstructOnly | GtkBuildableConstructOnly;
|
|
103
|
+
|
|
104
|
+
/** A freeform application window. */
|
|
105
|
+
export interface HdyApplicationWindowProps extends GtkApplicationWindowProps, GtkBuildableProps {
|
|
106
|
+
}
|
|
107
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
108
|
+
export type HdyApplicationWindowConstructOnly = GtkApplicationWindowConstructOnly | GtkBuildableConstructOnly;
|
|
109
|
+
|
|
110
|
+
/** A widget displaying an image, with a generated fallback. */
|
|
111
|
+
export interface HdyAvatarProps extends GtkDrawingAreaProps, GtkBuildableProps {
|
|
112
|
+
/**
|
|
113
|
+
* The name of an icon to use as a fallback.
|
|
114
|
+
* @since 1.0
|
|
115
|
+
* @default NULL
|
|
116
|
+
*/
|
|
117
|
+
'icon-name'?: string | null;
|
|
118
|
+
/**
|
|
119
|
+
* A [iface@Gio.LoadableIcon] used to load the avatar.
|
|
120
|
+
* @since 1.2
|
|
121
|
+
*/
|
|
122
|
+
'loadable-icon'?: Gio.LoadableIcon | null;
|
|
123
|
+
/**
|
|
124
|
+
* Whether to show the initials or the fallback icon on the generated avatar.
|
|
125
|
+
* @since 1.0
|
|
126
|
+
* @default FALSE
|
|
127
|
+
*/
|
|
128
|
+
'show-initials'?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* The avatar size of the avatar.
|
|
131
|
+
* @since 1.0
|
|
132
|
+
* @default -1
|
|
133
|
+
*/
|
|
134
|
+
size?: number;
|
|
135
|
+
/**
|
|
136
|
+
* Sets the text used to generate the fallback initials and color.
|
|
137
|
+
* @since 1.0
|
|
138
|
+
* @default NULL
|
|
139
|
+
*/
|
|
140
|
+
text?: string | null;
|
|
141
|
+
}
|
|
142
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
143
|
+
export type HdyAvatarConstructOnly = GtkDrawingAreaConstructOnly | GtkBuildableConstructOnly;
|
|
144
|
+
|
|
145
|
+
/** A paginated scrolling widget. */
|
|
146
|
+
export interface HdyCarouselProps extends GtkEventBoxProps, GtkBuildableProps, GtkOrientableProps, HdySwipeableProps {
|
|
147
|
+
/**
|
|
148
|
+
* Whether to allow swiping for more than one page at a time.
|
|
149
|
+
* @since 1.2
|
|
150
|
+
* @default FALSE
|
|
151
|
+
*/
|
|
152
|
+
'allow-long-swipes'?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Sets whether the [class@Carousel] can be dragged with mouse pointer.
|
|
155
|
+
* @since 1.0
|
|
156
|
+
* @default TRUE
|
|
157
|
+
*/
|
|
158
|
+
'allow-mouse-drag'?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Whether the widget will respond to scroll wheel events.
|
|
161
|
+
* @since 1.4
|
|
162
|
+
* @default TRUE
|
|
163
|
+
*/
|
|
164
|
+
'allow-scroll-wheel'?: boolean;
|
|
165
|
+
/**
|
|
166
|
+
* Animation duration used by [method@Carousel.scroll_to], in milliseconds.
|
|
167
|
+
* @since 1.0
|
|
168
|
+
* @default 250
|
|
169
|
+
*/
|
|
170
|
+
'animation-duration'?: number;
|
|
171
|
+
/**
|
|
172
|
+
* Whether the carousel can be navigated.
|
|
173
|
+
* @since 1.0
|
|
174
|
+
* @default TRUE
|
|
175
|
+
*/
|
|
176
|
+
interactive?: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* Page reveal duration, in milliseconds.
|
|
179
|
+
* @since 1.0
|
|
180
|
+
* @default 0
|
|
181
|
+
*/
|
|
182
|
+
'reveal-duration'?: number;
|
|
183
|
+
/**
|
|
184
|
+
* Spacing between pages in pixels.
|
|
185
|
+
* @since 1.0
|
|
186
|
+
* @default 0
|
|
187
|
+
*/
|
|
188
|
+
spacing?: number;
|
|
189
|
+
}
|
|
190
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
191
|
+
export type HdyCarouselConstructOnly = GtkEventBoxConstructOnly | GtkBuildableConstructOnly | GtkOrientableConstructOnly | HdySwipeableConstructOnly;
|
|
192
|
+
|
|
193
|
+
/** A dots indicator for [class@Carousel]. */
|
|
194
|
+
export interface HdyCarouselIndicatorDotsProps extends GtkDrawingAreaProps, GtkBuildableProps, GtkOrientableProps {
|
|
195
|
+
/**
|
|
196
|
+
* The [class@Carousel] the indicator uses.
|
|
197
|
+
* @since 1.0
|
|
198
|
+
*/
|
|
199
|
+
carousel?: Handy.Carousel | null;
|
|
200
|
+
}
|
|
201
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
202
|
+
export type HdyCarouselIndicatorDotsConstructOnly = GtkDrawingAreaConstructOnly | GtkBuildableConstructOnly | GtkOrientableConstructOnly;
|
|
203
|
+
|
|
204
|
+
/** A lines indicator for [class@Carousel]. */
|
|
205
|
+
export interface HdyCarouselIndicatorLinesProps extends GtkDrawingAreaProps, GtkBuildableProps, GtkOrientableProps {
|
|
206
|
+
/**
|
|
207
|
+
* The displayed carousel.
|
|
208
|
+
* @since 1.0
|
|
209
|
+
*/
|
|
210
|
+
carousel?: Handy.Carousel | null;
|
|
211
|
+
}
|
|
212
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
213
|
+
export type HdyCarouselIndicatorLinesConstructOnly = GtkDrawingAreaConstructOnly | GtkBuildableConstructOnly | GtkOrientableConstructOnly;
|
|
214
|
+
|
|
215
|
+
/** A widget constraining its child to a given size. */
|
|
216
|
+
export interface HdyClampProps extends GtkBinProps, GtkBuildableProps, GtkOrientableProps {
|
|
217
|
+
/**
|
|
218
|
+
* The maximum size to allocate the children.
|
|
219
|
+
* @since 1.0
|
|
220
|
+
* @default 600
|
|
221
|
+
*/
|
|
222
|
+
'maximum-size'?: number;
|
|
223
|
+
/**
|
|
224
|
+
* The size above which the child is clamped.
|
|
225
|
+
* @since 1.0
|
|
226
|
+
* @default 400
|
|
227
|
+
*/
|
|
228
|
+
'tightening-threshold'?: number;
|
|
229
|
+
}
|
|
230
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
231
|
+
export type HdyClampConstructOnly = GtkBinConstructOnly | GtkBuildableConstructOnly | GtkOrientableConstructOnly;
|
|
232
|
+
|
|
233
|
+
/** A [class@Gtk.ListBoxRow] used to choose from a list of items. */
|
|
234
|
+
export interface HdyComboRowProps extends HdyActionRowProps, GtkActionableProps, GtkBuildableProps {
|
|
235
|
+
/**
|
|
236
|
+
* The index of the selected item in its [iface@Gio.ListModel].
|
|
237
|
+
* @since 1.0
|
|
238
|
+
* @default -1
|
|
239
|
+
*/
|
|
240
|
+
'selected-index'?: number;
|
|
241
|
+
/**
|
|
242
|
+
* Whether to use the current value as the subtitle.
|
|
243
|
+
* @since 1.0
|
|
244
|
+
* @default FALSE
|
|
245
|
+
*/
|
|
246
|
+
'use-subtitle'?: boolean;
|
|
247
|
+
}
|
|
248
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
249
|
+
export type HdyComboRowConstructOnly = HdyActionRowConstructOnly | GtkActionableConstructOnly | GtkBuildableConstructOnly;
|
|
250
|
+
|
|
251
|
+
/** A swipeable widget showing one of the visible children at a time. */
|
|
252
|
+
export interface HdyDeckProps extends GtkContainerProps, GtkBuildableProps, GtkOrientableProps, HdySwipeableProps {
|
|
253
|
+
/**
|
|
254
|
+
* Whether swipe gestures allow switching to the previous child.
|
|
255
|
+
* @since 1.0
|
|
256
|
+
* @default FALSE
|
|
257
|
+
*/
|
|
258
|
+
'can-swipe-back'?: boolean;
|
|
259
|
+
/**
|
|
260
|
+
* Whether swipe gestures allow switching to the next child.
|
|
261
|
+
* @since 1.0
|
|
262
|
+
* @default FALSE
|
|
263
|
+
*/
|
|
264
|
+
'can-swipe-forward'?: boolean;
|
|
265
|
+
/**
|
|
266
|
+
* Horizontally homogeneous sizing.
|
|
267
|
+
* @since 1.0
|
|
268
|
+
* @default TRUE
|
|
269
|
+
*/
|
|
270
|
+
hhomogeneous?: boolean;
|
|
271
|
+
/**
|
|
272
|
+
* Whether or not the size should smoothly change when changing between differently sized children.
|
|
273
|
+
* @since 1.0
|
|
274
|
+
* @default FALSE
|
|
275
|
+
*/
|
|
276
|
+
'interpolate-size'?: boolean;
|
|
277
|
+
/**
|
|
278
|
+
* The transition animation duration, in milliseconds.
|
|
279
|
+
* @since 1.0
|
|
280
|
+
* @default 200
|
|
281
|
+
*/
|
|
282
|
+
'transition-duration'?: number;
|
|
283
|
+
/**
|
|
284
|
+
* The type of animation that will be used for transitions between children.
|
|
285
|
+
* @since 1.0
|
|
286
|
+
* @default HDY_DECK_TRANSITION_TYPE_OVER
|
|
287
|
+
*/
|
|
288
|
+
'transition-type'?: HdyDeckTransitionTypeNick | Handy.DeckTransitionType;
|
|
289
|
+
/**
|
|
290
|
+
* Vertically homogeneous sizing.
|
|
291
|
+
* @since 1.0
|
|
292
|
+
* @default TRUE
|
|
293
|
+
*/
|
|
294
|
+
vhomogeneous?: boolean;
|
|
295
|
+
/**
|
|
296
|
+
* The widget currently visible.
|
|
297
|
+
* @since 1.0
|
|
298
|
+
*/
|
|
299
|
+
'visible-child'?: Gtk.Widget;
|
|
300
|
+
/**
|
|
301
|
+
* The name of the widget currently visible.
|
|
302
|
+
* @since 1.0
|
|
303
|
+
* @default NULL
|
|
304
|
+
*/
|
|
305
|
+
'visible-child-name'?: string;
|
|
306
|
+
}
|
|
307
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
308
|
+
export type HdyDeckConstructOnly = GtkContainerConstructOnly | GtkBuildableConstructOnly | GtkOrientableConstructOnly | HdySwipeableConstructOnly;
|
|
309
|
+
|
|
310
|
+
/** A [class@Gtk.ListBoxRow] used to reveal widgets. */
|
|
311
|
+
export interface HdyExpanderRowProps extends HdyPreferencesRowProps, GtkActionableProps, GtkBuildableProps {
|
|
312
|
+
/**
|
|
313
|
+
* Whether expansion is enabled.
|
|
314
|
+
* @since 1.0
|
|
315
|
+
* @default TRUE
|
|
316
|
+
*/
|
|
317
|
+
'enable-expansion'?: boolean;
|
|
318
|
+
/**
|
|
319
|
+
* Whether the row is expanded.
|
|
320
|
+
* @since 1.0
|
|
321
|
+
* @default FALSE
|
|
322
|
+
*/
|
|
323
|
+
expanded?: boolean;
|
|
324
|
+
/**
|
|
325
|
+
* The icon name for this row.
|
|
326
|
+
* @since 1.0
|
|
327
|
+
*/
|
|
328
|
+
'icon-name'?: string;
|
|
329
|
+
/**
|
|
330
|
+
* Whether the switch enabling the expansion is visible.
|
|
331
|
+
* @since 1.0
|
|
332
|
+
* @default FALSE
|
|
333
|
+
*/
|
|
334
|
+
'show-enable-switch'?: boolean;
|
|
335
|
+
/**
|
|
336
|
+
* The subtitle for this row.
|
|
337
|
+
* @since 1.0
|
|
338
|
+
*/
|
|
339
|
+
subtitle?: string | null;
|
|
340
|
+
/**
|
|
341
|
+
* Whether an embedded underline in the title or subtitle labels indicates a mnemonic.
|
|
342
|
+
* @since 1.0
|
|
343
|
+
* @default FALSE
|
|
344
|
+
*/
|
|
345
|
+
'use-underline'?: boolean;
|
|
346
|
+
}
|
|
347
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
348
|
+
export type HdyExpanderRowConstructOnly = HdyPreferencesRowConstructOnly | GtkActionableConstructOnly | GtkBuildableConstructOnly;
|
|
349
|
+
|
|
350
|
+
/** An adaptive container acting like a box or an overlay. */
|
|
351
|
+
export interface HdyFlapProps extends GtkContainerProps, GtkBuildableProps, GtkOrientableProps, HdySwipeableProps {
|
|
352
|
+
/**
|
|
353
|
+
* The content widget.
|
|
354
|
+
* @since 1.2
|
|
355
|
+
*/
|
|
356
|
+
content?: Gtk.Widget | null;
|
|
357
|
+
/**
|
|
358
|
+
* The flap widget.
|
|
359
|
+
* @since 1.2
|
|
360
|
+
*/
|
|
361
|
+
flap?: Gtk.Widget | null;
|
|
362
|
+
/**
|
|
363
|
+
* The flap position.
|
|
364
|
+
* @since 1.2
|
|
365
|
+
* @default GTK_PACK_START
|
|
366
|
+
*/
|
|
367
|
+
'flap-position'?: GtkPackTypeNick | Gtk.PackType;
|
|
368
|
+
/**
|
|
369
|
+
* The fold transition animation duration, in milliseconds.
|
|
370
|
+
* @since 1.2
|
|
371
|
+
* @default 250
|
|
372
|
+
*/
|
|
373
|
+
'fold-duration'?: number;
|
|
374
|
+
/**
|
|
375
|
+
* The current fold policy.
|
|
376
|
+
* @since 1.2
|
|
377
|
+
* @default HDY_FLAP_FOLD_POLICY_AUTO
|
|
378
|
+
*/
|
|
379
|
+
'fold-policy'?: HdyFlapFoldPolicyNick | Handy.FlapFoldPolicy;
|
|
380
|
+
/**
|
|
381
|
+
* Whether the flap is locked.
|
|
382
|
+
* @since 1.2
|
|
383
|
+
* @default FALSE
|
|
384
|
+
*/
|
|
385
|
+
locked?: boolean;
|
|
386
|
+
/**
|
|
387
|
+
* Whether the flap is modal.
|
|
388
|
+
* @since 1.2
|
|
389
|
+
* @default TRUE
|
|
390
|
+
*/
|
|
391
|
+
modal?: boolean;
|
|
392
|
+
/**
|
|
393
|
+
* The reveal transition animation duration, in milliseconds.
|
|
394
|
+
* @since 1.2
|
|
395
|
+
* @default 250
|
|
396
|
+
*/
|
|
397
|
+
'reveal-duration'?: number;
|
|
398
|
+
/**
|
|
399
|
+
* Whether the flap widget is revealed.
|
|
400
|
+
* @since 1.2
|
|
401
|
+
* @default TRUE
|
|
402
|
+
*/
|
|
403
|
+
'reveal-flap'?: boolean;
|
|
404
|
+
/**
|
|
405
|
+
* The separator widget.
|
|
406
|
+
* @since 1.2
|
|
407
|
+
*/
|
|
408
|
+
separator?: Gtk.Widget | null;
|
|
409
|
+
/**
|
|
410
|
+
* Whether the flap can be closed with a swipe gesture.
|
|
411
|
+
* @since 1.2
|
|
412
|
+
* @default TRUE
|
|
413
|
+
*/
|
|
414
|
+
'swipe-to-close'?: boolean;
|
|
415
|
+
/**
|
|
416
|
+
* Whether the flap can be opened with a swipe gesture.
|
|
417
|
+
* @since 1.2
|
|
418
|
+
* @default TRUE
|
|
419
|
+
*/
|
|
420
|
+
'swipe-to-open'?: boolean;
|
|
421
|
+
/**
|
|
422
|
+
* the type of animation used for reveal and fold transitions.
|
|
423
|
+
* @since 1.2
|
|
424
|
+
* @default HDY_FLAP_TRANSITION_TYPE_OVER
|
|
425
|
+
*/
|
|
426
|
+
'transition-type'?: HdyFlapTransitionTypeNick | Handy.FlapTransitionType;
|
|
427
|
+
}
|
|
428
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
429
|
+
export type HdyFlapConstructOnly = GtkContainerConstructOnly | GtkBuildableConstructOnly | GtkOrientableConstructOnly | HdySwipeableConstructOnly;
|
|
430
|
+
|
|
431
|
+
/** A title bar widget. */
|
|
432
|
+
export interface HdyHeaderBarProps extends GtkContainerProps, GtkBuildableProps {
|
|
433
|
+
/**
|
|
434
|
+
* The policy for aligning the center widget.
|
|
435
|
+
* @since 1.0
|
|
436
|
+
* @default HDY_CENTERING_POLICY_LOOSE
|
|
437
|
+
*/
|
|
438
|
+
'centering-policy'?: HdyCenteringPolicyNick | Handy.CenteringPolicy;
|
|
439
|
+
/**
|
|
440
|
+
* Custom title widget to display.
|
|
441
|
+
* @since 1.0
|
|
442
|
+
*/
|
|
443
|
+
'custom-title'?: Gtk.Widget | null;
|
|
444
|
+
/**
|
|
445
|
+
* The decoration layout for buttons.
|
|
446
|
+
* @since 1.0
|
|
447
|
+
* @default NULL
|
|
448
|
+
*/
|
|
449
|
+
'decoration-layout'?: string;
|
|
450
|
+
/**
|
|
451
|
+
* Whether [property@HeaderBar:decoration-layout] is set.
|
|
452
|
+
* @since 1.0
|
|
453
|
+
* @default FALSE
|
|
454
|
+
*/
|
|
455
|
+
'decoration-layout-set'?: boolean;
|
|
456
|
+
/**
|
|
457
|
+
* Whether to reserve space for a subtitle, even if none is currently set.
|
|
458
|
+
* @since 1.0
|
|
459
|
+
* @default TRUE
|
|
460
|
+
*/
|
|
461
|
+
'has-subtitle'?: boolean;
|
|
462
|
+
/**
|
|
463
|
+
* Whether the size should smoothly change when changing between children.
|
|
464
|
+
* @since 1.0
|
|
465
|
+
* @default FALSE
|
|
466
|
+
*/
|
|
467
|
+
'interpolate-size'?: boolean;
|
|
468
|
+
/**
|
|
469
|
+
* Whether to show window decorations.
|
|
470
|
+
* @since 1.0
|
|
471
|
+
* @default FALSE
|
|
472
|
+
*/
|
|
473
|
+
'show-close-button'?: boolean;
|
|
474
|
+
/**
|
|
475
|
+
* The amount of space between children.
|
|
476
|
+
* @since 1.0
|
|
477
|
+
* @default 6
|
|
478
|
+
*/
|
|
479
|
+
spacing?: number;
|
|
480
|
+
/**
|
|
481
|
+
* The subtitle to display.
|
|
482
|
+
* @since 1.0
|
|
483
|
+
* @default NULL
|
|
484
|
+
*/
|
|
485
|
+
subtitle?: string | null;
|
|
486
|
+
/**
|
|
487
|
+
* The title to display.
|
|
488
|
+
* @since 1.0
|
|
489
|
+
* @default NULL
|
|
490
|
+
*/
|
|
491
|
+
title?: string | null;
|
|
492
|
+
/**
|
|
493
|
+
* The transition duration, in milliseconds.
|
|
494
|
+
* @since 1.0
|
|
495
|
+
* @default 200
|
|
496
|
+
*/
|
|
497
|
+
'transition-duration'?: number;
|
|
498
|
+
}
|
|
499
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
500
|
+
export type HdyHeaderBarConstructOnly = GtkContainerConstructOnly | GtkBuildableConstructOnly;
|
|
501
|
+
|
|
502
|
+
/** A keypad for dialing numbers The `HdyKeypad` widget is a keypad for entering numbers such as phone numbers or PIN codes. */
|
|
503
|
+
export interface HdyKeypadProps extends GtkBinProps, GtkBuildableProps {
|
|
504
|
+
/**
|
|
505
|
+
* The amount of space between two consecutive columns.
|
|
506
|
+
* @since 1.0
|
|
507
|
+
* @default 6
|
|
508
|
+
*/
|
|
509
|
+
'column-spacing'?: number;
|
|
510
|
+
/**
|
|
511
|
+
* The widget for the lower end corner of @self.
|
|
512
|
+
* @since 1.0
|
|
513
|
+
*/
|
|
514
|
+
'end-action'?: Gtk.Widget | null;
|
|
515
|
+
/**
|
|
516
|
+
* The entry widget connected to the keypad.
|
|
517
|
+
* @since 1.0
|
|
518
|
+
*/
|
|
519
|
+
entry?: Gtk.Entry;
|
|
520
|
+
/**
|
|
521
|
+
* Whether standard letters should be displayed below the digits on the buttons.
|
|
522
|
+
* @since 1.0
|
|
523
|
+
* @default TRUE
|
|
524
|
+
*/
|
|
525
|
+
'letters-visible'?: boolean;
|
|
526
|
+
/**
|
|
527
|
+
* The amount of space between two consecutive rows.
|
|
528
|
+
* @since 1.0
|
|
529
|
+
* @default 6
|
|
530
|
+
*/
|
|
531
|
+
'row-spacing'?: number;
|
|
532
|
+
/**
|
|
533
|
+
* The widget for the lower start corner of @self.
|
|
534
|
+
* @since 1.0
|
|
535
|
+
*/
|
|
536
|
+
'start-action'?: Gtk.Widget | null;
|
|
537
|
+
/**
|
|
538
|
+
* Whether to display symbols.
|
|
539
|
+
* @since 1.0
|
|
540
|
+
* @default TRUE
|
|
541
|
+
*/
|
|
542
|
+
'symbols-visible'?: boolean;
|
|
543
|
+
}
|
|
544
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
545
|
+
export type HdyKeypadConstructOnly = GtkBinConstructOnly | GtkBuildableConstructOnly;
|
|
546
|
+
|
|
547
|
+
/** An adaptive container acting like a box or a stack. */
|
|
548
|
+
export interface HdyLeafletProps extends GtkContainerProps, GtkBuildableProps, GtkOrientableProps, HdySwipeableProps {
|
|
549
|
+
/**
|
|
550
|
+
* Whether swipe gestures allow switching to the previous navigatable child.
|
|
551
|
+
* @since 1.0
|
|
552
|
+
* @default FALSE
|
|
553
|
+
*/
|
|
554
|
+
'can-swipe-back'?: boolean;
|
|
555
|
+
/**
|
|
556
|
+
* Whether swipe gestures allow switching to the next navigatable child.
|
|
557
|
+
* @since 1.0
|
|
558
|
+
* @default FALSE
|
|
559
|
+
*/
|
|
560
|
+
'can-swipe-forward'?: boolean;
|
|
561
|
+
/**
|
|
562
|
+
* The child transition animation duration, in milliseconds.
|
|
563
|
+
* @since 1.0
|
|
564
|
+
* @default 200
|
|
565
|
+
*/
|
|
566
|
+
'child-transition-duration'?: number;
|
|
567
|
+
/**
|
|
568
|
+
* Whether to allocate the same width for all children when folded.
|
|
569
|
+
* @since 1.0
|
|
570
|
+
* @default TRUE
|
|
571
|
+
*/
|
|
572
|
+
'hhomogeneous-folded'?: boolean;
|
|
573
|
+
/**
|
|
574
|
+
* Whether to allocate the same width for all children when unfolded.
|
|
575
|
+
* @since 1.0
|
|
576
|
+
* @default FALSE
|
|
577
|
+
*/
|
|
578
|
+
'hhomogeneous-unfolded'?: boolean;
|
|
579
|
+
/**
|
|
580
|
+
* Whether the size should smoothly change when changing between children.
|
|
581
|
+
* @since 1.0
|
|
582
|
+
* @default FALSE
|
|
583
|
+
*/
|
|
584
|
+
'interpolate-size'?: boolean;
|
|
585
|
+
/**
|
|
586
|
+
* The mode transition animation duration, in milliseconds.
|
|
587
|
+
* @since 1.0
|
|
588
|
+
* @default 250
|
|
589
|
+
*/
|
|
590
|
+
'mode-transition-duration'?: number;
|
|
591
|
+
/**
|
|
592
|
+
* The animation type used for transitions between modes and children.
|
|
593
|
+
* @since 1.0
|
|
594
|
+
* @default HDY_LEAFLET_TRANSITION_TYPE_OVER
|
|
595
|
+
*/
|
|
596
|
+
'transition-type'?: HdyLeafletTransitionTypeNick | Handy.LeafletTransitionType;
|
|
597
|
+
/**
|
|
598
|
+
* Whether to allocates the same height for all children when folded.
|
|
599
|
+
* @since 1.0
|
|
600
|
+
* @default TRUE
|
|
601
|
+
*/
|
|
602
|
+
'vhomogeneous-folded'?: boolean;
|
|
603
|
+
/**
|
|
604
|
+
* Whether to allocate the same height for all children when unfolded.
|
|
605
|
+
* @since 1.0
|
|
606
|
+
* @default FALSE
|
|
607
|
+
*/
|
|
608
|
+
'vhomogeneous-unfolded'?: boolean;
|
|
609
|
+
/**
|
|
610
|
+
* The widget currently visible when the leaflet is folded.
|
|
611
|
+
* @since 1.0
|
|
612
|
+
*/
|
|
613
|
+
'visible-child'?: Gtk.Widget;
|
|
614
|
+
/**
|
|
615
|
+
* The name of the widget currently visible when the leaflet is folded.
|
|
616
|
+
* @since 1.0
|
|
617
|
+
* @default NULL
|
|
618
|
+
*/
|
|
619
|
+
'visible-child-name'?: string;
|
|
620
|
+
}
|
|
621
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
622
|
+
export type HdyLeafletConstructOnly = GtkContainerConstructOnly | GtkBuildableConstructOnly | GtkOrientableConstructOnly | HdySwipeableConstructOnly;
|
|
623
|
+
|
|
624
|
+
/** A group of preference rows. */
|
|
625
|
+
export interface HdyPreferencesGroupProps extends GtkBinProps, GtkBuildableProps {
|
|
626
|
+
/**
|
|
627
|
+
* The description for this group of preferences.
|
|
628
|
+
* @since 1.0
|
|
629
|
+
*/
|
|
630
|
+
description?: string;
|
|
631
|
+
/**
|
|
632
|
+
* The title for this group of preferences.
|
|
633
|
+
* @since 1.0
|
|
634
|
+
*/
|
|
635
|
+
title?: string;
|
|
636
|
+
/**
|
|
637
|
+
* Whether to use markup for the title and description.
|
|
638
|
+
* @since 1.4
|
|
639
|
+
* @default FALSE
|
|
640
|
+
*/
|
|
641
|
+
'use-markup'?: boolean;
|
|
642
|
+
}
|
|
643
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
644
|
+
export type HdyPreferencesGroupConstructOnly = GtkBinConstructOnly | GtkBuildableConstructOnly;
|
|
645
|
+
|
|
646
|
+
/** A page from [class@PreferencesWindow]. */
|
|
647
|
+
export interface HdyPreferencesPageProps extends GtkBinProps, GtkBuildableProps {
|
|
648
|
+
/**
|
|
649
|
+
* The icon name for this page of preferences.
|
|
650
|
+
* @since 1.0
|
|
651
|
+
*/
|
|
652
|
+
'icon-name'?: string | null;
|
|
653
|
+
/**
|
|
654
|
+
* The title for this page of preferences.
|
|
655
|
+
* @since 1.0
|
|
656
|
+
*/
|
|
657
|
+
title?: string | null;
|
|
658
|
+
}
|
|
659
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
660
|
+
export type HdyPreferencesPageConstructOnly = GtkBinConstructOnly | GtkBuildableConstructOnly;
|
|
661
|
+
|
|
662
|
+
/** A [class@Gtk.ListBoxRow] used to present preferences. */
|
|
663
|
+
export interface HdyPreferencesRowProps extends GtkListBoxRowProps, GtkActionableProps, GtkBuildableProps {
|
|
664
|
+
/**
|
|
665
|
+
* The title of the preference represented by this row.
|
|
666
|
+
* @since 1.0
|
|
667
|
+
*/
|
|
668
|
+
title?: string | null;
|
|
669
|
+
/**
|
|
670
|
+
* Whether an embedded underline in the title indicates a mnemonic.
|
|
671
|
+
* @since 1.0
|
|
672
|
+
* @default FALSE
|
|
673
|
+
*/
|
|
674
|
+
'use-underline'?: boolean;
|
|
675
|
+
}
|
|
676
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
677
|
+
export type HdyPreferencesRowConstructOnly = GtkListBoxRowConstructOnly | GtkActionableConstructOnly | GtkBuildableConstructOnly;
|
|
678
|
+
|
|
679
|
+
/** A window to present an application's preferences. */
|
|
680
|
+
export interface HdyPreferencesWindowProps extends HdyWindowProps, GtkBuildableProps {
|
|
681
|
+
/**
|
|
682
|
+
* Whether the window allows closing the subpage via a swipe gesture.
|
|
683
|
+
* @since 1.0
|
|
684
|
+
* @default FALSE
|
|
685
|
+
*/
|
|
686
|
+
'can-swipe-back'?: boolean;
|
|
687
|
+
/**
|
|
688
|
+
* Whether search is enabled.
|
|
689
|
+
* @since 1.0
|
|
690
|
+
* @default TRUE
|
|
691
|
+
*/
|
|
692
|
+
'search-enabled'?: boolean;
|
|
693
|
+
}
|
|
694
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
695
|
+
export type HdyPreferencesWindowConstructOnly = HdyWindowConstructOnly | GtkBuildableConstructOnly;
|
|
696
|
+
|
|
697
|
+
/** A toolbar to integrate a search entry with. */
|
|
698
|
+
export interface HdySearchBarProps extends GtkBinProps, GtkBuildableProps {
|
|
699
|
+
/**
|
|
700
|
+
* Whether the search mode is on and the search bar shown.
|
|
701
|
+
* @since 1.0
|
|
702
|
+
* @default FALSE
|
|
703
|
+
*/
|
|
704
|
+
'search-mode-enabled'?: boolean;
|
|
705
|
+
/**
|
|
706
|
+
* Whether to show the close button in the toolbar.
|
|
707
|
+
* @since 1.0
|
|
708
|
+
* @default FALSE
|
|
709
|
+
*/
|
|
710
|
+
'show-close-button'?: boolean;
|
|
711
|
+
}
|
|
712
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
713
|
+
export type HdySearchBarConstructOnly = GtkBinConstructOnly | GtkBuildableConstructOnly;
|
|
714
|
+
|
|
715
|
+
/** A best fit container. */
|
|
716
|
+
export interface HdySqueezerProps extends GtkContainerProps, GtkBuildableProps, GtkOrientableProps {
|
|
717
|
+
/**
|
|
718
|
+
* Whether all children have the same size for the opposite orientation.
|
|
719
|
+
* @since 1.0
|
|
720
|
+
* @default FALSE
|
|
721
|
+
*/
|
|
722
|
+
homogeneous?: boolean;
|
|
723
|
+
/**
|
|
724
|
+
* Whether the squeezer interpolates its size when changing the visible child.
|
|
725
|
+
* @since 1.0
|
|
726
|
+
* @default FALSE
|
|
727
|
+
*/
|
|
728
|
+
'interpolate-size'?: boolean;
|
|
729
|
+
/**
|
|
730
|
+
* The animation duration, in milliseconds.
|
|
731
|
+
* @since 1.0
|
|
732
|
+
* @default 200
|
|
733
|
+
*/
|
|
734
|
+
'transition-duration'?: number;
|
|
735
|
+
/**
|
|
736
|
+
* The type of animation used for transitions between children.
|
|
737
|
+
* @since 1.0
|
|
738
|
+
* @default HDY_SQUEEZER_TRANSITION_TYPE_NONE
|
|
739
|
+
*/
|
|
740
|
+
'transition-type'?: HdySqueezerTransitionTypeNick | Handy.SqueezerTransitionType;
|
|
741
|
+
/**
|
|
742
|
+
* The horizontal alignment, from 0 (start) to 1 (end).
|
|
743
|
+
* @since 1.0
|
|
744
|
+
* @default 0.500000
|
|
745
|
+
*/
|
|
746
|
+
xalign?: number;
|
|
747
|
+
/**
|
|
748
|
+
* The vertical alignment, from 0 (start) to 1 (end).
|
|
749
|
+
* @since 1.0
|
|
750
|
+
* @default 0.500000
|
|
751
|
+
*/
|
|
752
|
+
yalign?: number;
|
|
753
|
+
}
|
|
754
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
755
|
+
export type HdySqueezerConstructOnly = GtkContainerConstructOnly | GtkBuildableConstructOnly | GtkOrientableConstructOnly;
|
|
756
|
+
|
|
757
|
+
/** A page used for empty/error states and similar use-cases. */
|
|
758
|
+
export interface HdyStatusPageProps extends GtkBinProps, GtkBuildableProps {
|
|
759
|
+
/**
|
|
760
|
+
* The description to be displayed below the title.
|
|
761
|
+
* @since 1.2
|
|
762
|
+
*/
|
|
763
|
+
description?: string | null;
|
|
764
|
+
/**
|
|
765
|
+
* The name of the icon to be used.
|
|
766
|
+
* @since 1.2
|
|
767
|
+
* @default NULL
|
|
768
|
+
*/
|
|
769
|
+
'icon-name'?: string | null;
|
|
770
|
+
/**
|
|
771
|
+
* The title to be displayed below the icon.
|
|
772
|
+
* @since 1.2
|
|
773
|
+
*/
|
|
774
|
+
title?: string | null;
|
|
775
|
+
}
|
|
776
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
777
|
+
export type HdyStatusPageConstructOnly = GtkBinConstructOnly | GtkBuildableConstructOnly;
|
|
778
|
+
|
|
779
|
+
/** An interface for swipeable widgets. */
|
|
780
|
+
export interface HdySwipeableProps extends GtkWidgetProps {
|
|
781
|
+
}
|
|
782
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
783
|
+
export type HdySwipeableConstructOnly = GtkWidgetConstructOnly;
|
|
784
|
+
|
|
785
|
+
/** A tab bar for [class@TabView]. */
|
|
786
|
+
export interface HdyTabBarProps extends GtkBinProps, GtkBuildableProps {
|
|
787
|
+
/**
|
|
788
|
+
* Whether tabs automatically hide.
|
|
789
|
+
* @since 1.2
|
|
790
|
+
* @default TRUE
|
|
791
|
+
*/
|
|
792
|
+
autohide?: boolean;
|
|
793
|
+
/**
|
|
794
|
+
* The widget shown after the tabs.
|
|
795
|
+
* @since 1.2
|
|
796
|
+
*/
|
|
797
|
+
'end-action-widget'?: Gtk.Widget | null;
|
|
798
|
+
/**
|
|
799
|
+
* Whether tabs should expand.
|
|
800
|
+
* @since 1.2
|
|
801
|
+
* @default TRUE
|
|
802
|
+
*/
|
|
803
|
+
'expand-tabs'?: boolean;
|
|
804
|
+
/**
|
|
805
|
+
* Extra drag destination targets.
|
|
806
|
+
* @since 1.2
|
|
807
|
+
*/
|
|
808
|
+
'extra-drag-dest-targets'?: Gtk.TargetList | null;
|
|
809
|
+
/**
|
|
810
|
+
* Whether tabs use inverted layout.
|
|
811
|
+
* @since 1.2
|
|
812
|
+
* @default FALSE
|
|
813
|
+
*/
|
|
814
|
+
inverted?: boolean;
|
|
815
|
+
/**
|
|
816
|
+
* The widget shown before the tabs.
|
|
817
|
+
* @since 1.2
|
|
818
|
+
*/
|
|
819
|
+
'start-action-widget'?: Gtk.Widget | null;
|
|
820
|
+
/**
|
|
821
|
+
* The [class@TabView] the tab bar controls.
|
|
822
|
+
* @since 1.2
|
|
823
|
+
*/
|
|
824
|
+
view?: Handy.TabView | null;
|
|
825
|
+
}
|
|
826
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
827
|
+
export type HdyTabBarConstructOnly = GtkBinConstructOnly | GtkBuildableConstructOnly;
|
|
828
|
+
|
|
829
|
+
/** A dynamic tabbed container. */
|
|
830
|
+
export interface HdyTabViewProps extends GtkBinProps, GtkBuildableProps {
|
|
831
|
+
/**
|
|
832
|
+
* Default page icon.
|
|
833
|
+
* @since 1.2
|
|
834
|
+
*/
|
|
835
|
+
'default-icon'?: Gio.Icon;
|
|
836
|
+
/**
|
|
837
|
+
* Tab context menu model.
|
|
838
|
+
* @since 1.2
|
|
839
|
+
*/
|
|
840
|
+
'menu-model'?: Gio.MenuModel | null;
|
|
841
|
+
/**
|
|
842
|
+
* The currently selected page.
|
|
843
|
+
* @since 1.2
|
|
844
|
+
*/
|
|
845
|
+
'selected-page'?: Handy.TabPage | null;
|
|
846
|
+
/**
|
|
847
|
+
* Tab shortcut widget.
|
|
848
|
+
* @since 1.2
|
|
849
|
+
*/
|
|
850
|
+
'shortcut-widget'?: Gtk.Widget | null;
|
|
851
|
+
}
|
|
852
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
853
|
+
export type HdyTabViewConstructOnly = GtkBinConstructOnly | GtkBuildableConstructOnly;
|
|
854
|
+
|
|
855
|
+
/** A simple title bar container. */
|
|
856
|
+
export interface HdyTitleBarProps extends GtkBinProps, GtkBuildableProps {
|
|
857
|
+
/**
|
|
858
|
+
* Whether or not the title bar is in selection mode.
|
|
859
|
+
* @since 1.0
|
|
860
|
+
* @default FALSE
|
|
861
|
+
* @deprecated since 1.4
|
|
862
|
+
*/
|
|
863
|
+
'selection-mode'?: boolean;
|
|
864
|
+
}
|
|
865
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
866
|
+
export type HdyTitleBarConstructOnly = GtkBinConstructOnly | GtkBuildableConstructOnly;
|
|
867
|
+
|
|
868
|
+
/** An adaptive view switcher. */
|
|
869
|
+
export interface HdyViewSwitcherProps extends GtkBinProps, GtkBuildableProps {
|
|
870
|
+
/**
|
|
871
|
+
* The preferred place to ellipsize the string.
|
|
872
|
+
* @since 1.0
|
|
873
|
+
* @default PANGO_ELLIPSIZE_NONE
|
|
874
|
+
*/
|
|
875
|
+
'narrow-ellipsize'?: PangoEllipsizeModeNick | Pango.EllipsizeMode;
|
|
876
|
+
/**
|
|
877
|
+
* The policy to determine which mode to use.
|
|
878
|
+
* @since 1.0
|
|
879
|
+
* @default HDY_VIEW_SWITCHER_POLICY_AUTO
|
|
880
|
+
*/
|
|
881
|
+
policy?: HdyViewSwitcherPolicyNick | Handy.ViewSwitcherPolicy;
|
|
882
|
+
/**
|
|
883
|
+
* The [class@Gtk.Stack] the view switcher controls.
|
|
884
|
+
* @since 1.0
|
|
885
|
+
*/
|
|
886
|
+
stack?: Gtk.Stack | null;
|
|
887
|
+
}
|
|
888
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
889
|
+
export type HdyViewSwitcherConstructOnly = GtkBinConstructOnly | GtkBuildableConstructOnly;
|
|
890
|
+
|
|
891
|
+
/** A view switcher action bar. */
|
|
892
|
+
export interface HdyViewSwitcherBarProps extends GtkBinProps, GtkBuildableProps {
|
|
893
|
+
/**
|
|
894
|
+
* The policy used to determine which mode to use.
|
|
895
|
+
* @since 1.0
|
|
896
|
+
* @default HDY_VIEW_SWITCHER_POLICY_NARROW
|
|
897
|
+
*/
|
|
898
|
+
policy?: HdyViewSwitcherPolicyNick | Handy.ViewSwitcherPolicy;
|
|
899
|
+
/**
|
|
900
|
+
* Whether the bar should be revealed or hidden.
|
|
901
|
+
* @since 1.0
|
|
902
|
+
* @default FALSE
|
|
903
|
+
*/
|
|
904
|
+
reveal?: boolean;
|
|
905
|
+
/**
|
|
906
|
+
* The [class@Gtk.Stack] the [class@ViewSwitcher] controls.
|
|
907
|
+
* @since 1.0
|
|
908
|
+
*/
|
|
909
|
+
stack?: Gtk.Stack | null;
|
|
910
|
+
}
|
|
911
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
912
|
+
export type HdyViewSwitcherBarConstructOnly = GtkBinConstructOnly | GtkBuildableConstructOnly;
|
|
913
|
+
|
|
914
|
+
/** A view switcher title. */
|
|
915
|
+
export interface HdyViewSwitcherTitleProps extends GtkBinProps, GtkBuildableProps {
|
|
916
|
+
/**
|
|
917
|
+
* The policy used to determine which mode to use.
|
|
918
|
+
* @since 1.0
|
|
919
|
+
* @default HDY_VIEW_SWITCHER_POLICY_AUTO
|
|
920
|
+
*/
|
|
921
|
+
policy?: HdyViewSwitcherPolicyNick | Handy.ViewSwitcherPolicy;
|
|
922
|
+
/**
|
|
923
|
+
* The [class@Gtk.Stack] the [class@ViewSwitcher] controls.
|
|
924
|
+
* @since 1.0
|
|
925
|
+
*/
|
|
926
|
+
stack?: Gtk.Stack | null;
|
|
927
|
+
/**
|
|
928
|
+
* The subtitle of the [class@ViewSwitcher].
|
|
929
|
+
* @since 1.0
|
|
930
|
+
* @default NULL
|
|
931
|
+
*/
|
|
932
|
+
subtitle?: string | null;
|
|
933
|
+
/**
|
|
934
|
+
* The title of the [class@ViewSwitcher].
|
|
935
|
+
* @since 1.0
|
|
936
|
+
* @default NULL
|
|
937
|
+
*/
|
|
938
|
+
title?: string | null;
|
|
939
|
+
/**
|
|
940
|
+
* Whether the bar should be revealed or hidden.
|
|
941
|
+
* @since 1.0
|
|
942
|
+
* @default TRUE
|
|
943
|
+
*/
|
|
944
|
+
'view-switcher-enabled'?: boolean;
|
|
945
|
+
}
|
|
946
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
947
|
+
export type HdyViewSwitcherTitleConstructOnly = GtkBinConstructOnly | GtkBuildableConstructOnly;
|
|
948
|
+
|
|
949
|
+
/** A freeform window. */
|
|
950
|
+
export interface HdyWindowProps extends GtkWindowProps, GtkBuildableProps {
|
|
951
|
+
}
|
|
952
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
953
|
+
export type HdyWindowConstructOnly = GtkWindowConstructOnly | GtkBuildableConstructOnly;
|
|
954
|
+
|
|
955
|
+
/** A bin that acts like a titlebar. */
|
|
956
|
+
export interface HdyWindowHandleProps extends GtkEventBoxProps, GtkBuildableProps {
|
|
957
|
+
}
|
|
958
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
959
|
+
export type HdyWindowHandleConstructOnly = GtkEventBoxConstructOnly | GtkBuildableConstructOnly;
|
|
960
|
+
|
|
961
|
+
// ---------------------------------------------------------------------------
|
|
962
|
+
// The GType-keyed widget map.
|
|
963
|
+
//
|
|
964
|
+
// Keyed by GType because that is also the GtkBuilder XML key and the typelib key. A
|
|
965
|
+
// consumer maps GTypes to tags in ITS convention — kebab for JSX intrinsics, Pascal
|
|
966
|
+
// for a Vue `GlobalComponents`, the class itself for a renderer whose element type
|
|
967
|
+
// is the class. None of those is baked in here.
|
|
968
|
+
//
|
|
969
|
+
// `slotCandidates` is a candidate list and never an answer: derived from methods
|
|
970
|
+
// taking exactly one widget argument. The GIR cannot tell adoption from reference —
|
|
971
|
+
// `set_title_widget` parents its argument and `set_activatable_widget` does not, and
|
|
972
|
+
// both are `void f(GtkWidget*)` at `transfer-ownership="none"`. Curation decides;
|
|
973
|
+
// this is what notices when a release adds a candidate.
|
|
974
|
+
// ---------------------------------------------------------------------------
|
|
975
|
+
|
|
976
|
+
export interface Widgets {
|
|
977
|
+
HdyActionRow: {
|
|
978
|
+
class: Handy.ActionRow;
|
|
979
|
+
props: HdyActionRowProps;
|
|
980
|
+
signals: Handy.ActionRow.SignalSignatures;
|
|
981
|
+
constructOnly: HdyActionRowConstructOnly;
|
|
982
|
+
slotCandidates: {
|
|
983
|
+
'activatable': 'set_activatable_widget';
|
|
984
|
+
'prefix': 'add_prefix';
|
|
985
|
+
};
|
|
986
|
+
};
|
|
987
|
+
HdyApplicationWindow: {
|
|
988
|
+
class: Handy.ApplicationWindow;
|
|
989
|
+
props: HdyApplicationWindowProps;
|
|
990
|
+
signals: Handy.ApplicationWindow.SignalSignatures;
|
|
991
|
+
constructOnly: HdyApplicationWindowConstructOnly;
|
|
992
|
+
slotCandidates: {};
|
|
993
|
+
};
|
|
994
|
+
HdyAvatar: {
|
|
995
|
+
class: Handy.Avatar;
|
|
996
|
+
props: HdyAvatarProps;
|
|
997
|
+
signals: Handy.Avatar.SignalSignatures;
|
|
998
|
+
constructOnly: HdyAvatarConstructOnly;
|
|
999
|
+
slotCandidates: {};
|
|
1000
|
+
};
|
|
1001
|
+
HdyCarousel: {
|
|
1002
|
+
class: Handy.Carousel;
|
|
1003
|
+
props: HdyCarouselProps;
|
|
1004
|
+
signals: Handy.Carousel.SignalSignatures;
|
|
1005
|
+
constructOnly: HdyCarouselConstructOnly;
|
|
1006
|
+
slotCandidates: {};
|
|
1007
|
+
};
|
|
1008
|
+
HdyCarouselIndicatorDots: {
|
|
1009
|
+
class: Handy.CarouselIndicatorDots;
|
|
1010
|
+
props: HdyCarouselIndicatorDotsProps;
|
|
1011
|
+
signals: Handy.CarouselIndicatorDots.SignalSignatures;
|
|
1012
|
+
constructOnly: HdyCarouselIndicatorDotsConstructOnly;
|
|
1013
|
+
slotCandidates: {
|
|
1014
|
+
'carousel': 'set_carousel';
|
|
1015
|
+
};
|
|
1016
|
+
};
|
|
1017
|
+
HdyCarouselIndicatorLines: {
|
|
1018
|
+
class: Handy.CarouselIndicatorLines;
|
|
1019
|
+
props: HdyCarouselIndicatorLinesProps;
|
|
1020
|
+
signals: Handy.CarouselIndicatorLines.SignalSignatures;
|
|
1021
|
+
constructOnly: HdyCarouselIndicatorLinesConstructOnly;
|
|
1022
|
+
slotCandidates: {
|
|
1023
|
+
'carousel': 'set_carousel';
|
|
1024
|
+
};
|
|
1025
|
+
};
|
|
1026
|
+
HdyClamp: {
|
|
1027
|
+
class: Handy.Clamp;
|
|
1028
|
+
props: HdyClampProps;
|
|
1029
|
+
signals: Handy.Clamp.SignalSignatures;
|
|
1030
|
+
constructOnly: HdyClampConstructOnly;
|
|
1031
|
+
slotCandidates: {};
|
|
1032
|
+
};
|
|
1033
|
+
HdyComboRow: {
|
|
1034
|
+
class: Handy.ComboRow;
|
|
1035
|
+
props: HdyComboRowProps;
|
|
1036
|
+
signals: Handy.ComboRow.SignalSignatures;
|
|
1037
|
+
constructOnly: HdyComboRowConstructOnly;
|
|
1038
|
+
slotCandidates: {};
|
|
1039
|
+
};
|
|
1040
|
+
HdyDeck: {
|
|
1041
|
+
class: Handy.Deck;
|
|
1042
|
+
props: HdyDeckProps;
|
|
1043
|
+
signals: Handy.Deck.SignalSignatures;
|
|
1044
|
+
constructOnly: HdyDeckConstructOnly;
|
|
1045
|
+
slotCandidates: {
|
|
1046
|
+
'visible-child': 'set_visible_child';
|
|
1047
|
+
};
|
|
1048
|
+
};
|
|
1049
|
+
HdyExpanderRow: {
|
|
1050
|
+
class: Handy.ExpanderRow;
|
|
1051
|
+
props: HdyExpanderRowProps;
|
|
1052
|
+
signals: Handy.ExpanderRow.SignalSignatures;
|
|
1053
|
+
constructOnly: HdyExpanderRowConstructOnly;
|
|
1054
|
+
slotCandidates: {
|
|
1055
|
+
'action': 'add_action';
|
|
1056
|
+
'prefix': 'add_prefix';
|
|
1057
|
+
};
|
|
1058
|
+
};
|
|
1059
|
+
HdyFlap: {
|
|
1060
|
+
class: Handy.Flap;
|
|
1061
|
+
props: HdyFlapProps;
|
|
1062
|
+
signals: Handy.Flap.SignalSignatures;
|
|
1063
|
+
constructOnly: HdyFlapConstructOnly;
|
|
1064
|
+
slotCandidates: {
|
|
1065
|
+
'content': 'set_content';
|
|
1066
|
+
'flap': 'set_flap';
|
|
1067
|
+
'separator': 'set_separator';
|
|
1068
|
+
};
|
|
1069
|
+
};
|
|
1070
|
+
HdyHeaderBar: {
|
|
1071
|
+
class: Handy.HeaderBar;
|
|
1072
|
+
props: HdyHeaderBarProps;
|
|
1073
|
+
signals: Handy.HeaderBar.SignalSignatures;
|
|
1074
|
+
constructOnly: HdyHeaderBarConstructOnly;
|
|
1075
|
+
slotCandidates: {
|
|
1076
|
+
'custom-title': 'set_custom_title';
|
|
1077
|
+
'end': 'pack_end';
|
|
1078
|
+
'start': 'pack_start';
|
|
1079
|
+
};
|
|
1080
|
+
};
|
|
1081
|
+
HdyKeypad: {
|
|
1082
|
+
class: Handy.Keypad;
|
|
1083
|
+
props: HdyKeypadProps;
|
|
1084
|
+
signals: Handy.Keypad.SignalSignatures;
|
|
1085
|
+
constructOnly: HdyKeypadConstructOnly;
|
|
1086
|
+
slotCandidates: {
|
|
1087
|
+
'end-action': 'set_end_action';
|
|
1088
|
+
'entry': 'set_entry';
|
|
1089
|
+
'start-action': 'set_start_action';
|
|
1090
|
+
};
|
|
1091
|
+
};
|
|
1092
|
+
HdyLeaflet: {
|
|
1093
|
+
class: Handy.Leaflet;
|
|
1094
|
+
props: HdyLeafletProps;
|
|
1095
|
+
signals: Handy.Leaflet.SignalSignatures;
|
|
1096
|
+
constructOnly: HdyLeafletConstructOnly;
|
|
1097
|
+
slotCandidates: {
|
|
1098
|
+
'visible-child': 'set_visible_child';
|
|
1099
|
+
};
|
|
1100
|
+
};
|
|
1101
|
+
HdyPreferencesGroup: {
|
|
1102
|
+
class: Handy.PreferencesGroup;
|
|
1103
|
+
props: HdyPreferencesGroupProps;
|
|
1104
|
+
signals: Handy.PreferencesGroup.SignalSignatures;
|
|
1105
|
+
constructOnly: HdyPreferencesGroupConstructOnly;
|
|
1106
|
+
slotCandidates: {};
|
|
1107
|
+
};
|
|
1108
|
+
HdyPreferencesPage: {
|
|
1109
|
+
class: Handy.PreferencesPage;
|
|
1110
|
+
props: HdyPreferencesPageProps;
|
|
1111
|
+
signals: Handy.PreferencesPage.SignalSignatures;
|
|
1112
|
+
constructOnly: HdyPreferencesPageConstructOnly;
|
|
1113
|
+
slotCandidates: {};
|
|
1114
|
+
};
|
|
1115
|
+
HdyPreferencesRow: {
|
|
1116
|
+
class: Handy.PreferencesRow;
|
|
1117
|
+
props: HdyPreferencesRowProps;
|
|
1118
|
+
signals: Handy.PreferencesRow.SignalSignatures;
|
|
1119
|
+
constructOnly: HdyPreferencesRowConstructOnly;
|
|
1120
|
+
slotCandidates: {};
|
|
1121
|
+
};
|
|
1122
|
+
HdyPreferencesWindow: {
|
|
1123
|
+
class: Handy.PreferencesWindow;
|
|
1124
|
+
props: HdyPreferencesWindowProps;
|
|
1125
|
+
signals: Handy.PreferencesWindow.SignalSignatures;
|
|
1126
|
+
constructOnly: HdyPreferencesWindowConstructOnly;
|
|
1127
|
+
slotCandidates: {};
|
|
1128
|
+
};
|
|
1129
|
+
HdySearchBar: {
|
|
1130
|
+
class: Handy.SearchBar;
|
|
1131
|
+
props: HdySearchBarProps;
|
|
1132
|
+
signals: Handy.SearchBar.SignalSignatures;
|
|
1133
|
+
constructOnly: HdySearchBarConstructOnly;
|
|
1134
|
+
slotCandidates: {};
|
|
1135
|
+
};
|
|
1136
|
+
HdySqueezer: {
|
|
1137
|
+
class: Handy.Squeezer;
|
|
1138
|
+
props: HdySqueezerProps;
|
|
1139
|
+
signals: Handy.Squeezer.SignalSignatures;
|
|
1140
|
+
constructOnly: HdySqueezerConstructOnly;
|
|
1141
|
+
slotCandidates: {};
|
|
1142
|
+
};
|
|
1143
|
+
HdyStatusPage: {
|
|
1144
|
+
class: Handy.StatusPage;
|
|
1145
|
+
props: HdyStatusPageProps;
|
|
1146
|
+
signals: Handy.StatusPage.SignalSignatures;
|
|
1147
|
+
constructOnly: HdyStatusPageConstructOnly;
|
|
1148
|
+
slotCandidates: {};
|
|
1149
|
+
};
|
|
1150
|
+
HdyTabBar: {
|
|
1151
|
+
class: Handy.TabBar;
|
|
1152
|
+
props: HdyTabBarProps;
|
|
1153
|
+
signals: Handy.TabBar.SignalSignatures;
|
|
1154
|
+
constructOnly: HdyTabBarConstructOnly;
|
|
1155
|
+
slotCandidates: {
|
|
1156
|
+
'end-action': 'set_end_action_widget';
|
|
1157
|
+
'start-action': 'set_start_action_widget';
|
|
1158
|
+
'view': 'set_view';
|
|
1159
|
+
};
|
|
1160
|
+
};
|
|
1161
|
+
HdyTabView: {
|
|
1162
|
+
class: Handy.TabView;
|
|
1163
|
+
props: HdyTabViewProps;
|
|
1164
|
+
signals: Handy.TabView.SignalSignatures;
|
|
1165
|
+
constructOnly: HdyTabViewConstructOnly;
|
|
1166
|
+
slotCandidates: {
|
|
1167
|
+
'shortcut': 'set_shortcut_widget';
|
|
1168
|
+
};
|
|
1169
|
+
};
|
|
1170
|
+
HdyTitleBar: {
|
|
1171
|
+
class: Handy.TitleBar;
|
|
1172
|
+
props: HdyTitleBarProps;
|
|
1173
|
+
signals: Handy.TitleBar.SignalSignatures;
|
|
1174
|
+
constructOnly: HdyTitleBarConstructOnly;
|
|
1175
|
+
slotCandidates: {};
|
|
1176
|
+
};
|
|
1177
|
+
HdyViewSwitcher: {
|
|
1178
|
+
class: Handy.ViewSwitcher;
|
|
1179
|
+
props: HdyViewSwitcherProps;
|
|
1180
|
+
signals: Handy.ViewSwitcher.SignalSignatures;
|
|
1181
|
+
constructOnly: HdyViewSwitcherConstructOnly;
|
|
1182
|
+
slotCandidates: {
|
|
1183
|
+
'stack': 'set_stack';
|
|
1184
|
+
};
|
|
1185
|
+
};
|
|
1186
|
+
HdyViewSwitcherBar: {
|
|
1187
|
+
class: Handy.ViewSwitcherBar;
|
|
1188
|
+
props: HdyViewSwitcherBarProps;
|
|
1189
|
+
signals: Handy.ViewSwitcherBar.SignalSignatures;
|
|
1190
|
+
constructOnly: HdyViewSwitcherBarConstructOnly;
|
|
1191
|
+
slotCandidates: {
|
|
1192
|
+
'stack': 'set_stack';
|
|
1193
|
+
};
|
|
1194
|
+
};
|
|
1195
|
+
HdyViewSwitcherTitle: {
|
|
1196
|
+
class: Handy.ViewSwitcherTitle;
|
|
1197
|
+
props: HdyViewSwitcherTitleProps;
|
|
1198
|
+
signals: Handy.ViewSwitcherTitle.SignalSignatures;
|
|
1199
|
+
constructOnly: HdyViewSwitcherTitleConstructOnly;
|
|
1200
|
+
slotCandidates: {
|
|
1201
|
+
'stack': 'set_stack';
|
|
1202
|
+
};
|
|
1203
|
+
};
|
|
1204
|
+
HdyWindow: {
|
|
1205
|
+
class: Handy.Window;
|
|
1206
|
+
props: HdyWindowProps;
|
|
1207
|
+
signals: Handy.Window.SignalSignatures;
|
|
1208
|
+
constructOnly: HdyWindowConstructOnly;
|
|
1209
|
+
slotCandidates: {};
|
|
1210
|
+
};
|
|
1211
|
+
HdyWindowHandle: {
|
|
1212
|
+
class: Handy.WindowHandle;
|
|
1213
|
+
props: HdyWindowHandleProps;
|
|
1214
|
+
signals: Handy.WindowHandle.SignalSignatures;
|
|
1215
|
+
constructOnly: HdyWindowHandleConstructOnly;
|
|
1216
|
+
slotCandidates: {};
|
|
1217
|
+
};
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
/** Every GType this namespace can create. A consumer derives its own tag map. */
|
|
1221
|
+
export type WidgetGType = keyof Widgets;
|
|
1222
|
+
|
|
1223
|
+
// ---------------------------------------------------------------------------
|
|
1224
|
+
// Child holders — the same shape, for objects that CARRY a widget without being one.
|
|
1225
|
+
//
|
|
1226
|
+
// `GtkListItem`, `GtkListHeader`, `GtkColumnViewCell` and `AdwToggle` descend from
|
|
1227
|
+
// `GObject.Object` and hold a widget through `set_child`/`get_child`. A renderer places
|
|
1228
|
+
// them exactly like a container, so they belong in the vocabulary; a check asking "is
|
|
1229
|
+
// this a widget" must still be able to say no. Hence a sibling table rather than four
|
|
1230
|
+
// more rows in `Widgets`: concatenate them when you mean both.
|
|
1231
|
+
// ---------------------------------------------------------------------------
|
|
1232
|
+
|
|
1233
|
+
export interface ChildHolders {
|
|
1234
|
+
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
/** Every GType this namespace holds a child in without it being a widget. */
|
|
1238
|
+
export type ChildHolderGType = keyof ChildHolders;
|
|
1239
|
+
|
|
1240
|
+
/** The writable, optional, GObject-keyed property surface of one GType. */
|
|
1241
|
+
export type PropsOf<G extends WidgetGType> = Widgets[G]['props'];
|
|
1242
|
+
|
|
1243
|
+
/** The signal table this package already emits, reached by GType. */
|
|
1244
|
+
export type SignalsOf<G extends WidgetGType> = Widgets[G]['signals'];
|
|
1245
|
+
|
|
1246
|
+
/** The instance type — what a `ref`-shaped prop should infer. */
|
|
1247
|
+
export type InstanceOf<G extends WidgetGType> = Widgets[G]['class'];
|
|
1248
|
+
|
|
1249
|
+
/** Property names that can only be set at construction. */
|
|
1250
|
+
export type ConstructOnlyOf<G extends WidgetGType> = Widgets[G]['constructOnly'];
|
|
1251
|
+
|
|
1252
|
+
/** Candidate child slots — see the note above; curation decides. */
|
|
1253
|
+
export type SlotCandidatesOf<G extends WidgetGType> = keyof Widgets[G]['slotCandidates'];
|
|
1254
|
+
|
|
1255
|
+
/**
|
|
1256
|
+
* The same facts as runtime data, for a consumer that CHECKS them.
|
|
1257
|
+
*
|
|
1258
|
+
* Types are erased, so a spec that asks the installed GTK whether every property
|
|
1259
|
+
* here is a writable ParamSpec, every signal resolvable by `GObject.signal_lookup`
|
|
1260
|
+
* and every nick resolvable through an enum lookup cannot read the interfaces
|
|
1261
|
+
* above. Emitted headlessly with no GTK present, which is exactly why the checking
|
|
1262
|
+
* belongs to the consumer and the DATA belongs here.
|
|
1263
|
+
*/
|
|
1264
|
+
export const PROVENANCE: {
|
|
1265
|
+
readonly namespace: string;
|
|
1266
|
+
readonly version: string;
|
|
1267
|
+
/** The version the LIBRARY states, or null where it states none. Never the namespace's. */
|
|
1268
|
+
readonly libraryVersion: string | null;
|
|
1269
|
+
readonly childHolders: number;
|
|
1270
|
+
readonly droppedBases: readonly string[];
|
|
1271
|
+
readonly inlinedBases: readonly string[];
|
|
1272
|
+
readonly unsettableProps: readonly string[];
|
|
1273
|
+
};
|
|
1274
|
+
|
|
1275
|
+
/** Declaration GType -> its own settable properties, as GObject registered them. */
|
|
1276
|
+
export const OWN_PROPS: Readonly<Record<string, readonly string[]>>;
|
|
1277
|
+
|
|
1278
|
+
/**
|
|
1279
|
+
* Declaration GType -> the signals it registers itself, never its parents'.
|
|
1280
|
+
*
|
|
1281
|
+
* Keyed like `OWN_PROPS`, so both are read at every link of a `DECLS` chain. An
|
|
1282
|
+
* abstract base has no `Widgets` row and still owns signals — `GtkWidget` owns 13.
|
|
1283
|
+
*/
|
|
1284
|
+
export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
|
|
1285
|
+
|
|
1286
|
+
/** Widget GType -> every declaration its members come from, self first. */
|
|
1287
|
+
export const DECLS: Readonly<Record<string, readonly string[]>>;
|
|
1288
|
+
|
|
1289
|
+
/** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
|
|
1290
|
+
export const CHILD_HOLDERS: readonly string[];
|
|
1291
|
+
|
|
1292
|
+
/** Enum GType -> the nicks this surface offers. */
|
|
1293
|
+
export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
|
|
1294
|
+
|
|
1295
|
+
/** Widget GType -> slot name -> the method that may adopt a child there. */
|
|
1296
|
+
export const SLOT_CANDIDATES: Readonly<Record<string, Readonly<Record<string, string>>>>;
|
|
1297
|
+
|
|
1298
|
+
/**
|
|
1299
|
+
* `Type`, `Type.property` and `Type::signal` -> the release that introduced it.
|
|
1300
|
+
*
|
|
1301
|
+
* What keeps a runtime cross-check honest across a version gap without an
|
|
1302
|
+
* allowlist: a name the installed library lacks is a defect UNLESS the version
|
|
1303
|
+
* here is newer than the one running.
|
|
1304
|
+
*
|
|
1305
|
+
* ALL THREE key shapes, because that test only works for the names it covers. A
|
|
1306
|
+
* property-only map leaves a consumer no way to explain a missing SIGNAL, which is
|
|
1307
|
+
* a correct vocabulary reported as 18 defects; a member-only map leaves it no way to
|
|
1308
|
+
* explain a missing CLASS, and that one fails as a bare
|
|
1309
|
+
* `TypeError: can't access property "$gtype", ctor() is undefined` that does not
|
|
1310
|
+
* even name the GType.
|
|
1311
|
+
*
|
|
1312
|
+
* A key is present only where the GIR states a version — sparse by nature (`version`
|
|
1313
|
+
* sits on 29 of the 301 classes and interfaces in Gtk-4.0), never inferred.
|
|
1314
|
+
*/
|
|
1315
|
+
export const SINCE: Readonly<Record<string, string>>;
|