@girs/xed-1.0 5.1.0 → 5.2.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/package.json +16 -16
- package/xed-1.0-vocabulary.d.ts +114 -13
- package/xed-1.0-vocabulary.js +57 -15
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|

|
|
5
5
|

|
|
6
6
|
|
|
7
|
-
GJS TypeScript type definitions for Xed-1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.
|
|
7
|
+
GJS TypeScript type definitions for Xed-1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.2.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/xed-1.0",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Xed-1.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "xed-1.0.js",
|
|
@@ -36,21 +36,21 @@
|
|
|
36
36
|
"test": "tsc --project tsconfig.json"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@girs/gjs": "^5.
|
|
40
|
-
"@girs/gtksource-4": "^5.
|
|
41
|
-
"@girs/gtk-3.0": "^5.
|
|
42
|
-
"@girs/xlib-2.0": "^5.
|
|
43
|
-
"@girs/gdk-3.0": "^5.
|
|
44
|
-
"@girs/cairo-1.0": "^5.
|
|
45
|
-
"@girs/gobject-2.0": "^5.
|
|
46
|
-
"@girs/glib-2.0": "^5.
|
|
47
|
-
"@girs/pango-1.0": "^5.
|
|
48
|
-
"@girs/harfbuzz-0.0": "^5.
|
|
49
|
-
"@girs/freetype2-2.0": "^5.
|
|
50
|
-
"@girs/gio-2.0": "^5.
|
|
51
|
-
"@girs/gmodule-2.0": "^5.
|
|
52
|
-
"@girs/gdkpixbuf-2.0": "^5.
|
|
53
|
-
"@girs/atk-1.0": "^5.
|
|
39
|
+
"@girs/gjs": "^5.2.0",
|
|
40
|
+
"@girs/gtksource-4": "^5.2.0",
|
|
41
|
+
"@girs/gtk-3.0": "^5.2.0",
|
|
42
|
+
"@girs/xlib-2.0": "^5.2.0",
|
|
43
|
+
"@girs/gdk-3.0": "^5.2.0",
|
|
44
|
+
"@girs/cairo-1.0": "^5.2.0",
|
|
45
|
+
"@girs/gobject-2.0": "^5.2.0",
|
|
46
|
+
"@girs/glib-2.0": "^5.2.0",
|
|
47
|
+
"@girs/pango-1.0": "^5.2.0",
|
|
48
|
+
"@girs/harfbuzz-0.0": "^5.2.0",
|
|
49
|
+
"@girs/freetype2-2.0": "^5.2.0",
|
|
50
|
+
"@girs/gio-2.0": "^5.2.0",
|
|
51
|
+
"@girs/gmodule-2.0": "^5.2.0",
|
|
52
|
+
"@girs/gdkpixbuf-2.0": "^5.2.0",
|
|
53
|
+
"@girs/atk-1.0": "^5.2.0" },
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"typescript": "*"
|
|
56
56
|
},
|
package/xed-1.0-vocabulary.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The GIR-derived widget VOCABULARY for Xed-1.0.
|
|
3
3
|
*
|
|
4
|
-
* GENERATED — do not edit. Provenance: Xed-1.0 — dropped empty base(s): GObject.
|
|
4
|
+
* GENERATED — do not edit. Provenance: Xed-1.0 — dropped empty base(s): GObject.Object Gio.ActionGroup Gio.ActionMap GObject.InitiallyUnowned Atk.ImplementorIface — inlined base(s) their owner's vocabulary does not emit: Gio.Application
|
|
5
5
|
*
|
|
6
|
-
* 10 concrete widgets,
|
|
6
|
+
* 14 instantiable GTypes (of which 10 concrete widgets), 15 declarations (1 inlined from a namespace whose vocabulary does not emit them), 2 enum nick unions, 2 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
|
|
@@ -24,10 +24,11 @@
|
|
|
24
24
|
* and the `notify::` keys folded in, is what `Widgets[G]['signals']` points at.
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
|
+
import type Gio from '@girs/gio-2.0';
|
|
27
28
|
import type Gtk from '@girs/gtk-3.0';
|
|
28
29
|
import type Xed from './xed-1.0.js';
|
|
29
|
-
import type { GtkApplicationWindowConstructOnly, GtkApplicationWindowProps, GtkBinConstructOnly, GtkBinProps, GtkBoxConstructOnly, GtkBoxProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkCellEditableConstructOnly, GtkCellEditableProps, GtkCellLayoutConstructOnly, GtkCellLayoutProps, GtkComboBoxConstructOnly, GtkComboBoxProps, GtkContainerConstructOnly, GtkContainerProps, GtkDialogConstructOnly, GtkDialogProps, GtkFileChooserConstructOnly, GtkFileChooserDialogConstructOnly, GtkFileChooserDialogProps, GtkFileChooserProps, GtkInfoBarConstructOnly, GtkInfoBarProps, GtkNotebookConstructOnly, GtkNotebookProps, GtkOrientableConstructOnly, GtkOrientableProps, GtkOrientationNick, GtkScrollableConstructOnly, GtkScrollableProps, GtkStatusbarConstructOnly, GtkStatusbarProps, GtkTextViewConstructOnly, GtkTextViewProps, GtkWidgetConstructOnly, GtkWidgetProps, GtkWindowConstructOnly, GtkWindowProps } from '@girs/gtk-3.0/vocabulary';
|
|
30
|
-
import type { GtkSourceViewConstructOnly, GtkSourceViewProps } from '@girs/gtksource-4/vocabulary';
|
|
30
|
+
import type { GtkApplicationConstructOnly, GtkApplicationProps, GtkApplicationWindowConstructOnly, GtkApplicationWindowProps, GtkBinConstructOnly, GtkBinProps, GtkBoxConstructOnly, GtkBoxProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkCellEditableConstructOnly, GtkCellEditableProps, GtkCellLayoutConstructOnly, GtkCellLayoutProps, GtkComboBoxConstructOnly, GtkComboBoxProps, GtkContainerConstructOnly, GtkContainerProps, GtkDialogConstructOnly, GtkDialogProps, GtkFileChooserConstructOnly, GtkFileChooserDialogConstructOnly, GtkFileChooserDialogProps, GtkFileChooserProps, GtkInfoBarConstructOnly, GtkInfoBarProps, GtkNotebookConstructOnly, GtkNotebookProps, GtkOrientableConstructOnly, GtkOrientableProps, GtkOrientationNick, GtkScrollableConstructOnly, GtkScrollableProps, GtkStatusbarConstructOnly, GtkStatusbarProps, GtkTextBufferConstructOnly, GtkTextBufferProps, GtkTextViewConstructOnly, GtkTextViewProps, GtkWidgetConstructOnly, GtkWidgetProps, GtkWindowConstructOnly, GtkWindowProps } from '@girs/gtk-3.0/vocabulary';
|
|
31
|
+
import type { GtkSourceBufferConstructOnly, GtkSourceBufferProps, GtkSourceViewConstructOnly, GtkSourceViewProps } from '@girs/gtksource-4/vocabulary';
|
|
31
32
|
|
|
32
33
|
// ---------------------------------------------------------------------------
|
|
33
34
|
// Enum nicks — the string vocabulary GObject registered, from GIR's `glib:nick`.
|
|
@@ -52,6 +53,73 @@ export type XedTabStateNick = 'state-normal' | 'state-loading' | 'state-revertin
|
|
|
52
53
|
// GIR keeps them once, on the interface.
|
|
53
54
|
// ---------------------------------------------------------------------------
|
|
54
55
|
|
|
56
|
+
/** `GApplication` is the core class for application support. */
|
|
57
|
+
export interface GApplicationProps {
|
|
58
|
+
/**
|
|
59
|
+
* The group of actions that the application exports.
|
|
60
|
+
* @since 2.28
|
|
61
|
+
* @deprecated since 2.32: Use the [iface@Gio.ActionMap] interface instead.
|
|
62
|
+
*/
|
|
63
|
+
'action-group'?: Gio.ActionGroup;
|
|
64
|
+
/**
|
|
65
|
+
* The unique identifier for the application.
|
|
66
|
+
* @since 2.28
|
|
67
|
+
* @default NULL
|
|
68
|
+
*/
|
|
69
|
+
'application-id'?: string | null;
|
|
70
|
+
/**
|
|
71
|
+
* Flags specifying the behaviour of the application.
|
|
72
|
+
* @since 2.28
|
|
73
|
+
* @default G_APPLICATION_FLAGS_NONE
|
|
74
|
+
*/
|
|
75
|
+
flags?: number;
|
|
76
|
+
/**
|
|
77
|
+
* Time (in milliseconds) to stay alive after becoming idle.
|
|
78
|
+
* @since 2.28
|
|
79
|
+
* @default 0
|
|
80
|
+
*/
|
|
81
|
+
'inactivity-timeout'?: number;
|
|
82
|
+
/**
|
|
83
|
+
* The base resource path for the application.
|
|
84
|
+
* @since 2.28
|
|
85
|
+
* @default NULL
|
|
86
|
+
*/
|
|
87
|
+
'resource-base-path'?: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* The human-readable version number of the application.
|
|
90
|
+
* @since 2.80
|
|
91
|
+
* @default NULL
|
|
92
|
+
*/
|
|
93
|
+
version?: string | null;
|
|
94
|
+
}
|
|
95
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
96
|
+
export type GApplicationConstructOnly = never;
|
|
97
|
+
|
|
98
|
+
export interface XedAppProps extends GtkApplicationProps {
|
|
99
|
+
}
|
|
100
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
101
|
+
export type XedAppConstructOnly = GtkApplicationConstructOnly;
|
|
102
|
+
|
|
103
|
+
export interface XedDocumentProps extends GtkSourceBufferProps {
|
|
104
|
+
/**
|
|
105
|
+
* The documents content type.
|
|
106
|
+
* @default NULL
|
|
107
|
+
*/
|
|
108
|
+
'content-type'?: string;
|
|
109
|
+
/**
|
|
110
|
+
* The documents short name.
|
|
111
|
+
* @default NULL
|
|
112
|
+
*/
|
|
113
|
+
shortname?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Whether to use GVFS metadata.
|
|
116
|
+
* @default TRUE
|
|
117
|
+
*/
|
|
118
|
+
'use-gvfs-metadata'?: boolean;
|
|
119
|
+
}
|
|
120
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
121
|
+
export type XedDocumentConstructOnly = GtkSourceBufferConstructOnly | 'use-gvfs-metadata';
|
|
122
|
+
|
|
55
123
|
export interface XedEncodingsComboBoxProps extends GtkComboBoxProps, GtkBuildableProps, GtkCellEditableProps, GtkCellLayoutProps {
|
|
56
124
|
/** @default FALSE */
|
|
57
125
|
'save-mode'?: boolean;
|
|
@@ -64,6 +132,17 @@ export interface XedFileChooserDialogProps extends GtkFileChooserDialogProps, Gt
|
|
|
64
132
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
65
133
|
export type XedFileChooserDialogConstructOnly = GtkFileChooserDialogConstructOnly | GtkBuildableConstructOnly | GtkFileChooserConstructOnly;
|
|
66
134
|
|
|
135
|
+
export interface XedMessageProps {
|
|
136
|
+
type?: Xed.MessageType;
|
|
137
|
+
}
|
|
138
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
139
|
+
export type XedMessageConstructOnly = 'type';
|
|
140
|
+
|
|
141
|
+
export interface XedMessageBusProps {
|
|
142
|
+
}
|
|
143
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
144
|
+
export type XedMessageBusConstructOnly = never;
|
|
145
|
+
|
|
67
146
|
export interface XedNotebookProps extends GtkNotebookProps, GtkBuildableProps {
|
|
68
147
|
}
|
|
69
148
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
@@ -204,7 +283,11 @@ export interface Widgets {
|
|
|
204
283
|
};
|
|
205
284
|
}
|
|
206
285
|
|
|
207
|
-
/**
|
|
286
|
+
/**
|
|
287
|
+
* Every GType this namespace can create AND put on screen. A consumer derives its own
|
|
288
|
+
* tag map. For everything a UI file can instantiate — layout managers, event
|
|
289
|
+
* controllers, cell renderers, `GtkSizeGroup` — read `DECLS` below.
|
|
290
|
+
*/
|
|
208
291
|
export type WidgetGType = keyof Widgets;
|
|
209
292
|
|
|
210
293
|
// ---------------------------------------------------------------------------
|
|
@@ -256,7 +339,14 @@ export const PROVENANCE: {
|
|
|
256
339
|
readonly childHolders: number;
|
|
257
340
|
readonly droppedBases: readonly string[];
|
|
258
341
|
readonly inlinedBases: readonly string[];
|
|
342
|
+
/** `<decl>.<prop>` for every property printed `never` because TypeScript has no value for it. */
|
|
259
343
|
readonly unsettableProps: readonly string[];
|
|
344
|
+
/**
|
|
345
|
+
* `<decl>.<prop>: <Ns>.<Name>` for every property printed `never` because the model
|
|
346
|
+
* could not resolve its type across a namespace boundary — two independently released
|
|
347
|
+
* GIRs disagreeing, which is what the main emitter answers `never` for as well.
|
|
348
|
+
*/
|
|
349
|
+
readonly unresolvedProps: readonly string[];
|
|
260
350
|
};
|
|
261
351
|
|
|
262
352
|
/** Declaration GType -> its own settable properties, as GObject registered them. */
|
|
@@ -270,7 +360,17 @@ export const OWN_PROPS: Readonly<Record<string, readonly string[]>>;
|
|
|
270
360
|
*/
|
|
271
361
|
export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
|
|
272
362
|
|
|
273
|
-
/**
|
|
363
|
+
/**
|
|
364
|
+
* Instantiable GType -> every declaration its members come from, self first.
|
|
365
|
+
*
|
|
366
|
+
* The key set is what a UI description file can NAME: every registered, non-abstract
|
|
367
|
+
* class this namespace declares. GtkBuilder resolves a `<object class="…">` through
|
|
368
|
+
* `g_type_from_name`, which knows nothing about widgets, so this is wider than
|
|
369
|
+
* `Widgets` by design — `GtkSizeGroup`, `GtkTextTag`, every `GtkEventController`
|
|
370
|
+
* and every `GtkCellRenderer` are here and are not widgets.
|
|
371
|
+
*
|
|
372
|
+
* `Widgets` and `CHILD_HOLDERS` are the narrower questions and answer them unchanged.
|
|
373
|
+
*/
|
|
274
374
|
export const DECLS: Readonly<Record<string, readonly string[]>>;
|
|
275
375
|
|
|
276
376
|
/** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
|
|
@@ -282,8 +382,8 @@ export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
|
|
|
282
382
|
/**
|
|
283
383
|
* `<enum GType>.<nick>` -> the integer GObject registers for it, from GIR's `value`.
|
|
284
384
|
*
|
|
285
|
-
* Position in `ENUM_NICKS` is NOT this number. Counting is wrong on 6 of the
|
|
286
|
-
* GTK 4 vocabulary carries --
|
|
385
|
+
* Position in `ENUM_NICKS` is NOT this number. Counting is wrong on 6 of the 137 enums a
|
|
386
|
+
* GTK 4 vocabulary carries -- 112 in Gtk-4.0 and 25 in Adw-1: `GtkResponseType` runs -1 to -11, `GtkTextWindowType` starts
|
|
287
387
|
* at 1, `GtkOrdering` and `GtkConstraintRelation` are -1/0/1, `GtkAlign` has two names
|
|
288
388
|
* on one value, and `GtkConstraintStrength.required` is 1001001000 where counting says 0.
|
|
289
389
|
*
|
|
@@ -321,10 +421,11 @@ export const ENUM_VALUES_UNREADABLE: Readonly<Record<string, string>>;
|
|
|
321
421
|
*
|
|
322
422
|
* `ENUM_NICKS` carries no bitfield, because GObject cannot resolve a nick SET; that says
|
|
323
423
|
* nothing about a single member's number, and the number is what a host without GI needs.
|
|
324
|
-
*
|
|
325
|
-
*
|
|
326
|
-
* among them. Counting is worst here:
|
|
327
|
-
*
|
|
424
|
+
* 23 settable properties in Gtk-4.0 and Adw-1 are bitfield-typed and are declared bare
|
|
425
|
+
* `number` -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`, `AdwTabView:shortcuts`,
|
|
426
|
+
* `GtkDropTarget:actions` among them. Counting is worst here: 119 of the 156 Gtk-4.0
|
|
427
|
+
* bitfield members this vocabulary carries disagree with their declaration position,
|
|
428
|
+
* against 29 of 672 enumeration members.
|
|
328
429
|
*
|
|
329
430
|
* Combine with `|` as GObject does. There is no nick table to pair this with, so a name
|
|
330
431
|
* here is resolvable and a SET still is not.
|
|
@@ -348,7 +449,7 @@ export const FLAG_VALUES_UNREADABLE: Readonly<Record<string, string>>;
|
|
|
348
449
|
*
|
|
349
450
|
* The GType named here is not always one THIS module gives numbers for. A nick vocabulary is
|
|
350
451
|
* emitted once, by the namespace that owns the enum, so `AdwComboRow.search-match-mode` names
|
|
351
|
-
* `GtkStringFilterMatchMode` and its rows are in `@girs/gtk-4.0/vocabulary` —
|
|
452
|
+
* `GtkStringFilterMatchMode` and its rows are in `@girs/gtk-4.0/vocabulary` — 83 of the 909
|
|
352
453
|
* entries in a full run resolve only with the owner's vocabulary loaded beside this one. An
|
|
353
454
|
* owner with no vocabulary of its own (Gdk, Pango) is inlined here instead, so every entry
|
|
354
455
|
* resolves against SOME module.
|
package/xed-1.0-vocabulary.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// The widget vocabulary of Xed-1.0 as runtime data.
|
|
2
2
|
//
|
|
3
|
-
// GENERATED — do not edit. Provenance: Xed-1.0 — dropped empty base(s): GObject.
|
|
3
|
+
// GENERATED — do not edit. Provenance: Xed-1.0 — dropped empty base(s): GObject.Object Gio.ActionGroup Gio.ActionMap GObject.InitiallyUnowned Atk.ImplementorIface — inlined base(s) their owner's vocabulary does not emit: Gio.Application
|
|
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,28 +11,46 @@ export const PROVENANCE = {
|
|
|
11
11
|
version: '1.0',
|
|
12
12
|
libraryVersion: null,
|
|
13
13
|
childHolders: 0,
|
|
14
|
-
droppedBases: ['GObject.
|
|
15
|
-
inlinedBases: [],
|
|
14
|
+
droppedBases: ['GObject.Object', 'Gio.ActionGroup', 'Gio.ActionMap', 'GObject.InitiallyUnowned', 'Atk.ImplementorIface'],
|
|
15
|
+
inlinedBases: ['Gio.Application'],
|
|
16
16
|
unsettableProps: [],
|
|
17
|
+
unresolvedProps: [],
|
|
17
18
|
};
|
|
18
19
|
|
|
19
20
|
export const OWN_PROPS = {
|
|
21
|
+
GApplication: ['action-group', 'application-id', 'flags', 'inactivity-timeout', 'resource-base-path', 'version'],
|
|
22
|
+
XedDocument: ['content-type', 'shortname', 'use-gvfs-metadata'],
|
|
20
23
|
XedEncodingsComboBox: ['save-mode'],
|
|
24
|
+
XedMessage: ['type'],
|
|
21
25
|
XedPanel: ['orientation'],
|
|
22
26
|
XedProgressInfoBar: ['has-cancel-button'],
|
|
23
27
|
XedTab: ['autosave', 'autosave-interval'],
|
|
24
28
|
};
|
|
25
29
|
|
|
26
30
|
export const OWN_SIGNALS = {
|
|
31
|
+
GApplication: ['activate', 'command-line', 'handle-local-options', 'name-lost', 'open', 'shutdown', 'startup'],
|
|
32
|
+
XedDocument: ['cursor-moved', 'load', 'loaded', 'save', 'saved'],
|
|
33
|
+
XedMessageBus: ['dispatch', 'registered', 'unregistered'],
|
|
27
34
|
XedNotebook: ['tab-added', 'tab-close-request', 'tab-detached', 'tab-removed', 'tabs-reordered'],
|
|
28
35
|
XedPanel: ['close', 'focus-document', 'item-added', 'item-removed'],
|
|
29
36
|
XedView: ['drop-uris'],
|
|
30
37
|
XedWindow: ['active-tab-changed', 'active-tab-state-changed', 'tab-added', 'tab-removed', 'tabs-reordered'],
|
|
31
38
|
};
|
|
32
39
|
|
|
40
|
+
// Every GType this namespace can INSTANTIATE -> the declarations its members come from.
|
|
41
|
+
//
|
|
42
|
+
// The key set is what a UI description file can name: a registered, non-abstract class.
|
|
43
|
+
// Not "every widget" — GtkBuilder resolves a name through `g_type_from_name`, which knows
|
|
44
|
+
// nothing about widgets, and a `.ui` file is full of `GtkSizeGroup`, `GtkTextTag`,
|
|
45
|
+
// `GtkEventController*` and `GtkCellRenderer*`. Use `Widgets` and `CHILD_HOLDERS`
|
|
46
|
+
// below for the narrower questions; they did not move.
|
|
33
47
|
export const DECLS = {
|
|
48
|
+
XedApp: ['XedApp', 'GtkApplication', 'GApplication'],
|
|
49
|
+
XedDocument: ['XedDocument', 'GtkSourceBuffer', 'GtkTextBuffer'],
|
|
34
50
|
XedEncodingsComboBox: ['XedEncodingsComboBox', 'GtkComboBox', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkCellEditable', 'GtkCellLayout'],
|
|
35
51
|
XedFileChooserDialog: ['XedFileChooserDialog', 'GtkFileChooserDialog', 'GtkDialog', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkFileChooser'],
|
|
52
|
+
XedMessage: ['XedMessage'],
|
|
53
|
+
XedMessageBus: ['XedMessageBus'],
|
|
36
54
|
XedNotebook: ['XedNotebook', 'GtkNotebook', 'GtkContainer', 'GtkWidget', 'GtkBuildable'],
|
|
37
55
|
XedPanel: ['XedPanel', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable'],
|
|
38
56
|
XedProgressInfoBar: ['XedProgressInfoBar', 'GtkInfoBar', 'GtkBox', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkOrientable'],
|
|
@@ -43,10 +61,11 @@ export const DECLS = {
|
|
|
43
61
|
XedWindow: ['XedWindow', 'GtkApplicationWindow', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable'],
|
|
44
62
|
};
|
|
45
63
|
|
|
46
|
-
// The GTypes above that are
|
|
47
|
-
//
|
|
48
|
-
//
|
|
49
|
-
//
|
|
64
|
+
// The GTypes above that ARE widgets are the `Widgets` map in the sibling `.d.ts`; these
|
|
65
|
+
// are the ones that merely HOLD one, through `set_child`/`get_child`, descending from
|
|
66
|
+
// `GObject.Object`. A renderer places them like a container; a check asking "is this a
|
|
67
|
+
// widget" must not count them. Derived from the accessor pair, never from a list — the
|
|
68
|
+
// count is in the provenance line above.
|
|
50
69
|
export const CHILD_HOLDERS = [];
|
|
51
70
|
|
|
52
71
|
export const ENUM_NICKS = {
|
|
@@ -59,7 +78,7 @@ export const ENUM_NICKS = {
|
|
|
59
78
|
// It ships because position in `ENUM_NICKS` is not the value and a consumer with no
|
|
60
79
|
// typelib has no other way to learn it: a surface without GI still has to hand GObject an
|
|
61
80
|
// integer. The alternative a consumer reaches for first is counting, and counting is wrong
|
|
62
|
-
// on 6 of the
|
|
81
|
+
// on 6 of the 137 enums a GTK 4 vocabulary carries (112 in Gtk-4.0, 25 in Adw-1) --
|
|
63
82
|
// `GtkResponseType` runs -1 down to
|
|
64
83
|
// -11, `GtkTextWindowType` starts at 1, and `GtkConstraintStrength.required` is
|
|
65
84
|
// 1001001000 where counting answers 0.
|
|
@@ -114,15 +133,27 @@ export const ENUM_VALUES_UNREADABLE = {};
|
|
|
114
133
|
// The number behind each member of a registered BITFIELD, keyed the same way.
|
|
115
134
|
//
|
|
116
135
|
// `ENUM_NICKS` refuses a bitfield because GObject cannot resolve a nick SET, and that
|
|
117
|
-
// reason says nothing about one member's number.
|
|
118
|
-
//
|
|
119
|
-
// `AdwTabView:shortcuts`, ... -- and they are typed bare
|
|
120
|
-
// has nothing to compute one from. Counting is worst
|
|
121
|
-
//
|
|
136
|
+
// reason says nothing about one member's number. 23 settable properties in Gtk-4.0 and
|
|
137
|
+
// Adw-1 are bitfield-typed -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`,
|
|
138
|
+
// `AdwTabView:shortcuts`, `GtkDropTarget:actions`, ... -- and they are typed bare
|
|
139
|
+
// `number`, so a host without GI has nothing to compute one from. Counting is worst
|
|
140
|
+
// exactly here: 119 of the 156 Gtk-4.0 bitfield members this vocabulary carries disagree
|
|
141
|
+
// with their declaration position, against 29 of 672 enumeration members.
|
|
122
142
|
//
|
|
123
143
|
// A table of its own rather than more rows in `ENUM_VALUES`, so that "every nick in
|
|
124
144
|
// `ENUM_NICKS` has a number or a declared reason" stays a claim about one set.
|
|
125
145
|
export const FLAG_VALUES = {
|
|
146
|
+
'GApplicationFlags.allow-replacement': 128,
|
|
147
|
+
'GApplicationFlags.can-override-app-id': 64,
|
|
148
|
+
'GApplicationFlags.default-flags': 0,
|
|
149
|
+
'GApplicationFlags.flags-none': 0,
|
|
150
|
+
'GApplicationFlags.handles-command-line': 8,
|
|
151
|
+
'GApplicationFlags.handles-open': 4,
|
|
152
|
+
'GApplicationFlags.is-launcher': 2,
|
|
153
|
+
'GApplicationFlags.is-service': 1,
|
|
154
|
+
'GApplicationFlags.non-unique': 32,
|
|
155
|
+
'GApplicationFlags.replace': 256,
|
|
156
|
+
'GApplicationFlags.send-environment': 16,
|
|
126
157
|
'XedDebugSection.debug-app': 256,
|
|
127
158
|
'XedDebugSection.debug-commands': 128,
|
|
128
159
|
'XedDebugSection.debug-document': 64,
|
|
@@ -164,9 +195,10 @@ export const FLAG_VALUES_UNREADABLE = {};
|
|
|
164
195
|
// one are both entries a consumer would resolve wrongly, so neither is written.
|
|
165
196
|
//
|
|
166
197
|
// A GType named here has numbers in SOME vocabulary, not necessarily this one: the namespace
|
|
167
|
-
// that OWNS an enum publishes it, so
|
|
198
|
+
// that OWNS an enum publishes it, so 83 of the 909 entries a full run emits want the owner's
|
|
168
199
|
// vocabulary loaded too. Owners that emit none (Gdk, Pango) are inlined into the tables above.
|
|
169
200
|
export const PROP_ENUMS = {
|
|
201
|
+
'GApplication.flags': 'GApplicationFlags',
|
|
170
202
|
'XedPanel.orientation': 'GtkOrientation',
|
|
171
203
|
};
|
|
172
204
|
|
|
@@ -204,4 +236,14 @@ export const SLOT_CANDIDATES = {
|
|
|
204
236
|
},
|
|
205
237
|
};
|
|
206
238
|
|
|
207
|
-
export const SINCE = {
|
|
239
|
+
export const SINCE = {
|
|
240
|
+
'GApplication': '2.28',
|
|
241
|
+
'GApplication.action-group': '2.28',
|
|
242
|
+
'GApplication.application-id': '2.28',
|
|
243
|
+
'GApplication.flags': '2.28',
|
|
244
|
+
'GApplication.inactivity-timeout': '2.28',
|
|
245
|
+
'GApplication.resource-base-path': '2.28',
|
|
246
|
+
'GApplication.version': '2.80',
|
|
247
|
+
'GApplication::handle-local-options': '2.40',
|
|
248
|
+
'GApplication::name-lost': '2.60',
|
|
249
|
+
};
|