@girs/gtef-2 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/gtef-2-vocabulary.d.ts +233 -13
- package/gtef-2-vocabulary.js +95 -20
- package/package.json +16 -16
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|

|
|
5
5
|

|
|
6
6
|
|
|
7
|
-
GJS TypeScript type definitions for Gtef-2 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.
|
|
7
|
+
GJS TypeScript type definitions for Gtef-2 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/gtef-2-vocabulary.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The GIR-derived widget VOCABULARY for Gtef-2.
|
|
3
3
|
*
|
|
4
|
-
* GENERATED — do not edit. Provenance: Gtef-2 — dropped empty base(s):
|
|
4
|
+
* GENERATED — do not edit. Provenance: Gtef-2 — dropped empty base(s): Atk.ImplementorIface
|
|
5
5
|
*
|
|
6
|
-
* 3 concrete widgets,
|
|
6
|
+
* 15 instantiable GTypes (of which 3 concrete widgets), 15 declarations, 3 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,9 +24,13 @@
|
|
|
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 Gtef from './gtef-2.js';
|
|
28
|
-
import type
|
|
29
|
-
import type
|
|
29
|
+
import type Gtk from '@girs/gtk-3.0';
|
|
30
|
+
import type GtkSource from '@girs/gtksource-3.0';
|
|
31
|
+
import type { GInitiallyUnownedConstructOnly, GInitiallyUnownedProps, GObjectConstructOnly, GObjectProps } from '@girs/gobject-2.0/vocabulary';
|
|
32
|
+
import type { GtkBoxConstructOnly, GtkBoxProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkContainerConstructOnly, GtkContainerProps, GtkGridConstructOnly, GtkGridProps, GtkInfoBarConstructOnly, GtkInfoBarProps, GtkOrientableConstructOnly, GtkOrientableProps, GtkScrollableConstructOnly, GtkScrollableProps, GtkTextBufferConstructOnly, GtkTextBufferProps, GtkTextViewConstructOnly, GtkTextViewProps, GtkWidgetConstructOnly, GtkWidgetProps } from '@girs/gtk-3.0/vocabulary';
|
|
33
|
+
import type { GtkSourceBufferConstructOnly, GtkSourceBufferProps, GtkSourceCompressionTypeNick, GtkSourceGutterRendererConstructOnly, GtkSourceGutterRendererProps, GtkSourceNewlineTypeNick, GtkSourceViewConstructOnly, GtkSourceViewProps } from '@girs/gtksource-3.0/vocabulary';
|
|
30
34
|
|
|
31
35
|
// ---------------------------------------------------------------------------
|
|
32
36
|
// Enum nicks — the string vocabulary GObject registered, from GIR's `glib:nick`.
|
|
@@ -52,11 +56,181 @@ export type GtefSelectionTypeNick = 'no-selection' | 'on-same-line' | 'multiple-
|
|
|
52
56
|
// GIR keeps them once, on the interface.
|
|
53
57
|
// ---------------------------------------------------------------------------
|
|
54
58
|
|
|
59
|
+
export interface GtefActionInfoCentralStoreProps extends GObjectProps {
|
|
60
|
+
}
|
|
61
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
62
|
+
export type GtefActionInfoCentralStoreConstructOnly = GObjectConstructOnly;
|
|
63
|
+
|
|
64
|
+
export interface GtefActionInfoStoreProps extends GObjectProps {
|
|
65
|
+
/**
|
|
66
|
+
* The associated #GtkApplication.
|
|
67
|
+
* @since 2.0
|
|
68
|
+
*/
|
|
69
|
+
application?: Gtk.Application | null;
|
|
70
|
+
}
|
|
71
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
72
|
+
export type GtefActionInfoStoreConstructOnly = GObjectConstructOnly | 'application';
|
|
73
|
+
|
|
74
|
+
export interface GtefApplicationProps extends GObjectProps {
|
|
75
|
+
/**
|
|
76
|
+
* The #GtkApplication.
|
|
77
|
+
* @since 2.0
|
|
78
|
+
*/
|
|
79
|
+
application?: Gtk.Application;
|
|
80
|
+
}
|
|
81
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
82
|
+
export type GtefApplicationConstructOnly = GObjectConstructOnly | 'application';
|
|
83
|
+
|
|
84
|
+
export interface GtefApplicationWindowProps extends GObjectProps {
|
|
85
|
+
/**
|
|
86
|
+
* The #GtkApplicationWindow.
|
|
87
|
+
* @since 2.0
|
|
88
|
+
*/
|
|
89
|
+
'application-window'?: Gtk.ApplicationWindow;
|
|
90
|
+
/**
|
|
91
|
+
* The #GtkStatusbar.
|
|
92
|
+
* @since 2.0
|
|
93
|
+
*/
|
|
94
|
+
statusbar?: Gtk.Statusbar | null;
|
|
95
|
+
}
|
|
96
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
97
|
+
export type GtefApplicationWindowConstructOnly = GObjectConstructOnly | 'application-window';
|
|
98
|
+
|
|
99
|
+
export interface GtefBufferProps extends GtkSourceBufferProps {
|
|
100
|
+
/**
|
|
101
|
+
* The #GtkSourceBuffer:style-scheme ID, as a string.
|
|
102
|
+
* @since 2.0
|
|
103
|
+
*/
|
|
104
|
+
'gtef-style-scheme-id'?: string;
|
|
105
|
+
}
|
|
106
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
107
|
+
export type GtefBufferConstructOnly = GtkSourceBufferConstructOnly;
|
|
108
|
+
|
|
109
|
+
export interface GtefFileProps extends GObjectProps {
|
|
110
|
+
/**
|
|
111
|
+
* The location.
|
|
112
|
+
* @since 1.0
|
|
113
|
+
*/
|
|
114
|
+
location?: Gio.File;
|
|
115
|
+
}
|
|
116
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
117
|
+
export type GtefFileConstructOnly = GObjectConstructOnly;
|
|
118
|
+
|
|
119
|
+
export interface GtefFileLoaderProps extends GObjectProps {
|
|
120
|
+
/**
|
|
121
|
+
* The #GtefBuffer to load the content into.
|
|
122
|
+
* @since 1.0
|
|
123
|
+
*/
|
|
124
|
+
buffer?: Gtef.Buffer | null;
|
|
125
|
+
/**
|
|
126
|
+
* The chunk size, in bytes.
|
|
127
|
+
* @since 1.0
|
|
128
|
+
*/
|
|
129
|
+
'chunk-size'?: bigint | number;
|
|
130
|
+
/**
|
|
131
|
+
* The #GtefFile.
|
|
132
|
+
* @since 1.0
|
|
133
|
+
*/
|
|
134
|
+
file?: Gtef.File | null;
|
|
135
|
+
/**
|
|
136
|
+
* The #GFile to load.
|
|
137
|
+
* @since 1.0
|
|
138
|
+
*/
|
|
139
|
+
location?: Gio.File | null;
|
|
140
|
+
/**
|
|
141
|
+
* The maximum content size, in bytes.
|
|
142
|
+
* @since 1.0
|
|
143
|
+
*/
|
|
144
|
+
'max-size'?: bigint | number;
|
|
145
|
+
}
|
|
146
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
147
|
+
export type GtefFileLoaderConstructOnly = GObjectConstructOnly | 'buffer' | 'file' | 'location';
|
|
148
|
+
|
|
149
|
+
export interface GtefFileMetadataProps extends GObjectProps {
|
|
150
|
+
/**
|
|
151
|
+
* The #GtefFile that the metadata belong to.
|
|
152
|
+
* @since 1.0
|
|
153
|
+
*/
|
|
154
|
+
file?: Gtef.File;
|
|
155
|
+
}
|
|
156
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
157
|
+
export type GtefFileMetadataConstructOnly = GObjectConstructOnly | 'file';
|
|
158
|
+
|
|
159
|
+
export interface GtefFileSaverProps extends GObjectProps {
|
|
160
|
+
/**
|
|
161
|
+
* The #GtefBuffer to save.
|
|
162
|
+
* @since 1.0
|
|
163
|
+
*/
|
|
164
|
+
buffer?: GtkSource.Buffer;
|
|
165
|
+
/**
|
|
166
|
+
* The compression type.
|
|
167
|
+
* @since 1.0
|
|
168
|
+
*/
|
|
169
|
+
'compression-type'?: GtkSourceCompressionTypeNick | GtkSource.CompressionType;
|
|
170
|
+
/**
|
|
171
|
+
* The file's encoding.
|
|
172
|
+
* @since 1.0
|
|
173
|
+
*/
|
|
174
|
+
encoding?: Gtef.Encoding;
|
|
175
|
+
/**
|
|
176
|
+
* The #GtefFile.
|
|
177
|
+
* @since 1.0
|
|
178
|
+
*/
|
|
179
|
+
file?: Gtef.File;
|
|
180
|
+
/**
|
|
181
|
+
* File saving flags.
|
|
182
|
+
* @since 1.0
|
|
183
|
+
*/
|
|
184
|
+
flags?: number;
|
|
185
|
+
/**
|
|
186
|
+
* The #GFile where to save the buffer.
|
|
187
|
+
* @since 1.0
|
|
188
|
+
*/
|
|
189
|
+
location?: Gio.File;
|
|
190
|
+
/**
|
|
191
|
+
* The newline type.
|
|
192
|
+
* @since 1.0
|
|
193
|
+
*/
|
|
194
|
+
'newline-type'?: GtkSourceNewlineTypeNick | GtkSource.NewlineType;
|
|
195
|
+
}
|
|
196
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
197
|
+
export type GtefFileSaverConstructOnly = GObjectConstructOnly | 'buffer' | 'file' | 'location';
|
|
198
|
+
|
|
199
|
+
export interface GtefFoldRegionProps extends GObjectProps {
|
|
200
|
+
/**
|
|
201
|
+
* The #GtkTextBuffer where the fold region is applied.
|
|
202
|
+
* @since 1.0
|
|
203
|
+
*/
|
|
204
|
+
buffer?: Gtk.TextBuffer | null;
|
|
205
|
+
/**
|
|
206
|
+
* Whether the #GtefFoldRegion is folded or not.
|
|
207
|
+
* @since 1.0
|
|
208
|
+
*/
|
|
209
|
+
folded?: boolean;
|
|
210
|
+
}
|
|
211
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
212
|
+
export type GtefFoldRegionConstructOnly = GObjectConstructOnly | 'buffer';
|
|
213
|
+
|
|
214
|
+
export interface GtefGutterRendererFoldsProps extends GtkSourceGutterRendererProps {
|
|
215
|
+
}
|
|
216
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
217
|
+
export type GtefGutterRendererFoldsConstructOnly = GtkSourceGutterRendererConstructOnly;
|
|
218
|
+
|
|
55
219
|
export interface GtefInfoBarProps extends GtkInfoBarProps, GtkBuildableProps, GtkOrientableProps {
|
|
56
220
|
}
|
|
57
221
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
58
222
|
export type GtefInfoBarConstructOnly = GtkInfoBarConstructOnly | GtkBuildableConstructOnly | GtkOrientableConstructOnly;
|
|
59
223
|
|
|
224
|
+
export interface GtefMenuShellProps extends GObjectProps {
|
|
225
|
+
/**
|
|
226
|
+
* The #GtkMenuShell.
|
|
227
|
+
* @since 2.0
|
|
228
|
+
*/
|
|
229
|
+
'menu-shell'?: Gtk.MenuShell;
|
|
230
|
+
}
|
|
231
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
232
|
+
export type GtefMenuShellConstructOnly = GObjectConstructOnly | 'menu-shell';
|
|
233
|
+
|
|
60
234
|
export interface GtefTabProps extends GtkGridProps, GtkBuildableProps, GtkOrientableProps {
|
|
61
235
|
}
|
|
62
236
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
@@ -110,7 +284,11 @@ export interface Widgets {
|
|
|
110
284
|
};
|
|
111
285
|
}
|
|
112
286
|
|
|
113
|
-
/**
|
|
287
|
+
/**
|
|
288
|
+
* Every GType this namespace can create AND put on screen. A consumer derives its own
|
|
289
|
+
* tag map. For everything a UI file can instantiate — layout managers, event
|
|
290
|
+
* controllers, cell renderers, `GtkSizeGroup` — read `DECLS` below.
|
|
291
|
+
*/
|
|
114
292
|
export type WidgetGType = keyof Widgets;
|
|
115
293
|
|
|
116
294
|
// ---------------------------------------------------------------------------
|
|
@@ -162,7 +340,38 @@ export const PROVENANCE: {
|
|
|
162
340
|
readonly childHolders: number;
|
|
163
341
|
readonly droppedBases: readonly string[];
|
|
164
342
|
readonly inlinedBases: readonly string[];
|
|
343
|
+
/** `<decl>.<prop>` for every property printed `never` because TypeScript has no value for it. */
|
|
165
344
|
readonly unsettableProps: readonly string[];
|
|
345
|
+
/**
|
|
346
|
+
* `<decl>.<prop>: <Ns>.<Name>` for every property printed `never` because the model
|
|
347
|
+
* could not resolve its type across a namespace boundary — two independently released
|
|
348
|
+
* GIRs disagreeing, which is what the main emitter answers `never` for as well.
|
|
349
|
+
*/
|
|
350
|
+
readonly unresolvedProps: readonly string[];
|
|
351
|
+
/**
|
|
352
|
+
* `c:identifier-prefixes` from the GIR, verbatim and in order — `['G']` for Gio.
|
|
353
|
+
*
|
|
354
|
+
* The C prefix a type REFERENCE needs: resolving `Gio.Icon` means producing `GIcon`,
|
|
355
|
+
* and nothing else in this package states that `Gio` spells itself `G`. Carried rather
|
|
356
|
+
* than derived because GIR carries it, and a derivation over the `DECLS` keys is wrong
|
|
357
|
+
* wherever the C prefix is not a prefix of the type NAMES: gdkx11-4.0 and gdkwayland-4.0
|
|
358
|
+
* both state `Gdk` while every key they declare begins `GdkX11`/`GdkWayland`.
|
|
359
|
+
*
|
|
360
|
+
* Empty where the GIR states none — 17 of the 627 emitting namespaces — because
|
|
361
|
+
* inventing the namespace name there is a confident wrong answer in place of a missing
|
|
362
|
+
* one. A LIST because 20 of them state more than one, which no single string expresses.
|
|
363
|
+
*/
|
|
364
|
+
readonly identifierPrefixes: readonly string[];
|
|
365
|
+
/**
|
|
366
|
+
* Sibling vocabularies this one's DECLARATIONS come from, as import specifiers.
|
|
367
|
+
*
|
|
368
|
+
* A chain link with no `OWN_PROPS` row is ambiguous on its own — `GtkSeparator` has no
|
|
369
|
+
* settable property, `GApplication` has its properties in another package — and this
|
|
370
|
+
* list is what tells the two apart. Enum and bitfield NUMBERS are not here: those are
|
|
371
|
+
* carried in this file, because a `PROP_ENUMS` row naming a foreign GType gives a
|
|
372
|
+
* consumer nothing to load and a `.ui` file using the property never names its owner.
|
|
373
|
+
*/
|
|
374
|
+
readonly requiredVocabularies: readonly string[];
|
|
166
375
|
};
|
|
167
376
|
|
|
168
377
|
/** Declaration GType -> its own settable properties, as GObject registered them. */
|
|
@@ -176,7 +385,17 @@ export const OWN_PROPS: Readonly<Record<string, readonly string[]>>;
|
|
|
176
385
|
*/
|
|
177
386
|
export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
|
|
178
387
|
|
|
179
|
-
/**
|
|
388
|
+
/**
|
|
389
|
+
* Instantiable GType -> every declaration its members come from, self first.
|
|
390
|
+
*
|
|
391
|
+
* The key set is what a UI description file can NAME: every registered, non-abstract
|
|
392
|
+
* class this namespace declares. GtkBuilder resolves a `<object class="…">` through
|
|
393
|
+
* `g_type_from_name`, which knows nothing about widgets, so this is wider than
|
|
394
|
+
* `Widgets` by design — `GtkSizeGroup`, `GtkTextTag`, every `GtkEventController`
|
|
395
|
+
* and every `GtkCellRenderer` are here and are not widgets.
|
|
396
|
+
*
|
|
397
|
+
* `Widgets` and `CHILD_HOLDERS` are the narrower questions and answer them unchanged.
|
|
398
|
+
*/
|
|
180
399
|
export const DECLS: Readonly<Record<string, readonly string[]>>;
|
|
181
400
|
|
|
182
401
|
/** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
|
|
@@ -188,8 +407,8 @@ export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
|
|
|
188
407
|
/**
|
|
189
408
|
* `<enum GType>.<nick>` -> the integer GObject registers for it, from GIR's `value`.
|
|
190
409
|
*
|
|
191
|
-
* Position in `ENUM_NICKS` is NOT this number. Counting is wrong on 6 of the
|
|
192
|
-
* GTK 4 vocabulary carries --
|
|
410
|
+
* Position in `ENUM_NICKS` is NOT this number. Counting is wrong on 6 of the 137 enums a
|
|
411
|
+
* GTK 4 vocabulary carries -- 112 in Gtk-4.0 and 25 in Adw-1: `GtkResponseType` runs -1 to -11, `GtkTextWindowType` starts
|
|
193
412
|
* at 1, `GtkOrdering` and `GtkConstraintRelation` are -1/0/1, `GtkAlign` has two names
|
|
194
413
|
* on one value, and `GtkConstraintStrength.required` is 1001001000 where counting says 0.
|
|
195
414
|
*
|
|
@@ -227,10 +446,11 @@ export const ENUM_VALUES_UNREADABLE: Readonly<Record<string, string>>;
|
|
|
227
446
|
*
|
|
228
447
|
* `ENUM_NICKS` carries no bitfield, because GObject cannot resolve a nick SET; that says
|
|
229
448
|
* nothing about a single member's number, and the number is what a host without GI needs.
|
|
230
|
-
*
|
|
231
|
-
*
|
|
232
|
-
* among them. Counting is worst here:
|
|
233
|
-
*
|
|
449
|
+
* 23 settable properties in Gtk-4.0 and Adw-1 are bitfield-typed and are declared bare
|
|
450
|
+
* `number` -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`, `AdwTabView:shortcuts`,
|
|
451
|
+
* `GtkDropTarget:actions` among them. Counting is worst here: 119 of the 156 Gtk-4.0
|
|
452
|
+
* bitfield members this vocabulary carries disagree with their declaration position,
|
|
453
|
+
* against 29 of 672 enumeration members.
|
|
234
454
|
*
|
|
235
455
|
* Combine with `|` as GObject does. There is no nick table to pair this with, so a name
|
|
236
456
|
* here is resolvable and a SET still is not.
|
|
@@ -254,7 +474,7 @@ export const FLAG_VALUES_UNREADABLE: Readonly<Record<string, string>>;
|
|
|
254
474
|
*
|
|
255
475
|
* The GType named here is not always one THIS module gives numbers for. A nick vocabulary is
|
|
256
476
|
* emitted once, by the namespace that owns the enum, so `AdwComboRow.search-match-mode` names
|
|
257
|
-
* `GtkStringFilterMatchMode` and its rows are in `@girs/gtk-4.0/vocabulary` —
|
|
477
|
+
* `GtkStringFilterMatchMode` and its rows are in `@girs/gtk-4.0/vocabulary` — 83 of the 909
|
|
258
478
|
* entries in a full run resolve only with the owner's vocabulary loaded beside this one. An
|
|
259
479
|
* owner with no vocabulary of its own (Gdk, Pango) is inlined here instead, so every entry
|
|
260
480
|
* resolves against SOME module.
|
package/gtef-2-vocabulary.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// The widget vocabulary of Gtef-2 as runtime data.
|
|
2
2
|
//
|
|
3
|
-
// GENERATED — do not edit. Provenance: Gtef-2 — dropped empty base(s):
|
|
3
|
+
// GENERATED — do not edit. Provenance: Gtef-2 — 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,31 +11,70 @@ export const PROVENANCE = {
|
|
|
11
11
|
version: '2',
|
|
12
12
|
libraryVersion: null,
|
|
13
13
|
childHolders: 0,
|
|
14
|
-
droppedBases: ['
|
|
14
|
+
droppedBases: ['Atk.ImplementorIface'],
|
|
15
15
|
inlinedBases: [],
|
|
16
16
|
unsettableProps: [],
|
|
17
|
+
unresolvedProps: [],
|
|
18
|
+
identifierPrefixes: ['Gtef'],
|
|
19
|
+
requiredVocabularies: ['@girs/gobject-2.0/vocabulary', '@girs/gtk-3.0/vocabulary', '@girs/gtksource-3.0/vocabulary'],
|
|
17
20
|
};
|
|
18
21
|
|
|
19
|
-
export const OWN_PROPS = {
|
|
22
|
+
export const OWN_PROPS = {
|
|
23
|
+
GtefActionInfoStore: ['application'],
|
|
24
|
+
GtefApplication: ['application'],
|
|
25
|
+
GtefApplicationWindow: ['application-window', 'statusbar'],
|
|
26
|
+
GtefBuffer: ['gtef-style-scheme-id'],
|
|
27
|
+
GtefFile: ['location'],
|
|
28
|
+
GtefFileLoader: ['buffer', 'chunk-size', 'file', 'location', 'max-size'],
|
|
29
|
+
GtefFileMetadata: ['file'],
|
|
30
|
+
GtefFileSaver: ['buffer', 'compression-type', 'encoding', 'file', 'flags', 'location', 'newline-type'],
|
|
31
|
+
GtefFoldRegion: ['buffer', 'folded'],
|
|
32
|
+
GtefMenuShell: ['menu-shell'],
|
|
33
|
+
};
|
|
20
34
|
|
|
21
|
-
export const OWN_SIGNALS = {
|
|
35
|
+
export const OWN_SIGNALS = {
|
|
36
|
+
GtefBuffer: ['gtef-cursor-moved'],
|
|
37
|
+
GtefMenuShell: ['menu-item-deselected', 'menu-item-selected'],
|
|
38
|
+
};
|
|
22
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.
|
|
23
47
|
export const DECLS = {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
48
|
+
GtefActionInfoCentralStore: ['GtefActionInfoCentralStore', 'GObject'],
|
|
49
|
+
GtefActionInfoStore: ['GtefActionInfoStore', 'GObject'],
|
|
50
|
+
GtefApplication: ['GtefApplication', 'GObject'],
|
|
51
|
+
GtefApplicationWindow: ['GtefApplicationWindow', 'GObject'],
|
|
52
|
+
GtefBuffer: ['GtefBuffer', 'GtkSourceBuffer', 'GtkTextBuffer', 'GObject'],
|
|
53
|
+
GtefFile: ['GtefFile', 'GObject'],
|
|
54
|
+
GtefFileLoader: ['GtefFileLoader', 'GObject'],
|
|
55
|
+
GtefFileMetadata: ['GtefFileMetadata', 'GObject'],
|
|
56
|
+
GtefFileSaver: ['GtefFileSaver', 'GObject'],
|
|
57
|
+
GtefFoldRegion: ['GtefFoldRegion', 'GObject'],
|
|
58
|
+
GtefGutterRendererFolds: ['GtefGutterRendererFolds', 'GtkSourceGutterRenderer', 'GInitiallyUnowned', 'GObject'],
|
|
59
|
+
GtefInfoBar: ['GtefInfoBar', 'GtkInfoBar', 'GtkBox', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkOrientable'],
|
|
60
|
+
GtefMenuShell: ['GtefMenuShell', 'GObject'],
|
|
61
|
+
GtefTab: ['GtefTab', 'GtkGrid', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkOrientable'],
|
|
62
|
+
GtefView: ['GtefView', 'GtkSourceView', 'GtkTextView', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkScrollable'],
|
|
27
63
|
};
|
|
28
64
|
|
|
29
|
-
// The GTypes above that are
|
|
30
|
-
//
|
|
31
|
-
//
|
|
32
|
-
//
|
|
65
|
+
// The GTypes above that ARE widgets are the `Widgets` map in the sibling `.d.ts`; these
|
|
66
|
+
// are the ones that merely HOLD one, through `set_child`/`get_child`, descending from
|
|
67
|
+
// `GObject.Object`. A renderer places them like a container; a check asking "is this a
|
|
68
|
+
// widget" must not count them. Derived from the accessor pair, never from a list — the
|
|
69
|
+
// count is in the provenance line above.
|
|
33
70
|
export const CHILD_HOLDERS = [];
|
|
34
71
|
|
|
35
72
|
export const ENUM_NICKS = {
|
|
36
73
|
GtefCompressionType: ['none', 'gzip'],
|
|
37
74
|
GtefNewlineType: ['lf', 'cr', 'cr-lf'],
|
|
38
75
|
GtefSelectionType: ['no-selection', 'on-same-line', 'multiple-lines'],
|
|
76
|
+
GtkSourceCompressionType: ['none', 'gzip'],
|
|
77
|
+
GtkSourceNewlineType: ['lf', 'cr', 'cr-lf'],
|
|
39
78
|
};
|
|
40
79
|
|
|
41
80
|
// The number behind each of those nicks, read from GIR's own `value` attribute.
|
|
@@ -43,7 +82,7 @@ export const ENUM_NICKS = {
|
|
|
43
82
|
// It ships because position in `ENUM_NICKS` is not the value and a consumer with no
|
|
44
83
|
// typelib has no other way to learn it: a surface without GI still has to hand GObject an
|
|
45
84
|
// integer. The alternative a consumer reaches for first is counting, and counting is wrong
|
|
46
|
-
// on 6 of the
|
|
85
|
+
// on 6 of the 137 enums a GTK 4 vocabulary carries (112 in Gtk-4.0, 25 in Adw-1) --
|
|
47
86
|
// `GtkResponseType` runs -1 down to
|
|
48
87
|
// -11, `GtkTextWindowType` starts at 1, and `GtkConstraintStrength.required` is
|
|
49
88
|
// 1001001000 where counting answers 0.
|
|
@@ -61,6 +100,11 @@ export const ENUM_VALUES = {
|
|
|
61
100
|
'GtefSelectionType.multiple-lines': 2,
|
|
62
101
|
'GtefSelectionType.no-selection': 0,
|
|
63
102
|
'GtefSelectionType.on-same-line': 1,
|
|
103
|
+
'GtkSourceCompressionType.gzip': 1,
|
|
104
|
+
'GtkSourceCompressionType.none': 0,
|
|
105
|
+
'GtkSourceNewlineType.cr': 1,
|
|
106
|
+
'GtkSourceNewlineType.cr-lf': 2,
|
|
107
|
+
'GtkSourceNewlineType.lf': 0,
|
|
64
108
|
};
|
|
65
109
|
|
|
66
110
|
// The nicks GIR marks `deprecated="1"`.
|
|
@@ -89,11 +133,12 @@ export const ENUM_VALUES_UNREADABLE = {};
|
|
|
89
133
|
// The number behind each member of a registered BITFIELD, keyed the same way.
|
|
90
134
|
//
|
|
91
135
|
// `ENUM_NICKS` refuses a bitfield because GObject cannot resolve a nick SET, and that
|
|
92
|
-
// reason says nothing about one member's number.
|
|
93
|
-
//
|
|
94
|
-
// `AdwTabView:shortcuts`, ... -- and they are typed bare
|
|
95
|
-
// has nothing to compute one from. Counting is worst
|
|
96
|
-
//
|
|
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.
|
|
97
142
|
//
|
|
98
143
|
// A table of its own rather than more rows in `ENUM_VALUES`, so that "every nick in
|
|
99
144
|
// `ENUM_NICKS` has a number or a declared reason" stays a claim about one set.
|
|
@@ -126,9 +171,13 @@ export const FLAG_VALUES_UNREADABLE = {};
|
|
|
126
171
|
// one are both entries a consumer would resolve wrongly, so neither is written.
|
|
127
172
|
//
|
|
128
173
|
// A GType named here has numbers in SOME vocabulary, not necessarily this one: the namespace
|
|
129
|
-
// that OWNS an enum publishes it, so
|
|
174
|
+
// that OWNS an enum publishes it, so 83 of the 909 entries a full run emits want the owner's
|
|
130
175
|
// vocabulary loaded too. Owners that emit none (Gdk, Pango) are inlined into the tables above.
|
|
131
|
-
export const PROP_ENUMS = {
|
|
176
|
+
export const PROP_ENUMS = {
|
|
177
|
+
'GtefFileSaver.compression-type': 'GtkSourceCompressionType',
|
|
178
|
+
'GtefFileSaver.flags': 'GtefFileSaverFlags',
|
|
179
|
+
'GtefFileSaver.newline-type': 'GtkSourceNewlineType',
|
|
180
|
+
};
|
|
132
181
|
|
|
133
182
|
// `<enum GType>.<nick>` -> the kind of value that ARIA slot takes.
|
|
134
183
|
//
|
|
@@ -164,4 +213,30 @@ export const SLOT_CANDIDATES = {
|
|
|
164
213
|
},
|
|
165
214
|
};
|
|
166
215
|
|
|
167
|
-
export const SINCE = {
|
|
216
|
+
export const SINCE = {
|
|
217
|
+
'GtefActionInfoStore.application': '2.0',
|
|
218
|
+
'GtefApplication.application': '2.0',
|
|
219
|
+
'GtefApplicationWindow.application-window': '2.0',
|
|
220
|
+
'GtefApplicationWindow.statusbar': '2.0',
|
|
221
|
+
'GtefBuffer.gtef-style-scheme-id': '2.0',
|
|
222
|
+
'GtefBuffer::gtef-cursor-moved': '2.0',
|
|
223
|
+
'GtefFile.location': '1.0',
|
|
224
|
+
'GtefFileLoader.buffer': '1.0',
|
|
225
|
+
'GtefFileLoader.chunk-size': '1.0',
|
|
226
|
+
'GtefFileLoader.file': '1.0',
|
|
227
|
+
'GtefFileLoader.location': '1.0',
|
|
228
|
+
'GtefFileLoader.max-size': '1.0',
|
|
229
|
+
'GtefFileMetadata.file': '1.0',
|
|
230
|
+
'GtefFileSaver.buffer': '1.0',
|
|
231
|
+
'GtefFileSaver.compression-type': '1.0',
|
|
232
|
+
'GtefFileSaver.encoding': '1.0',
|
|
233
|
+
'GtefFileSaver.file': '1.0',
|
|
234
|
+
'GtefFileSaver.flags': '1.0',
|
|
235
|
+
'GtefFileSaver.location': '1.0',
|
|
236
|
+
'GtefFileSaver.newline-type': '1.0',
|
|
237
|
+
'GtefFoldRegion.buffer': '1.0',
|
|
238
|
+
'GtefFoldRegion.folded': '1.0',
|
|
239
|
+
'GtefMenuShell.menu-shell': '2.0',
|
|
240
|
+
'GtefMenuShell::menu-item-deselected': '2.0',
|
|
241
|
+
'GtefMenuShell::menu-item-selected': '2.0',
|
|
242
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gtef-2",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Gtef-2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gtef-2.js",
|
|
@@ -36,21 +36,21 @@
|
|
|
36
36
|
"test": "tsc --project tsconfig.json"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@girs/gjs": "^5.
|
|
40
|
-
"@girs/gtksource-3.0": "^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/gtksource-3.0": "^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
|
},
|