@girs/xreaderview-1.5 5.0.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/xreaderview-1.5-vocabulary.d.ts +168 -11
- package/xreaderview-1.5-vocabulary.js +70 -14
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|

|
|
5
5
|

|
|
6
6
|
|
|
7
|
-
GJS TypeScript type definitions for XreaderView-1.5 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.
|
|
7
|
+
GJS TypeScript type definitions for XreaderView-1.5 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/xreaderview-1.5",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for XreaderView-1.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "xreaderview-1.5.js",
|
|
@@ -36,21 +36,21 @@
|
|
|
36
36
|
"test": "tsc --project tsconfig.json"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@girs/gjs": "^5.
|
|
40
|
-
"@girs/xreaderdocument-1.5": "^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/xreaderdocument-1.5": "^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
|
},
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The GIR-derived widget VOCABULARY for XreaderView-1.5.
|
|
3
3
|
*
|
|
4
|
-
* GENERATED — do not edit. Provenance: XreaderView-1.5 — dropped empty base(s): GObject.
|
|
4
|
+
* GENERATED — do not edit. Provenance: XreaderView-1.5 — dropped empty base(s): GObject.Object GObject.InitiallyUnowned Atk.ImplementorIface
|
|
5
5
|
*
|
|
6
|
-
* 2 concrete widgets,
|
|
6
|
+
* 16 instantiable GTypes (of which 2 concrete widgets), 17 declarations, 4 enum nick unions, 0 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
|
|
@@ -53,6 +53,102 @@ export type EvViewSelectionModeNick = 'text' | 'rectangle';
|
|
|
53
53
|
// GIR keeps them once, on the interface.
|
|
54
54
|
// ---------------------------------------------------------------------------
|
|
55
55
|
|
|
56
|
+
export interface EvDocumentModelProps {
|
|
57
|
+
/** @default TRUE */
|
|
58
|
+
continuous?: boolean;
|
|
59
|
+
document?: XreaderDocument.Document;
|
|
60
|
+
/** @default FALSE */
|
|
61
|
+
'dual-odd-left'?: boolean;
|
|
62
|
+
/** @default FALSE */
|
|
63
|
+
'dual-page'?: boolean;
|
|
64
|
+
/** @default FALSE */
|
|
65
|
+
fullscreen?: boolean;
|
|
66
|
+
/** @default FALSE */
|
|
67
|
+
'inverted-colors'?: boolean;
|
|
68
|
+
/** @default -1 */
|
|
69
|
+
page?: number;
|
|
70
|
+
/** @default 0 */
|
|
71
|
+
rotation?: number;
|
|
72
|
+
/** @default FALSE */
|
|
73
|
+
rtl?: boolean;
|
|
74
|
+
/** @default 1.000000 */
|
|
75
|
+
scale?: number;
|
|
76
|
+
/** @default EV_SIZING_FIT_WIDTH */
|
|
77
|
+
'sizing-mode'?: EvSizingModeNick | XreaderView.SizingMode;
|
|
78
|
+
}
|
|
79
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
80
|
+
export type EvDocumentModelConstructOnly = never;
|
|
81
|
+
|
|
82
|
+
export interface EvJobProps {
|
|
83
|
+
}
|
|
84
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
85
|
+
export type EvJobConstructOnly = never;
|
|
86
|
+
|
|
87
|
+
export interface EvJobAnnotsProps extends EvJobProps {
|
|
88
|
+
}
|
|
89
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
90
|
+
export type EvJobAnnotsConstructOnly = EvJobConstructOnly;
|
|
91
|
+
|
|
92
|
+
export interface EvJobAttachmentsProps extends EvJobProps {
|
|
93
|
+
}
|
|
94
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
95
|
+
export type EvJobAttachmentsConstructOnly = EvJobConstructOnly;
|
|
96
|
+
|
|
97
|
+
export interface EvJobExportProps extends EvJobProps {
|
|
98
|
+
}
|
|
99
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
100
|
+
export type EvJobExportConstructOnly = EvJobConstructOnly;
|
|
101
|
+
|
|
102
|
+
export interface EvJobFindProps extends EvJobProps {
|
|
103
|
+
}
|
|
104
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
105
|
+
export type EvJobFindConstructOnly = EvJobConstructOnly;
|
|
106
|
+
|
|
107
|
+
export interface EvJobFontsProps extends EvJobProps {
|
|
108
|
+
}
|
|
109
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
110
|
+
export type EvJobFontsConstructOnly = EvJobConstructOnly;
|
|
111
|
+
|
|
112
|
+
export interface EvJobLayersProps extends EvJobProps {
|
|
113
|
+
}
|
|
114
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
115
|
+
export type EvJobLayersConstructOnly = EvJobConstructOnly;
|
|
116
|
+
|
|
117
|
+
export interface EvJobLinksProps extends EvJobProps {
|
|
118
|
+
}
|
|
119
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
120
|
+
export type EvJobLinksConstructOnly = EvJobConstructOnly;
|
|
121
|
+
|
|
122
|
+
export interface EvJobLoadProps extends EvJobProps {
|
|
123
|
+
}
|
|
124
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
125
|
+
export type EvJobLoadConstructOnly = EvJobConstructOnly;
|
|
126
|
+
|
|
127
|
+
export interface EvJobPageDataProps extends EvJobProps {
|
|
128
|
+
}
|
|
129
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
130
|
+
export type EvJobPageDataConstructOnly = EvJobConstructOnly;
|
|
131
|
+
|
|
132
|
+
export interface EvJobPrintProps extends EvJobProps {
|
|
133
|
+
}
|
|
134
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
135
|
+
export type EvJobPrintConstructOnly = EvJobConstructOnly;
|
|
136
|
+
|
|
137
|
+
export interface EvJobRenderProps extends EvJobProps {
|
|
138
|
+
}
|
|
139
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
140
|
+
export type EvJobRenderConstructOnly = EvJobConstructOnly;
|
|
141
|
+
|
|
142
|
+
export interface EvJobSaveProps extends EvJobProps {
|
|
143
|
+
}
|
|
144
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
145
|
+
export type EvJobSaveConstructOnly = EvJobConstructOnly;
|
|
146
|
+
|
|
147
|
+
export interface EvJobThumbnailProps extends EvJobProps {
|
|
148
|
+
}
|
|
149
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
150
|
+
export type EvJobThumbnailConstructOnly = EvJobConstructOnly;
|
|
151
|
+
|
|
56
152
|
export interface EvViewProps extends GtkContainerProps, GtkBuildableProps, GtkScrollableProps {
|
|
57
153
|
}
|
|
58
154
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
@@ -102,7 +198,11 @@ export interface Widgets {
|
|
|
102
198
|
};
|
|
103
199
|
}
|
|
104
200
|
|
|
105
|
-
/**
|
|
201
|
+
/**
|
|
202
|
+
* Every GType this namespace can create AND put on screen. A consumer derives its own
|
|
203
|
+
* tag map. For everything a UI file can instantiate — layout managers, event
|
|
204
|
+
* controllers, cell renderers, `GtkSizeGroup` — read `DECLS` below.
|
|
205
|
+
*/
|
|
106
206
|
export type WidgetGType = keyof Widgets;
|
|
107
207
|
|
|
108
208
|
// ---------------------------------------------------------------------------
|
|
@@ -154,7 +254,14 @@ export const PROVENANCE: {
|
|
|
154
254
|
readonly childHolders: number;
|
|
155
255
|
readonly droppedBases: readonly string[];
|
|
156
256
|
readonly inlinedBases: readonly string[];
|
|
257
|
+
/** `<decl>.<prop>` for every property printed `never` because TypeScript has no value for it. */
|
|
157
258
|
readonly unsettableProps: readonly string[];
|
|
259
|
+
/**
|
|
260
|
+
* `<decl>.<prop>: <Ns>.<Name>` for every property printed `never` because the model
|
|
261
|
+
* could not resolve its type across a namespace boundary — two independently released
|
|
262
|
+
* GIRs disagreeing, which is what the main emitter answers `never` for as well.
|
|
263
|
+
*/
|
|
264
|
+
readonly unresolvedProps: readonly string[];
|
|
158
265
|
};
|
|
159
266
|
|
|
160
267
|
/** Declaration GType -> its own settable properties, as GObject registered them. */
|
|
@@ -168,7 +275,17 @@ export const OWN_PROPS: Readonly<Record<string, readonly string[]>>;
|
|
|
168
275
|
*/
|
|
169
276
|
export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
|
|
170
277
|
|
|
171
|
-
/**
|
|
278
|
+
/**
|
|
279
|
+
* Instantiable GType -> every declaration its members come from, self first.
|
|
280
|
+
*
|
|
281
|
+
* The key set is what a UI description file can NAME: every registered, non-abstract
|
|
282
|
+
* class this namespace declares. GtkBuilder resolves a `<object class="…">` through
|
|
283
|
+
* `g_type_from_name`, which knows nothing about widgets, so this is wider than
|
|
284
|
+
* `Widgets` by design — `GtkSizeGroup`, `GtkTextTag`, every `GtkEventController`
|
|
285
|
+
* and every `GtkCellRenderer` are here and are not widgets.
|
|
286
|
+
*
|
|
287
|
+
* `Widgets` and `CHILD_HOLDERS` are the narrower questions and answer them unchanged.
|
|
288
|
+
*/
|
|
172
289
|
export const DECLS: Readonly<Record<string, readonly string[]>>;
|
|
173
290
|
|
|
174
291
|
/** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
|
|
@@ -180,8 +297,8 @@ export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
|
|
|
180
297
|
/**
|
|
181
298
|
* `<enum GType>.<nick>` -> the integer GObject registers for it, from GIR's `value`.
|
|
182
299
|
*
|
|
183
|
-
* Position in `ENUM_NICKS` is NOT this number. Counting is wrong on 6 of the
|
|
184
|
-
* GTK 4 vocabulary carries --
|
|
300
|
+
* Position in `ENUM_NICKS` is NOT this number. Counting is wrong on 6 of the 137 enums a
|
|
301
|
+
* GTK 4 vocabulary carries -- 112 in Gtk-4.0 and 25 in Adw-1: `GtkResponseType` runs -1 to -11, `GtkTextWindowType` starts
|
|
185
302
|
* at 1, `GtkOrdering` and `GtkConstraintRelation` are -1/0/1, `GtkAlign` has two names
|
|
186
303
|
* on one value, and `GtkConstraintStrength.required` is 1001001000 where counting says 0.
|
|
187
304
|
*
|
|
@@ -219,10 +336,11 @@ export const ENUM_VALUES_UNREADABLE: Readonly<Record<string, string>>;
|
|
|
219
336
|
*
|
|
220
337
|
* `ENUM_NICKS` carries no bitfield, because GObject cannot resolve a nick SET; that says
|
|
221
338
|
* nothing about a single member's number, and the number is what a host without GI needs.
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
* among them. Counting is worst here:
|
|
225
|
-
*
|
|
339
|
+
* 23 settable properties in Gtk-4.0 and Adw-1 are bitfield-typed and are declared bare
|
|
340
|
+
* `number` -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`, `AdwTabView:shortcuts`,
|
|
341
|
+
* `GtkDropTarget:actions` among them. Counting is worst here: 119 of the 156 Gtk-4.0
|
|
342
|
+
* bitfield members this vocabulary carries disagree with their declaration position,
|
|
343
|
+
* against 29 of 672 enumeration members.
|
|
226
344
|
*
|
|
227
345
|
* Combine with `|` as GObject does. There is no nick table to pair this with, so a name
|
|
228
346
|
* here is resolvable and a SET still is not.
|
|
@@ -246,13 +364,52 @@ export const FLAG_VALUES_UNREADABLE: Readonly<Record<string, string>>;
|
|
|
246
364
|
*
|
|
247
365
|
* The GType named here is not always one THIS module gives numbers for. A nick vocabulary is
|
|
248
366
|
* emitted once, by the namespace that owns the enum, so `AdwComboRow.search-match-mode` names
|
|
249
|
-
* `GtkStringFilterMatchMode` and its rows are in `@girs/gtk-4.0/vocabulary` —
|
|
367
|
+
* `GtkStringFilterMatchMode` and its rows are in `@girs/gtk-4.0/vocabulary` — 83 of the 909
|
|
250
368
|
* entries in a full run resolve only with the owner's vocabulary loaded beside this one. An
|
|
251
369
|
* owner with no vocabulary of its own (Gdk, Pango) is inlined here instead, so every entry
|
|
252
370
|
* resolves against SOME module.
|
|
253
371
|
*/
|
|
254
372
|
export const PROP_ENUMS: Readonly<Record<string, string>>;
|
|
255
373
|
|
|
374
|
+
/**
|
|
375
|
+
* The kinds of value a GTK accessible property, relation or state takes.
|
|
376
|
+
*
|
|
377
|
+
* `enum` is the one that needs a second lookup: `ARIA_VALUE_ENUMS` names the enum GType,
|
|
378
|
+
* and `ENUM_NICKS` and `ENUM_VALUES` answer from there.
|
|
379
|
+
*/
|
|
380
|
+
export type AriaValueType = 'string' | 'integer' | 'double' | 'boolean' | 'reference' | 'enum';
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* `<enum GType>.<nick>` -> the kind of value that ARIA slot takes.
|
|
384
|
+
*
|
|
385
|
+
* The one table in this file that is not a fact about a ParamSpec. A GtkBuilder or
|
|
386
|
+
* Blueprint `accessibility { … }` block is typed by GTK's ARIA table, not by the widget,
|
|
387
|
+
* and the two disagree where it costs most: `orientation` is settable on a `GtkLabel`
|
|
388
|
+
* that implements no `GtkOrientable`, and `checked` is a `GtkAccessibleTristate`, so
|
|
389
|
+
* `checked: true` is the number 1 rather than a boolean. Typing those slots from the
|
|
390
|
+
* widget's properties gets both wrong and raises nothing.
|
|
391
|
+
*
|
|
392
|
+
* Keyed like `ENUM_VALUES` because the ARIA names ARE enum members — of
|
|
393
|
+
* `GtkAccessibleProperty`, `GtkAccessibleRelation` and `GtkAccessibleState` — so
|
|
394
|
+
* `ENUM_NICKS` already lists them and one key parser reads both.
|
|
395
|
+
*
|
|
396
|
+
* Read from each member's own GIR documentation. `gtk_accessible_property_init_value()`
|
|
397
|
+
* is the C half of this table and is not introspectable; the doc sentence is, and states
|
|
398
|
+
* the type for 52 of the 53 members in gtk4 4.23.3. Complete or absent, never partial: a
|
|
399
|
+
* member the generator cannot answer for fails the build and names itself.
|
|
400
|
+
*/
|
|
401
|
+
export const ARIA_VALUE_TYPES: Readonly<Record<string, AriaValueType>>;
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* The same keys, for the `'enum'` rows only -> the GType of that enum.
|
|
405
|
+
*
|
|
406
|
+
* A table of its own for the reason `PROP_ENUMS` is one: folded in, the values of
|
|
407
|
+
* `ARIA_VALUE_TYPES` would be six reserved words mixed with arbitrary GTypes and telling
|
|
408
|
+
* them apart would be the consumer's problem. Apart, `ARIA_VALUE_TYPES[k] === 'enum'` is
|
|
409
|
+
* the whole test and `ENUM_NICKS[ARIA_VALUE_ENUMS[k]]` is the nick list.
|
|
410
|
+
*/
|
|
411
|
+
export const ARIA_VALUE_ENUMS: Readonly<Record<string, string>>;
|
|
412
|
+
|
|
256
413
|
/** Widget GType -> slot name -> the method that may adopt a child there. */
|
|
257
414
|
export const SLOT_CANDIDATES: Readonly<Record<string, Readonly<Record<string, string>>>>;
|
|
258
415
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// The widget vocabulary of XreaderView-1.5 as runtime data.
|
|
2
2
|
//
|
|
3
|
-
// GENERATED — do not edit. Provenance: XreaderView-1.5 — dropped empty base(s): GObject.
|
|
3
|
+
// GENERATED — do not edit. Provenance: XreaderView-1.5 — dropped empty base(s): GObject.Object GObject.InitiallyUnowned Atk.ImplementorIface
|
|
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,29 +11,57 @@ export const PROVENANCE = {
|
|
|
11
11
|
version: '1.5',
|
|
12
12
|
libraryVersion: null,
|
|
13
13
|
childHolders: 0,
|
|
14
|
-
droppedBases: ['GObject.
|
|
14
|
+
droppedBases: ['GObject.Object', 'GObject.InitiallyUnowned', 'Atk.ImplementorIface'],
|
|
15
15
|
inlinedBases: [],
|
|
16
16
|
unsettableProps: [],
|
|
17
|
+
unresolvedProps: [],
|
|
17
18
|
};
|
|
18
19
|
|
|
19
20
|
export const OWN_PROPS = {
|
|
21
|
+
EvDocumentModel: ['continuous', 'document', 'dual-odd-left', 'dual-page', 'fullscreen', 'inverted-colors', 'page', 'rotation', 'rtl', 'scale', 'sizing-mode'],
|
|
20
22
|
EvViewPresentation: ['current-page', 'document', 'inverted-colors', 'rotation'],
|
|
21
23
|
};
|
|
22
24
|
|
|
23
25
|
export const OWN_SIGNALS = {
|
|
26
|
+
EvDocumentModel: ['page-changed'],
|
|
27
|
+
EvJob: ['cancelled', 'finished'],
|
|
28
|
+
EvJobFind: ['updated'],
|
|
29
|
+
EvJobFonts: ['updated'],
|
|
24
30
|
EvView: ['activate', 'annot-added', 'annot-removed', 'binding-activated', 'external-link', 'handle-link', 'layers-changed', 'popup', 'selection-changed', 'sync-source'],
|
|
25
31
|
EvViewPresentation: ['change-page', 'external-link', 'finished'],
|
|
26
32
|
};
|
|
27
33
|
|
|
34
|
+
// Every GType this namespace can INSTANTIATE -> the declarations its members come from.
|
|
35
|
+
//
|
|
36
|
+
// The key set is what a UI description file can name: a registered, non-abstract class.
|
|
37
|
+
// Not "every widget" — GtkBuilder resolves a name through `g_type_from_name`, which knows
|
|
38
|
+
// nothing about widgets, and a `.ui` file is full of `GtkSizeGroup`, `GtkTextTag`,
|
|
39
|
+
// `GtkEventController*` and `GtkCellRenderer*`. Use `Widgets` and `CHILD_HOLDERS`
|
|
40
|
+
// below for the narrower questions; they did not move.
|
|
28
41
|
export const DECLS = {
|
|
42
|
+
EvDocumentModel: ['EvDocumentModel'],
|
|
43
|
+
EvJobAnnots: ['EvJobAnnots', 'EvJob'],
|
|
44
|
+
EvJobAttachments: ['EvJobAttachments', 'EvJob'],
|
|
45
|
+
EvJobExport: ['EvJobExport', 'EvJob'],
|
|
46
|
+
EvJobFind: ['EvJobFind', 'EvJob'],
|
|
47
|
+
EvJobFonts: ['EvJobFonts', 'EvJob'],
|
|
48
|
+
EvJobLayers: ['EvJobLayers', 'EvJob'],
|
|
49
|
+
EvJobLinks: ['EvJobLinks', 'EvJob'],
|
|
50
|
+
EvJobLoad: ['EvJobLoad', 'EvJob'],
|
|
51
|
+
EvJobPageData: ['EvJobPageData', 'EvJob'],
|
|
52
|
+
EvJobPrint: ['EvJobPrint', 'EvJob'],
|
|
53
|
+
EvJobRender: ['EvJobRender', 'EvJob'],
|
|
54
|
+
EvJobSave: ['EvJobSave', 'EvJob'],
|
|
55
|
+
EvJobThumbnail: ['EvJobThumbnail', 'EvJob'],
|
|
29
56
|
EvView: ['EvView', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkScrollable'],
|
|
30
57
|
EvViewPresentation: ['EvViewPresentation', 'GtkWidget', 'GtkBuildable'],
|
|
31
58
|
};
|
|
32
59
|
|
|
33
|
-
// The GTypes above that are
|
|
34
|
-
//
|
|
35
|
-
//
|
|
36
|
-
//
|
|
60
|
+
// The GTypes above that ARE widgets are the `Widgets` map in the sibling `.d.ts`; these
|
|
61
|
+
// are the ones that merely HOLD one, through `set_child`/`get_child`, descending from
|
|
62
|
+
// `GObject.Object`. A renderer places them like a container; a check asking "is this a
|
|
63
|
+
// widget" must not count them. Derived from the accessor pair, never from a list — the
|
|
64
|
+
// count is in the provenance line above.
|
|
37
65
|
export const CHILD_HOLDERS = [];
|
|
38
66
|
|
|
39
67
|
export const ENUM_NICKS = {
|
|
@@ -48,7 +76,7 @@ export const ENUM_NICKS = {
|
|
|
48
76
|
// It ships because position in `ENUM_NICKS` is not the value and a consumer with no
|
|
49
77
|
// typelib has no other way to learn it: a surface without GI still has to hand GObject an
|
|
50
78
|
// integer. The alternative a consumer reaches for first is counting, and counting is wrong
|
|
51
|
-
// on 6 of the
|
|
79
|
+
// on 6 of the 137 enums a GTK 4 vocabulary carries (112 in Gtk-4.0, 25 in Adw-1) --
|
|
52
80
|
// `GtkResponseType` runs -1 down to
|
|
53
81
|
// -11, `GtkTextWindowType` starts at 1, and `GtkConstraintStrength.required` is
|
|
54
82
|
// 1001001000 where counting answers 0.
|
|
@@ -98,11 +126,12 @@ export const ENUM_VALUES_UNREADABLE = {};
|
|
|
98
126
|
// The number behind each member of a registered BITFIELD, keyed the same way.
|
|
99
127
|
//
|
|
100
128
|
// `ENUM_NICKS` refuses a bitfield because GObject cannot resolve a nick SET, and that
|
|
101
|
-
// reason says nothing about one member's number.
|
|
102
|
-
//
|
|
103
|
-
// `AdwTabView:shortcuts`, ... -- and they are typed bare
|
|
104
|
-
// has nothing to compute one from. Counting is worst
|
|
105
|
-
//
|
|
129
|
+
// reason says nothing about one member's number. 23 settable properties in Gtk-4.0 and
|
|
130
|
+
// Adw-1 are bitfield-typed -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`,
|
|
131
|
+
// `AdwTabView:shortcuts`, `GtkDropTarget:actions`, ... -- and they are typed bare
|
|
132
|
+
// `number`, so a host without GI has nothing to compute one from. Counting is worst
|
|
133
|
+
// exactly here: 119 of the 156 Gtk-4.0 bitfield members this vocabulary carries disagree
|
|
134
|
+
// with their declaration position, against 29 of 672 enumeration members.
|
|
106
135
|
//
|
|
107
136
|
// A table of its own rather than more rows in `ENUM_VALUES`, so that "every nick in
|
|
108
137
|
// `ENUM_NICKS` has a number or a declared reason" stays a claim about one set.
|
|
@@ -135,9 +164,36 @@ export const FLAG_VALUES_UNREADABLE = {};
|
|
|
135
164
|
// one are both entries a consumer would resolve wrongly, so neither is written.
|
|
136
165
|
//
|
|
137
166
|
// A GType named here has numbers in SOME vocabulary, not necessarily this one: the namespace
|
|
138
|
-
// that OWNS an enum publishes it, so
|
|
167
|
+
// that OWNS an enum publishes it, so 83 of the 909 entries a full run emits want the owner's
|
|
139
168
|
// vocabulary loaded too. Owners that emit none (Gdk, Pango) are inlined into the tables above.
|
|
140
|
-
export const PROP_ENUMS = {
|
|
169
|
+
export const PROP_ENUMS = {
|
|
170
|
+
'EvDocumentModel.sizing-mode': 'EvSizingMode',
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
// `<enum GType>.<nick>` -> the kind of value that ARIA slot takes.
|
|
174
|
+
//
|
|
175
|
+
// The one table here that is not about a ParamSpec. A GtkBuilder or Blueprint
|
|
176
|
+
// `accessibility { … }` block is typed by GTK's ARIA table instead, and the two disagree
|
|
177
|
+
// where it matters: `orientation` is settable on a `GtkLabel` that implements no
|
|
178
|
+
// `GtkOrientable` and has no such property, and `checked` is a `GtkAccessibleTristate`, so
|
|
179
|
+
// `checked: true` means the number 1 and not the boolean. A consumer typing those slots
|
|
180
|
+
// from the widget gets both wrong, silently.
|
|
181
|
+
//
|
|
182
|
+
// Read from each member's own documentation, which is where GTK keeps the table --
|
|
183
|
+
// `gtk_accessible_property_init_value()` is the C half and is not introspectable, the
|
|
184
|
+
// sentence is. Complete or absent, never partial: a member whose documentation states no
|
|
185
|
+
// value type fails generation and names itself, because a missing row is indistinguishable
|
|
186
|
+
// from "GTK has no such name" and the plausible fallback emits `true` where GTK means 1.
|
|
187
|
+
export const ARIA_VALUE_TYPES = {};
|
|
188
|
+
|
|
189
|
+
// The same keys, for the `'enum'` rows only -> the GType of the enum.
|
|
190
|
+
//
|
|
191
|
+
// The join on from a kind to a number, and a table of its own for the reason `PROP_ENUMS`
|
|
192
|
+
// is one: folding the GType into `ARIA_VALUE_TYPES` would make its values a mix of six
|
|
193
|
+
// reserved words and arbitrary GTypes, and telling them apart would be the consumer's
|
|
194
|
+
// problem. With this, `ARIA_VALUE_TYPES[k] === 'enum'` is the whole test, and
|
|
195
|
+
// `ENUM_NICKS[ARIA_VALUE_ENUMS[k]]` is the nick list.
|
|
196
|
+
export const ARIA_VALUE_ENUMS = {};
|
|
141
197
|
|
|
142
198
|
export const SLOT_CANDIDATES = {};
|
|
143
199
|
|