@girs/xreaderview-1.5 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/package.json +16 -16
- package/xreaderview-1.5-vocabulary.d.ts +154 -11
- package/xreaderview-1.5-vocabulary.js +49 -16
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.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/xreaderview-1.5",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.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.3.0",
|
|
40
|
+
"@girs/xreaderdocument-1.5": "^5.3.0",
|
|
41
|
+
"@girs/gtk-3.0": "^5.3.0",
|
|
42
|
+
"@girs/xlib-2.0": "^5.3.0",
|
|
43
|
+
"@girs/gdk-3.0": "^5.3.0",
|
|
44
|
+
"@girs/cairo-1.0": "^5.3.0",
|
|
45
|
+
"@girs/gobject-2.0": "^5.3.0",
|
|
46
|
+
"@girs/glib-2.0": "^5.3.0",
|
|
47
|
+
"@girs/pango-1.0": "^5.3.0",
|
|
48
|
+
"@girs/harfbuzz-0.0": "^5.3.0",
|
|
49
|
+
"@girs/freetype2-2.0": "^5.3.0",
|
|
50
|
+
"@girs/gio-2.0": "^5.3.0",
|
|
51
|
+
"@girs/gmodule-2.0": "^5.3.0",
|
|
52
|
+
"@girs/gdkpixbuf-2.0": "^5.3.0",
|
|
53
|
+
"@girs/atk-1.0": "^5.3.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):
|
|
4
|
+
* GENERATED — do not edit. Provenance: XreaderView-1.5 — dropped empty base(s): 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
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
import type XreaderDocument from '@girs/xreaderdocument-1.5';
|
|
28
28
|
import type XreaderView from './xreaderview-1.5.js';
|
|
29
|
+
import type { GInitiallyUnownedConstructOnly, GInitiallyUnownedProps, GObjectConstructOnly, GObjectProps } from '@girs/gobject-2.0/vocabulary';
|
|
29
30
|
import type { GtkBuildableConstructOnly, GtkBuildableProps, GtkContainerConstructOnly, GtkContainerProps, GtkScrollableConstructOnly, GtkScrollableProps, GtkWidgetConstructOnly, GtkWidgetProps } from '@girs/gtk-3.0/vocabulary';
|
|
30
31
|
|
|
31
32
|
// ---------------------------------------------------------------------------
|
|
@@ -53,6 +54,102 @@ export type EvViewSelectionModeNick = 'text' | 'rectangle';
|
|
|
53
54
|
// GIR keeps them once, on the interface.
|
|
54
55
|
// ---------------------------------------------------------------------------
|
|
55
56
|
|
|
57
|
+
export interface EvDocumentModelProps extends GObjectProps {
|
|
58
|
+
/** @default TRUE */
|
|
59
|
+
continuous?: boolean;
|
|
60
|
+
document?: XreaderDocument.Document;
|
|
61
|
+
/** @default FALSE */
|
|
62
|
+
'dual-odd-left'?: boolean;
|
|
63
|
+
/** @default FALSE */
|
|
64
|
+
'dual-page'?: boolean;
|
|
65
|
+
/** @default FALSE */
|
|
66
|
+
fullscreen?: boolean;
|
|
67
|
+
/** @default FALSE */
|
|
68
|
+
'inverted-colors'?: boolean;
|
|
69
|
+
/** @default -1 */
|
|
70
|
+
page?: number;
|
|
71
|
+
/** @default 0 */
|
|
72
|
+
rotation?: number;
|
|
73
|
+
/** @default FALSE */
|
|
74
|
+
rtl?: boolean;
|
|
75
|
+
/** @default 1.000000 */
|
|
76
|
+
scale?: number;
|
|
77
|
+
/** @default EV_SIZING_FIT_WIDTH */
|
|
78
|
+
'sizing-mode'?: EvSizingModeNick | XreaderView.SizingMode;
|
|
79
|
+
}
|
|
80
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
81
|
+
export type EvDocumentModelConstructOnly = GObjectConstructOnly;
|
|
82
|
+
|
|
83
|
+
export interface EvJobProps extends GObjectProps {
|
|
84
|
+
}
|
|
85
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
86
|
+
export type EvJobConstructOnly = GObjectConstructOnly;
|
|
87
|
+
|
|
88
|
+
export interface EvJobAnnotsProps extends EvJobProps {
|
|
89
|
+
}
|
|
90
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
91
|
+
export type EvJobAnnotsConstructOnly = EvJobConstructOnly;
|
|
92
|
+
|
|
93
|
+
export interface EvJobAttachmentsProps extends EvJobProps {
|
|
94
|
+
}
|
|
95
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
96
|
+
export type EvJobAttachmentsConstructOnly = EvJobConstructOnly;
|
|
97
|
+
|
|
98
|
+
export interface EvJobExportProps extends EvJobProps {
|
|
99
|
+
}
|
|
100
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
101
|
+
export type EvJobExportConstructOnly = EvJobConstructOnly;
|
|
102
|
+
|
|
103
|
+
export interface EvJobFindProps extends EvJobProps {
|
|
104
|
+
}
|
|
105
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
106
|
+
export type EvJobFindConstructOnly = EvJobConstructOnly;
|
|
107
|
+
|
|
108
|
+
export interface EvJobFontsProps extends EvJobProps {
|
|
109
|
+
}
|
|
110
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
111
|
+
export type EvJobFontsConstructOnly = EvJobConstructOnly;
|
|
112
|
+
|
|
113
|
+
export interface EvJobLayersProps extends EvJobProps {
|
|
114
|
+
}
|
|
115
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
116
|
+
export type EvJobLayersConstructOnly = EvJobConstructOnly;
|
|
117
|
+
|
|
118
|
+
export interface EvJobLinksProps extends EvJobProps {
|
|
119
|
+
}
|
|
120
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
121
|
+
export type EvJobLinksConstructOnly = EvJobConstructOnly;
|
|
122
|
+
|
|
123
|
+
export interface EvJobLoadProps extends EvJobProps {
|
|
124
|
+
}
|
|
125
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
126
|
+
export type EvJobLoadConstructOnly = EvJobConstructOnly;
|
|
127
|
+
|
|
128
|
+
export interface EvJobPageDataProps extends EvJobProps {
|
|
129
|
+
}
|
|
130
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
131
|
+
export type EvJobPageDataConstructOnly = EvJobConstructOnly;
|
|
132
|
+
|
|
133
|
+
export interface EvJobPrintProps extends EvJobProps {
|
|
134
|
+
}
|
|
135
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
136
|
+
export type EvJobPrintConstructOnly = EvJobConstructOnly;
|
|
137
|
+
|
|
138
|
+
export interface EvJobRenderProps extends EvJobProps {
|
|
139
|
+
}
|
|
140
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
141
|
+
export type EvJobRenderConstructOnly = EvJobConstructOnly;
|
|
142
|
+
|
|
143
|
+
export interface EvJobSaveProps extends EvJobProps {
|
|
144
|
+
}
|
|
145
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
146
|
+
export type EvJobSaveConstructOnly = EvJobConstructOnly;
|
|
147
|
+
|
|
148
|
+
export interface EvJobThumbnailProps extends EvJobProps {
|
|
149
|
+
}
|
|
150
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
151
|
+
export type EvJobThumbnailConstructOnly = EvJobConstructOnly;
|
|
152
|
+
|
|
56
153
|
export interface EvViewProps extends GtkContainerProps, GtkBuildableProps, GtkScrollableProps {
|
|
57
154
|
}
|
|
58
155
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
@@ -102,7 +199,11 @@ export interface Widgets {
|
|
|
102
199
|
};
|
|
103
200
|
}
|
|
104
201
|
|
|
105
|
-
/**
|
|
202
|
+
/**
|
|
203
|
+
* Every GType this namespace can create AND put on screen. A consumer derives its own
|
|
204
|
+
* tag map. For everything a UI file can instantiate — layout managers, event
|
|
205
|
+
* controllers, cell renderers, `GtkSizeGroup` — read `DECLS` below.
|
|
206
|
+
*/
|
|
106
207
|
export type WidgetGType = keyof Widgets;
|
|
107
208
|
|
|
108
209
|
// ---------------------------------------------------------------------------
|
|
@@ -154,7 +255,38 @@ export const PROVENANCE: {
|
|
|
154
255
|
readonly childHolders: number;
|
|
155
256
|
readonly droppedBases: readonly string[];
|
|
156
257
|
readonly inlinedBases: readonly string[];
|
|
258
|
+
/** `<decl>.<prop>` for every property printed `never` because TypeScript has no value for it. */
|
|
157
259
|
readonly unsettableProps: readonly string[];
|
|
260
|
+
/**
|
|
261
|
+
* `<decl>.<prop>: <Ns>.<Name>` for every property printed `never` because the model
|
|
262
|
+
* could not resolve its type across a namespace boundary — two independently released
|
|
263
|
+
* GIRs disagreeing, which is what the main emitter answers `never` for as well.
|
|
264
|
+
*/
|
|
265
|
+
readonly unresolvedProps: readonly string[];
|
|
266
|
+
/**
|
|
267
|
+
* `c:identifier-prefixes` from the GIR, verbatim and in order — `['G']` for Gio.
|
|
268
|
+
*
|
|
269
|
+
* The C prefix a type REFERENCE needs: resolving `Gio.Icon` means producing `GIcon`,
|
|
270
|
+
* and nothing else in this package states that `Gio` spells itself `G`. Carried rather
|
|
271
|
+
* than derived because GIR carries it, and a derivation over the `DECLS` keys is wrong
|
|
272
|
+
* wherever the C prefix is not a prefix of the type NAMES: gdkx11-4.0 and gdkwayland-4.0
|
|
273
|
+
* both state `Gdk` while every key they declare begins `GdkX11`/`GdkWayland`.
|
|
274
|
+
*
|
|
275
|
+
* Empty where the GIR states none — 17 of the 627 emitting namespaces — because
|
|
276
|
+
* inventing the namespace name there is a confident wrong answer in place of a missing
|
|
277
|
+
* one. A LIST because 20 of them state more than one, which no single string expresses.
|
|
278
|
+
*/
|
|
279
|
+
readonly identifierPrefixes: readonly string[];
|
|
280
|
+
/**
|
|
281
|
+
* Sibling vocabularies this one's DECLARATIONS come from, as import specifiers.
|
|
282
|
+
*
|
|
283
|
+
* A chain link with no `OWN_PROPS` row is ambiguous on its own — `GtkSeparator` has no
|
|
284
|
+
* settable property, `GApplication` has its properties in another package — and this
|
|
285
|
+
* list is what tells the two apart. Enum and bitfield NUMBERS are not here: those are
|
|
286
|
+
* carried in this file, because a `PROP_ENUMS` row naming a foreign GType gives a
|
|
287
|
+
* consumer nothing to load and a `.ui` file using the property never names its owner.
|
|
288
|
+
*/
|
|
289
|
+
readonly requiredVocabularies: readonly string[];
|
|
158
290
|
};
|
|
159
291
|
|
|
160
292
|
/** Declaration GType -> its own settable properties, as GObject registered them. */
|
|
@@ -168,7 +300,17 @@ export const OWN_PROPS: Readonly<Record<string, readonly string[]>>;
|
|
|
168
300
|
*/
|
|
169
301
|
export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
|
|
170
302
|
|
|
171
|
-
/**
|
|
303
|
+
/**
|
|
304
|
+
* Instantiable GType -> every declaration its members come from, self first.
|
|
305
|
+
*
|
|
306
|
+
* The key set is what a UI description file can NAME: every registered, non-abstract
|
|
307
|
+
* class this namespace declares. GtkBuilder resolves a `<object class="…">` through
|
|
308
|
+
* `g_type_from_name`, which knows nothing about widgets, so this is wider than
|
|
309
|
+
* `Widgets` by design — `GtkSizeGroup`, `GtkTextTag`, every `GtkEventController`
|
|
310
|
+
* and every `GtkCellRenderer` are here and are not widgets.
|
|
311
|
+
*
|
|
312
|
+
* `Widgets` and `CHILD_HOLDERS` are the narrower questions and answer them unchanged.
|
|
313
|
+
*/
|
|
172
314
|
export const DECLS: Readonly<Record<string, readonly string[]>>;
|
|
173
315
|
|
|
174
316
|
/** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
|
|
@@ -180,8 +322,8 @@ export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
|
|
|
180
322
|
/**
|
|
181
323
|
* `<enum GType>.<nick>` -> the integer GObject registers for it, from GIR's `value`.
|
|
182
324
|
*
|
|
183
|
-
* Position in `ENUM_NICKS` is NOT this number. Counting is wrong on 6 of the
|
|
184
|
-
* GTK 4 vocabulary carries --
|
|
325
|
+
* Position in `ENUM_NICKS` is NOT this number. Counting is wrong on 6 of the 137 enums a
|
|
326
|
+
* GTK 4 vocabulary carries -- 112 in Gtk-4.0 and 25 in Adw-1: `GtkResponseType` runs -1 to -11, `GtkTextWindowType` starts
|
|
185
327
|
* at 1, `GtkOrdering` and `GtkConstraintRelation` are -1/0/1, `GtkAlign` has two names
|
|
186
328
|
* on one value, and `GtkConstraintStrength.required` is 1001001000 where counting says 0.
|
|
187
329
|
*
|
|
@@ -219,10 +361,11 @@ export const ENUM_VALUES_UNREADABLE: Readonly<Record<string, string>>;
|
|
|
219
361
|
*
|
|
220
362
|
* `ENUM_NICKS` carries no bitfield, because GObject cannot resolve a nick SET; that says
|
|
221
363
|
* 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
|
-
*
|
|
364
|
+
* 23 settable properties in Gtk-4.0 and Adw-1 are bitfield-typed and are declared bare
|
|
365
|
+
* `number` -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`, `AdwTabView:shortcuts`,
|
|
366
|
+
* `GtkDropTarget:actions` among them. Counting is worst here: 119 of the 156 Gtk-4.0
|
|
367
|
+
* bitfield members this vocabulary carries disagree with their declaration position,
|
|
368
|
+
* against 29 of 672 enumeration members.
|
|
226
369
|
*
|
|
227
370
|
* Combine with `|` as GObject does. There is no nick table to pair this with, so a name
|
|
228
371
|
* here is resolvable and a SET still is not.
|
|
@@ -246,7 +389,7 @@ export const FLAG_VALUES_UNREADABLE: Readonly<Record<string, string>>;
|
|
|
246
389
|
*
|
|
247
390
|
* The GType named here is not always one THIS module gives numbers for. A nick vocabulary is
|
|
248
391
|
* 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` —
|
|
392
|
+
* `GtkStringFilterMatchMode` and its rows are in `@girs/gtk-4.0/vocabulary` — 83 of the 909
|
|
250
393
|
* entries in a full run resolve only with the owner's vocabulary loaded beside this one. An
|
|
251
394
|
* owner with no vocabulary of its own (Gdk, Pango) is inlined here instead, so every entry
|
|
252
395
|
* resolves against SOME module.
|
|
@@ -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):
|
|
3
|
+
// GENERATED — do not edit. Provenance: XreaderView-1.5 — dropped empty base(s): 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,59 @@ export const PROVENANCE = {
|
|
|
11
11
|
version: '1.5',
|
|
12
12
|
libraryVersion: null,
|
|
13
13
|
childHolders: 0,
|
|
14
|
-
droppedBases: ['
|
|
14
|
+
droppedBases: ['Atk.ImplementorIface'],
|
|
15
15
|
inlinedBases: [],
|
|
16
16
|
unsettableProps: [],
|
|
17
|
+
unresolvedProps: [],
|
|
18
|
+
identifierPrefixes: ['Ev'],
|
|
19
|
+
requiredVocabularies: ['@girs/gobject-2.0/vocabulary', '@girs/gtk-3.0/vocabulary'],
|
|
17
20
|
};
|
|
18
21
|
|
|
19
22
|
export const OWN_PROPS = {
|
|
23
|
+
EvDocumentModel: ['continuous', 'document', 'dual-odd-left', 'dual-page', 'fullscreen', 'inverted-colors', 'page', 'rotation', 'rtl', 'scale', 'sizing-mode'],
|
|
20
24
|
EvViewPresentation: ['current-page', 'document', 'inverted-colors', 'rotation'],
|
|
21
25
|
};
|
|
22
26
|
|
|
23
27
|
export const OWN_SIGNALS = {
|
|
28
|
+
EvDocumentModel: ['page-changed'],
|
|
29
|
+
EvJob: ['cancelled', 'finished'],
|
|
30
|
+
EvJobFind: ['updated'],
|
|
31
|
+
EvJobFonts: ['updated'],
|
|
24
32
|
EvView: ['activate', 'annot-added', 'annot-removed', 'binding-activated', 'external-link', 'handle-link', 'layers-changed', 'popup', 'selection-changed', 'sync-source'],
|
|
25
33
|
EvViewPresentation: ['change-page', 'external-link', 'finished'],
|
|
26
34
|
};
|
|
27
35
|
|
|
36
|
+
// Every GType this namespace can INSTANTIATE -> the declarations its members come from.
|
|
37
|
+
//
|
|
38
|
+
// The key set is what a UI description file can name: a registered, non-abstract class.
|
|
39
|
+
// Not "every widget" — GtkBuilder resolves a name through `g_type_from_name`, which knows
|
|
40
|
+
// nothing about widgets, and a `.ui` file is full of `GtkSizeGroup`, `GtkTextTag`,
|
|
41
|
+
// `GtkEventController*` and `GtkCellRenderer*`. Use `Widgets` and `CHILD_HOLDERS`
|
|
42
|
+
// below for the narrower questions; they did not move.
|
|
28
43
|
export const DECLS = {
|
|
29
|
-
|
|
30
|
-
|
|
44
|
+
EvDocumentModel: ['EvDocumentModel', 'GObject'],
|
|
45
|
+
EvJobAnnots: ['EvJobAnnots', 'EvJob', 'GObject'],
|
|
46
|
+
EvJobAttachments: ['EvJobAttachments', 'EvJob', 'GObject'],
|
|
47
|
+
EvJobExport: ['EvJobExport', 'EvJob', 'GObject'],
|
|
48
|
+
EvJobFind: ['EvJobFind', 'EvJob', 'GObject'],
|
|
49
|
+
EvJobFonts: ['EvJobFonts', 'EvJob', 'GObject'],
|
|
50
|
+
EvJobLayers: ['EvJobLayers', 'EvJob', 'GObject'],
|
|
51
|
+
EvJobLinks: ['EvJobLinks', 'EvJob', 'GObject'],
|
|
52
|
+
EvJobLoad: ['EvJobLoad', 'EvJob', 'GObject'],
|
|
53
|
+
EvJobPageData: ['EvJobPageData', 'EvJob', 'GObject'],
|
|
54
|
+
EvJobPrint: ['EvJobPrint', 'EvJob', 'GObject'],
|
|
55
|
+
EvJobRender: ['EvJobRender', 'EvJob', 'GObject'],
|
|
56
|
+
EvJobSave: ['EvJobSave', 'EvJob', 'GObject'],
|
|
57
|
+
EvJobThumbnail: ['EvJobThumbnail', 'EvJob', 'GObject'],
|
|
58
|
+
EvView: ['EvView', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkScrollable'],
|
|
59
|
+
EvViewPresentation: ['EvViewPresentation', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable'],
|
|
31
60
|
};
|
|
32
61
|
|
|
33
|
-
// The GTypes above that are
|
|
34
|
-
//
|
|
35
|
-
//
|
|
36
|
-
//
|
|
62
|
+
// The GTypes above that ARE widgets are the `Widgets` map in the sibling `.d.ts`; these
|
|
63
|
+
// are the ones that merely HOLD one, through `set_child`/`get_child`, descending from
|
|
64
|
+
// `GObject.Object`. A renderer places them like a container; a check asking "is this a
|
|
65
|
+
// widget" must not count them. Derived from the accessor pair, never from a list — the
|
|
66
|
+
// count is in the provenance line above.
|
|
37
67
|
export const CHILD_HOLDERS = [];
|
|
38
68
|
|
|
39
69
|
export const ENUM_NICKS = {
|
|
@@ -48,7 +78,7 @@ export const ENUM_NICKS = {
|
|
|
48
78
|
// It ships because position in `ENUM_NICKS` is not the value and a consumer with no
|
|
49
79
|
// typelib has no other way to learn it: a surface without GI still has to hand GObject an
|
|
50
80
|
// integer. The alternative a consumer reaches for first is counting, and counting is wrong
|
|
51
|
-
// 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) --
|
|
52
82
|
// `GtkResponseType` runs -1 down to
|
|
53
83
|
// -11, `GtkTextWindowType` starts at 1, and `GtkConstraintStrength.required` is
|
|
54
84
|
// 1001001000 where counting answers 0.
|
|
@@ -98,11 +128,12 @@ export const ENUM_VALUES_UNREADABLE = {};
|
|
|
98
128
|
// The number behind each member of a registered BITFIELD, keyed the same way.
|
|
99
129
|
//
|
|
100
130
|
// `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
|
-
//
|
|
131
|
+
// reason says nothing about one member's number. 23 settable properties in Gtk-4.0 and
|
|
132
|
+
// Adw-1 are bitfield-typed -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`,
|
|
133
|
+
// `AdwTabView:shortcuts`, `GtkDropTarget:actions`, ... -- and they are typed bare
|
|
134
|
+
// `number`, so a host without GI has nothing to compute one from. Counting is worst
|
|
135
|
+
// exactly here: 119 of the 156 Gtk-4.0 bitfield members this vocabulary carries disagree
|
|
136
|
+
// with their declaration position, against 29 of 672 enumeration members.
|
|
106
137
|
//
|
|
107
138
|
// A table of its own rather than more rows in `ENUM_VALUES`, so that "every nick in
|
|
108
139
|
// `ENUM_NICKS` has a number or a declared reason" stays a claim about one set.
|
|
@@ -135,9 +166,11 @@ export const FLAG_VALUES_UNREADABLE = {};
|
|
|
135
166
|
// one are both entries a consumer would resolve wrongly, so neither is written.
|
|
136
167
|
//
|
|
137
168
|
// A GType named here has numbers in SOME vocabulary, not necessarily this one: the namespace
|
|
138
|
-
// that OWNS an enum publishes it, so
|
|
169
|
+
// that OWNS an enum publishes it, so 83 of the 909 entries a full run emits want the owner's
|
|
139
170
|
// vocabulary loaded too. Owners that emit none (Gdk, Pango) are inlined into the tables above.
|
|
140
|
-
export const PROP_ENUMS = {
|
|
171
|
+
export const PROP_ENUMS = {
|
|
172
|
+
'EvDocumentModel.sizing-mode': 'EvSizingMode',
|
|
173
|
+
};
|
|
141
174
|
|
|
142
175
|
// `<enum GType>.<nick>` -> the kind of value that ARIA slot takes.
|
|
143
176
|
//
|