@girs/gdl-3 5.1.0 → 5.3.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 +1 -1
- package/gdl-3-vocabulary.d.ts +85 -11
- package/gdl-3-vocabulary.js +53 -25
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|

|
|
5
5
|

|
|
6
6
|
|
|
7
|
-
GJS TypeScript type definitions for Gdl-3 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.
|
|
7
|
+
GJS TypeScript type definitions for Gdl-3 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.3.0.
|
|
8
8
|
|
|
9
9
|
This package contains type declarations only. It ships no runtime code, so it adds
|
|
10
10
|
nothing to your program and works with any bundler or none at all.
|
package/gdl-3-vocabulary.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The GIR-derived widget VOCABULARY for Gdl-3.
|
|
3
3
|
*
|
|
4
|
-
* GENERATED — do not edit. Provenance: Gdl-3 — dropped empty base(s):
|
|
4
|
+
* GENERATED — do not edit. Provenance: Gdl-3 — dropped empty base(s): Atk.ImplementorIface — prop(s) no TypeScript value satisfies: Gdl.DockObject.pixbuf-icon
|
|
5
5
|
*
|
|
6
|
-
* 12 concrete widgets,
|
|
6
|
+
* 15 instantiable GTypes (of which 12 concrete widgets), 15 declarations, 3 enum nick unions, 4 slot candidates.
|
|
7
7
|
*
|
|
8
8
|
* Module-scoped exports only. There is no `JSX` namespace here, no tag spelling and
|
|
9
9
|
* no `on<Signal>` prop name: those are DIALECT, and every framework answers them
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
import type GObject from '@girs/gobject-2.0';
|
|
28
28
|
import type Gdl from './gdl-3.js';
|
|
29
29
|
import type Gtk from '@girs/gtk-3.0';
|
|
30
|
+
import type { GInitiallyUnownedConstructOnly, GInitiallyUnownedProps, GObjectConstructOnly, GObjectProps } from '@girs/gobject-2.0/vocabulary';
|
|
30
31
|
import type { GtkBinConstructOnly, GtkBinProps, GtkBoxConstructOnly, GtkBoxProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkContainerConstructOnly, GtkContainerProps, GtkNotebookConstructOnly, GtkNotebookProps, GtkOrientableConstructOnly, GtkOrientableProps, GtkOrientationNick, GtkPositionTypeNick, GtkWidgetConstructOnly, GtkWidgetProps, GtkWindowConstructOnly, GtkWindowProps } from '@girs/gtk-3.0/vocabulary';
|
|
31
32
|
|
|
32
33
|
// ---------------------------------------------------------------------------
|
|
@@ -128,6 +129,28 @@ export interface GdlDockItemGripProps extends GtkContainerProps, GtkBuildablePro
|
|
|
128
129
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
129
130
|
export type GdlDockItemGripConstructOnly = GtkContainerConstructOnly | GtkBuildableConstructOnly | 'item';
|
|
130
131
|
|
|
132
|
+
/** The GdlDockLayout struct contains only private fields and should not be directly accessed. */
|
|
133
|
+
export interface GdlDockLayoutProps extends GObjectProps {
|
|
134
|
+
master?: GObject.Object;
|
|
135
|
+
}
|
|
136
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
137
|
+
export type GdlDockLayoutConstructOnly = GObjectConstructOnly;
|
|
138
|
+
|
|
139
|
+
export interface GdlDockMasterProps extends GObjectProps {
|
|
140
|
+
/** @default NULL */
|
|
141
|
+
'default-title'?: string;
|
|
142
|
+
/** @default 0 */
|
|
143
|
+
locked?: number;
|
|
144
|
+
/** @default GDL_SWITCHER_STYLE_BOTH */
|
|
145
|
+
'switcher-style'?: GdlSwitcherStyleNick | Gdl.SwitcherStyle;
|
|
146
|
+
/** @default GTK_POS_BOTTOM */
|
|
147
|
+
'tab-pos'?: GtkPositionTypeNick | Gtk.PositionType;
|
|
148
|
+
/** @default FALSE */
|
|
149
|
+
'tab-reorderable'?: boolean;
|
|
150
|
+
}
|
|
151
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
152
|
+
export type GdlDockMasterConstructOnly = GObjectConstructOnly;
|
|
153
|
+
|
|
131
154
|
export interface GdlDockNotebookProps extends GdlDockItemProps, GtkBuildableProps {
|
|
132
155
|
/** @default -1 */
|
|
133
156
|
page?: number;
|
|
@@ -169,6 +192,11 @@ export interface GdlDockPanedProps extends GdlDockItemProps, GtkBuildableProps {
|
|
|
169
192
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
170
193
|
export type GdlDockPanedConstructOnly = GdlDockItemConstructOnly | GtkBuildableConstructOnly;
|
|
171
194
|
|
|
195
|
+
export interface GdlDockParamProps {
|
|
196
|
+
}
|
|
197
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
198
|
+
export type GdlDockParamConstructOnly = never;
|
|
199
|
+
|
|
172
200
|
export interface GdlDockPlaceholderProps extends GdlDockObjectProps, GtkBuildableProps {
|
|
173
201
|
/** @default FALSE */
|
|
174
202
|
floating?: boolean;
|
|
@@ -320,7 +348,11 @@ export interface Widgets {
|
|
|
320
348
|
};
|
|
321
349
|
}
|
|
322
350
|
|
|
323
|
-
/**
|
|
351
|
+
/**
|
|
352
|
+
* Every GType this namespace can create AND put on screen. A consumer derives its own
|
|
353
|
+
* tag map. For everything a UI file can instantiate — layout managers, event
|
|
354
|
+
* controllers, cell renderers, `GtkSizeGroup` — read `DECLS` below.
|
|
355
|
+
*/
|
|
324
356
|
export type WidgetGType = keyof Widgets;
|
|
325
357
|
|
|
326
358
|
// ---------------------------------------------------------------------------
|
|
@@ -372,7 +404,38 @@ export const PROVENANCE: {
|
|
|
372
404
|
readonly childHolders: number;
|
|
373
405
|
readonly droppedBases: readonly string[];
|
|
374
406
|
readonly inlinedBases: readonly string[];
|
|
407
|
+
/** `<decl>.<prop>` for every property printed `never` because TypeScript has no value for it. */
|
|
375
408
|
readonly unsettableProps: readonly string[];
|
|
409
|
+
/**
|
|
410
|
+
* `<decl>.<prop>: <Ns>.<Name>` for every property printed `never` because the model
|
|
411
|
+
* could not resolve its type across a namespace boundary — two independently released
|
|
412
|
+
* GIRs disagreeing, which is what the main emitter answers `never` for as well.
|
|
413
|
+
*/
|
|
414
|
+
readonly unresolvedProps: readonly string[];
|
|
415
|
+
/**
|
|
416
|
+
* `c:identifier-prefixes` from the GIR, verbatim and in order — `['G']` for Gio.
|
|
417
|
+
*
|
|
418
|
+
* The C prefix a type REFERENCE needs: resolving `Gio.Icon` means producing `GIcon`,
|
|
419
|
+
* and nothing else in this package states that `Gio` spells itself `G`. Carried rather
|
|
420
|
+
* than derived because GIR carries it, and a derivation over the `DECLS` keys is wrong
|
|
421
|
+
* wherever the C prefix is not a prefix of the type NAMES: gdkx11-4.0 and gdkwayland-4.0
|
|
422
|
+
* both state `Gdk` while every key they declare begins `GdkX11`/`GdkWayland`.
|
|
423
|
+
*
|
|
424
|
+
* Empty where the GIR states none — 17 of the 627 emitting namespaces — because
|
|
425
|
+
* inventing the namespace name there is a confident wrong answer in place of a missing
|
|
426
|
+
* one. A LIST because 20 of them state more than one, which no single string expresses.
|
|
427
|
+
*/
|
|
428
|
+
readonly identifierPrefixes: readonly string[];
|
|
429
|
+
/**
|
|
430
|
+
* Sibling vocabularies this one's DECLARATIONS come from, as import specifiers.
|
|
431
|
+
*
|
|
432
|
+
* A chain link with no `OWN_PROPS` row is ambiguous on its own — `GtkSeparator` has no
|
|
433
|
+
* settable property, `GApplication` has its properties in another package — and this
|
|
434
|
+
* list is what tells the two apart. Enum and bitfield NUMBERS are not here: those are
|
|
435
|
+
* carried in this file, because a `PROP_ENUMS` row naming a foreign GType gives a
|
|
436
|
+
* consumer nothing to load and a `.ui` file using the property never names its owner.
|
|
437
|
+
*/
|
|
438
|
+
readonly requiredVocabularies: readonly string[];
|
|
376
439
|
};
|
|
377
440
|
|
|
378
441
|
/** Declaration GType -> its own settable properties, as GObject registered them. */
|
|
@@ -386,7 +449,17 @@ export const OWN_PROPS: Readonly<Record<string, readonly string[]>>;
|
|
|
386
449
|
*/
|
|
387
450
|
export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
|
|
388
451
|
|
|
389
|
-
/**
|
|
452
|
+
/**
|
|
453
|
+
* Instantiable GType -> every declaration its members come from, self first.
|
|
454
|
+
*
|
|
455
|
+
* The key set is what a UI description file can NAME: every registered, non-abstract
|
|
456
|
+
* class this namespace declares. GtkBuilder resolves a `<object class="…">` through
|
|
457
|
+
* `g_type_from_name`, which knows nothing about widgets, so this is wider than
|
|
458
|
+
* `Widgets` by design — `GtkSizeGroup`, `GtkTextTag`, every `GtkEventController`
|
|
459
|
+
* and every `GtkCellRenderer` are here and are not widgets.
|
|
460
|
+
*
|
|
461
|
+
* `Widgets` and `CHILD_HOLDERS` are the narrower questions and answer them unchanged.
|
|
462
|
+
*/
|
|
390
463
|
export const DECLS: Readonly<Record<string, readonly string[]>>;
|
|
391
464
|
|
|
392
465
|
/** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
|
|
@@ -398,8 +471,8 @@ export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
|
|
|
398
471
|
/**
|
|
399
472
|
* `<enum GType>.<nick>` -> the integer GObject registers for it, from GIR's `value`.
|
|
400
473
|
*
|
|
401
|
-
* Position in `ENUM_NICKS` is NOT this number. Counting is wrong on 6 of the
|
|
402
|
-
* GTK 4 vocabulary carries --
|
|
474
|
+
* Position in `ENUM_NICKS` is NOT this number. Counting is wrong on 6 of the 137 enums a
|
|
475
|
+
* GTK 4 vocabulary carries -- 112 in Gtk-4.0 and 25 in Adw-1: `GtkResponseType` runs -1 to -11, `GtkTextWindowType` starts
|
|
403
476
|
* at 1, `GtkOrdering` and `GtkConstraintRelation` are -1/0/1, `GtkAlign` has two names
|
|
404
477
|
* on one value, and `GtkConstraintStrength.required` is 1001001000 where counting says 0.
|
|
405
478
|
*
|
|
@@ -437,10 +510,11 @@ export const ENUM_VALUES_UNREADABLE: Readonly<Record<string, string>>;
|
|
|
437
510
|
*
|
|
438
511
|
* `ENUM_NICKS` carries no bitfield, because GObject cannot resolve a nick SET; that says
|
|
439
512
|
* nothing about a single member's number, and the number is what a host without GI needs.
|
|
440
|
-
*
|
|
441
|
-
*
|
|
442
|
-
* among them. Counting is worst here:
|
|
443
|
-
*
|
|
513
|
+
* 23 settable properties in Gtk-4.0 and Adw-1 are bitfield-typed and are declared bare
|
|
514
|
+
* `number` -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`, `AdwTabView:shortcuts`,
|
|
515
|
+
* `GtkDropTarget:actions` among them. Counting is worst here: 119 of the 156 Gtk-4.0
|
|
516
|
+
* bitfield members this vocabulary carries disagree with their declaration position,
|
|
517
|
+
* against 29 of 672 enumeration members.
|
|
444
518
|
*
|
|
445
519
|
* Combine with `|` as GObject does. There is no nick table to pair this with, so a name
|
|
446
520
|
* here is resolvable and a SET still is not.
|
|
@@ -464,7 +538,7 @@ export const FLAG_VALUES_UNREADABLE: Readonly<Record<string, string>>;
|
|
|
464
538
|
*
|
|
465
539
|
* The GType named here is not always one THIS module gives numbers for. A nick vocabulary is
|
|
466
540
|
* emitted once, by the namespace that owns the enum, so `AdwComboRow.search-match-mode` names
|
|
467
|
-
* `GtkStringFilterMatchMode` and its rows are in `@girs/gtk-4.0/vocabulary` —
|
|
541
|
+
* `GtkStringFilterMatchMode` and its rows are in `@girs/gtk-4.0/vocabulary` — 83 of the 909
|
|
468
542
|
* entries in a full run resolve only with the owner's vocabulary loaded beside this one. An
|
|
469
543
|
* owner with no vocabulary of its own (Gdk, Pango) is inlined here instead, so every entry
|
|
470
544
|
* resolves against SOME module.
|
package/gdl-3-vocabulary.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// The widget vocabulary of Gdl-3 as runtime data.
|
|
2
2
|
//
|
|
3
|
-
// GENERATED — do not edit. Provenance: Gdl-3 — dropped empty base(s):
|
|
3
|
+
// GENERATED — do not edit. Provenance: Gdl-3 — dropped empty base(s): Atk.ImplementorIface — prop(s) no TypeScript value satisfies: Gdl.DockObject.pixbuf-icon
|
|
4
4
|
//
|
|
5
5
|
// The type half of this subpath is the sibling `.d.ts`. This file exists because
|
|
6
6
|
// types are erased: a consumer that wants to ask the installed library whether every
|
|
@@ -11,9 +11,12 @@ export const PROVENANCE = {
|
|
|
11
11
|
version: '3',
|
|
12
12
|
libraryVersion: null,
|
|
13
13
|
childHolders: 0,
|
|
14
|
-
droppedBases: ['
|
|
14
|
+
droppedBases: ['Atk.ImplementorIface'],
|
|
15
15
|
inlinedBases: [],
|
|
16
16
|
unsettableProps: ['Gdl.DockObject.pixbuf-icon'],
|
|
17
|
+
unresolvedProps: [],
|
|
18
|
+
identifierPrefixes: ['Gdl'],
|
|
19
|
+
requiredVocabularies: ['@girs/gobject-2.0/vocabulary', '@girs/gtk-3.0/vocabulary'],
|
|
17
20
|
};
|
|
18
21
|
|
|
19
22
|
export const OWN_PROPS = {
|
|
@@ -21,6 +24,8 @@ export const OWN_PROPS = {
|
|
|
21
24
|
GdlDockBar: ['dockbar-style', 'master'],
|
|
22
25
|
GdlDockItem: ['behavior', 'closed', 'iconified', 'locked', 'orientation', 'preferred-height', 'preferred-width', 'resize'],
|
|
23
26
|
GdlDockItemGrip: ['item'],
|
|
27
|
+
GdlDockLayout: ['master'],
|
|
28
|
+
GdlDockMaster: ['default-title', 'locked', 'switcher-style', 'tab-pos', 'tab-reorderable'],
|
|
24
29
|
GdlDockNotebook: ['page'],
|
|
25
30
|
GdlDockObject: ['long-name', 'master', 'name', 'pixbuf-icon', 'stock-id'],
|
|
26
31
|
GdlDockPaned: ['position'],
|
|
@@ -32,35 +37,49 @@ export const OWN_PROPS = {
|
|
|
32
37
|
export const OWN_SIGNALS = {
|
|
33
38
|
GdlDock: ['layout-changed'],
|
|
34
39
|
GdlDockItem: ['deselected', 'dock-drag-begin', 'dock-drag-end', 'dock-drag-motion', 'move-focus-child', 'selected'],
|
|
40
|
+
GdlDockMaster: ['layout-changed'],
|
|
35
41
|
GdlDockObject: ['detach', 'dock'],
|
|
36
42
|
GdlDockTablabel: ['button-pressed-handle'],
|
|
37
43
|
};
|
|
38
44
|
|
|
45
|
+
// Every GType this namespace can INSTANTIATE -> the declarations its members come from.
|
|
46
|
+
//
|
|
47
|
+
// The key set is what a UI description file can name: a registered, non-abstract class.
|
|
48
|
+
// Not "every widget" — GtkBuilder resolves a name through `g_type_from_name`, which knows
|
|
49
|
+
// nothing about widgets, and a `.ui` file is full of `GtkSizeGroup`, `GtkTextTag`,
|
|
50
|
+
// `GtkEventController*` and `GtkCellRenderer*`. Use `Widgets` and `CHILD_HOLDERS`
|
|
51
|
+
// below for the narrower questions; they did not move.
|
|
39
52
|
export const DECLS = {
|
|
40
|
-
GdlDock: ['GdlDock', 'GdlDockObject', 'GtkContainer', 'GtkWidget', 'GtkBuildable'],
|
|
41
|
-
GdlDockBar: ['GdlDockBar', 'GtkBox', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkOrientable'],
|
|
42
|
-
GdlDockItem: ['GdlDockItem', 'GdlDockObject', 'GtkContainer', 'GtkWidget', 'GtkBuildable'],
|
|
43
|
-
GdlDockItemButtonImage: ['GdlDockItemButtonImage', 'GtkWidget', 'GtkBuildable'],
|
|
44
|
-
GdlDockItemGrip: ['GdlDockItemGrip', 'GtkContainer', 'GtkWidget', 'GtkBuildable'],
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
53
|
+
GdlDock: ['GdlDock', 'GdlDockObject', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable'],
|
|
54
|
+
GdlDockBar: ['GdlDockBar', 'GtkBox', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkOrientable'],
|
|
55
|
+
GdlDockItem: ['GdlDockItem', 'GdlDockObject', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable'],
|
|
56
|
+
GdlDockItemButtonImage: ['GdlDockItemButtonImage', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable'],
|
|
57
|
+
GdlDockItemGrip: ['GdlDockItemGrip', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable'],
|
|
58
|
+
GdlDockLayout: ['GdlDockLayout', 'GObject'],
|
|
59
|
+
GdlDockMaster: ['GdlDockMaster', 'GObject'],
|
|
60
|
+
GdlDockNotebook: ['GdlDockNotebook', 'GdlDockItem', 'GdlDockObject', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable'],
|
|
61
|
+
GdlDockObject: ['GdlDockObject', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable'],
|
|
62
|
+
GdlDockPaned: ['GdlDockPaned', 'GdlDockItem', 'GdlDockObject', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable'],
|
|
63
|
+
GdlDockParam: ['GdlDockParam'],
|
|
64
|
+
GdlDockPlaceholder: ['GdlDockPlaceholder', 'GdlDockObject', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable'],
|
|
65
|
+
GdlDockTablabel: ['GdlDockTablabel', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable'],
|
|
66
|
+
GdlPreviewWindow: ['GdlPreviewWindow', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable'],
|
|
67
|
+
GdlSwitcher: ['GdlSwitcher', 'GtkNotebook', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable'],
|
|
52
68
|
};
|
|
53
69
|
|
|
54
|
-
// The GTypes above that are
|
|
55
|
-
//
|
|
56
|
-
//
|
|
57
|
-
//
|
|
70
|
+
// The GTypes above that ARE widgets are the `Widgets` map in the sibling `.d.ts`; these
|
|
71
|
+
// are the ones that merely HOLD one, through `set_child`/`get_child`, descending from
|
|
72
|
+
// `GObject.Object`. A renderer places them like a container; a check asking "is this a
|
|
73
|
+
// widget" must not count them. Derived from the accessor pair, never from a list — the
|
|
74
|
+
// count is in the provenance line above.
|
|
58
75
|
export const CHILD_HOLDERS = [];
|
|
59
76
|
|
|
60
77
|
export const ENUM_NICKS = {
|
|
61
78
|
GdlDockBarStyle: ['icons', 'text', 'both', 'auto'],
|
|
62
79
|
GdlDockPlacement: ['none', 'top', 'bottom', 'right', 'left', 'center', 'floating'],
|
|
63
80
|
GdlSwitcherStyle: ['text', 'icon', 'both', 'toolbar', 'tabs', 'none'],
|
|
81
|
+
GtkOrientation: ['horizontal', 'vertical'],
|
|
82
|
+
GtkPositionType: ['left', 'right', 'top', 'bottom'],
|
|
64
83
|
};
|
|
65
84
|
|
|
66
85
|
// The number behind each of those nicks, read from GIR's own `value` attribute.
|
|
@@ -68,7 +87,7 @@ export const ENUM_NICKS = {
|
|
|
68
87
|
// It ships because position in `ENUM_NICKS` is not the value and a consumer with no
|
|
69
88
|
// typelib has no other way to learn it: a surface without GI still has to hand GObject an
|
|
70
89
|
// integer. The alternative a consumer reaches for first is counting, and counting is wrong
|
|
71
|
-
// on 6 of the
|
|
90
|
+
// on 6 of the 137 enums a GTK 4 vocabulary carries (112 in Gtk-4.0, 25 in Adw-1) --
|
|
72
91
|
// `GtkResponseType` runs -1 down to
|
|
73
92
|
// -11, `GtkTextWindowType` starts at 1, and `GtkConstraintStrength.required` is
|
|
74
93
|
// 1001001000 where counting answers 0.
|
|
@@ -95,6 +114,12 @@ export const ENUM_VALUES = {
|
|
|
95
114
|
'GdlSwitcherStyle.tabs': 4,
|
|
96
115
|
'GdlSwitcherStyle.text': 0,
|
|
97
116
|
'GdlSwitcherStyle.toolbar': 3,
|
|
117
|
+
'GtkOrientation.horizontal': 0,
|
|
118
|
+
'GtkOrientation.vertical': 1,
|
|
119
|
+
'GtkPositionType.bottom': 3,
|
|
120
|
+
'GtkPositionType.left': 0,
|
|
121
|
+
'GtkPositionType.right': 1,
|
|
122
|
+
'GtkPositionType.top': 2,
|
|
98
123
|
};
|
|
99
124
|
|
|
100
125
|
// The nicks GIR marks `deprecated="1"`.
|
|
@@ -123,11 +148,12 @@ export const ENUM_VALUES_UNREADABLE = {};
|
|
|
123
148
|
// The number behind each member of a registered BITFIELD, keyed the same way.
|
|
124
149
|
//
|
|
125
150
|
// `ENUM_NICKS` refuses a bitfield because GObject cannot resolve a nick SET, and that
|
|
126
|
-
// reason says nothing about one member's number.
|
|
127
|
-
//
|
|
128
|
-
// `AdwTabView:shortcuts`, ... -- and they are typed bare
|
|
129
|
-
// has nothing to compute one from. Counting is worst
|
|
130
|
-
//
|
|
151
|
+
// reason says nothing about one member's number. 23 settable properties in Gtk-4.0 and
|
|
152
|
+
// Adw-1 are bitfield-typed -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`,
|
|
153
|
+
// `AdwTabView:shortcuts`, `GtkDropTarget:actions`, ... -- and they are typed bare
|
|
154
|
+
// `number`, so a host without GI has nothing to compute one from. Counting is worst
|
|
155
|
+
// exactly here: 119 of the 156 Gtk-4.0 bitfield members this vocabulary carries disagree
|
|
156
|
+
// with their declaration position, against 29 of 672 enumeration members.
|
|
131
157
|
//
|
|
132
158
|
// A table of its own rather than more rows in `ENUM_VALUES`, so that "every nick in
|
|
133
159
|
// `ENUM_NICKS` has a number or a declared reason" stays a claim about one set.
|
|
@@ -174,12 +200,14 @@ export const FLAG_VALUES_UNREADABLE = {};
|
|
|
174
200
|
// one are both entries a consumer would resolve wrongly, so neither is written.
|
|
175
201
|
//
|
|
176
202
|
// A GType named here has numbers in SOME vocabulary, not necessarily this one: the namespace
|
|
177
|
-
// that OWNS an enum publishes it, so
|
|
203
|
+
// that OWNS an enum publishes it, so 83 of the 909 entries a full run emits want the owner's
|
|
178
204
|
// vocabulary loaded too. Owners that emit none (Gdk, Pango) are inlined into the tables above.
|
|
179
205
|
export const PROP_ENUMS = {
|
|
180
206
|
'GdlDockBar.dockbar-style': 'GdlDockBarStyle',
|
|
181
207
|
'GdlDockItem.behavior': 'GdlDockItemBehavior',
|
|
182
208
|
'GdlDockItem.orientation': 'GtkOrientation',
|
|
209
|
+
'GdlDockMaster.switcher-style': 'GdlSwitcherStyle',
|
|
210
|
+
'GdlDockMaster.tab-pos': 'GtkPositionType',
|
|
183
211
|
'GdlDockPlaceholder.next-placement': 'GdlDockPlacement',
|
|
184
212
|
'GdlSwitcher.switcher-style': 'GdlSwitcherStyle',
|
|
185
213
|
'GdlSwitcher.tab-pos': 'GtkPositionType',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gdl-3",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Gdl-3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gdl-3.js",
|
|
@@ -36,20 +36,20 @@
|
|
|
36
36
|
"test": "tsc --project tsconfig.json"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@girs/gjs": "^5.
|
|
40
|
-
"@girs/gtk-3.0": "^5.
|
|
41
|
-
"@girs/xlib-2.0": "^5.
|
|
42
|
-
"@girs/gdk-3.0": "^5.
|
|
43
|
-
"@girs/cairo-1.0": "^5.
|
|
44
|
-
"@girs/gobject-2.0": "^5.
|
|
45
|
-
"@girs/glib-2.0": "^5.
|
|
46
|
-
"@girs/pango-1.0": "^5.
|
|
47
|
-
"@girs/harfbuzz-0.0": "^5.
|
|
48
|
-
"@girs/freetype2-2.0": "^5.
|
|
49
|
-
"@girs/gio-2.0": "^5.
|
|
50
|
-
"@girs/gmodule-2.0": "^5.
|
|
51
|
-
"@girs/gdkpixbuf-2.0": "^5.
|
|
52
|
-
"@girs/atk-1.0": "^5.
|
|
39
|
+
"@girs/gjs": "^5.3.0",
|
|
40
|
+
"@girs/gtk-3.0": "^5.3.0",
|
|
41
|
+
"@girs/xlib-2.0": "^5.3.0",
|
|
42
|
+
"@girs/gdk-3.0": "^5.3.0",
|
|
43
|
+
"@girs/cairo-1.0": "^5.3.0",
|
|
44
|
+
"@girs/gobject-2.0": "^5.3.0",
|
|
45
|
+
"@girs/glib-2.0": "^5.3.0",
|
|
46
|
+
"@girs/pango-1.0": "^5.3.0",
|
|
47
|
+
"@girs/harfbuzz-0.0": "^5.3.0",
|
|
48
|
+
"@girs/freetype2-2.0": "^5.3.0",
|
|
49
|
+
"@girs/gio-2.0": "^5.3.0",
|
|
50
|
+
"@girs/gmodule-2.0": "^5.3.0",
|
|
51
|
+
"@girs/gdkpixbuf-2.0": "^5.3.0",
|
|
52
|
+
"@girs/atk-1.0": "^5.3.0" },
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"typescript": "*"
|
|
55
55
|
},
|