@girs/gtksource-300 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/gtksource-300-vocabulary.d.ts +540 -12
- package/gtksource-300-vocabulary.js +136 -15
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|

|
|
5
5
|

|
|
6
6
|
|
|
7
|
-
GJS TypeScript type definitions for GtkSource-300 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.
|
|
7
|
+
GJS TypeScript type definitions for GtkSource-300 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.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The GIR-derived widget VOCABULARY for GtkSource-300.
|
|
3
3
|
*
|
|
4
|
-
* GENERATED — do not edit. Provenance: GtkSource-300 — dropped empty base(s):
|
|
4
|
+
* GENERATED — do not edit. Provenance: GtkSource-300 — dropped empty base(s): Atk.ImplementorIface
|
|
5
5
|
*
|
|
6
|
-
* 2 concrete widgets,
|
|
6
|
+
* 24 instantiable GTypes (of which 2 concrete widgets), 26 declarations, 9 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
|
|
@@ -24,8 +24,14 @@
|
|
|
24
24
|
* and the `notify::` keys folded in, is what `Widgets[G]['signals']` points at.
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
|
+
import type GLib from '@girs/glib-2.0';
|
|
28
|
+
import type Gdk from '@girs/gdk-3.0';
|
|
29
|
+
import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
|
|
30
|
+
import type Gio from '@girs/gio-2.0';
|
|
31
|
+
import type Gtk from '@girs/gtk-3.0';
|
|
27
32
|
import type GtkSource from './gtksource-300.js';
|
|
28
|
-
import type {
|
|
33
|
+
import type { GInitiallyUnownedConstructOnly, GInitiallyUnownedProps, GObjectConstructOnly, GObjectProps } from '@girs/gobject-2.0/vocabulary';
|
|
34
|
+
import type { GtkBinConstructOnly, GtkBinProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkContainerConstructOnly, GtkContainerProps, GtkScrollableConstructOnly, GtkScrollableProps, GtkTextBufferConstructOnly, GtkTextBufferProps, GtkTextMarkConstructOnly, GtkTextMarkProps, GtkTextTagConstructOnly, GtkTextTagProps, GtkTextViewConstructOnly, GtkTextViewProps, GtkTextWindowTypeNick, GtkWidgetConstructOnly, GtkWidgetProps, GtkWindowConstructOnly, GtkWindowProps, GtkWrapModeNick } from '@girs/gtk-3.0/vocabulary';
|
|
29
35
|
|
|
30
36
|
// ---------------------------------------------------------------------------
|
|
31
37
|
// Enum nicks — the string vocabulary GObject registered, from GIR's `glib:nick`.
|
|
@@ -57,11 +63,487 @@ export type GtkSourceViewGutterPositionNick = 'lines' | 'marks';
|
|
|
57
63
|
// GIR keeps them once, on the interface.
|
|
58
64
|
// ---------------------------------------------------------------------------
|
|
59
65
|
|
|
66
|
+
export interface GtkSourceBufferProps extends GtkTextBufferProps {
|
|
67
|
+
/**
|
|
68
|
+
* Whether to highlight matching brackets in the buffer.
|
|
69
|
+
* @default TRUE
|
|
70
|
+
*/
|
|
71
|
+
'highlight-matching-brackets'?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Whether to highlight syntax in the buffer.
|
|
74
|
+
* @default TRUE
|
|
75
|
+
*/
|
|
76
|
+
'highlight-syntax'?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Whether the buffer has an implicit trailing newline.
|
|
79
|
+
* @since 3.14
|
|
80
|
+
* @default TRUE
|
|
81
|
+
*/
|
|
82
|
+
'implicit-trailing-newline'?: boolean;
|
|
83
|
+
language?: GtkSource.Language | null;
|
|
84
|
+
/**
|
|
85
|
+
* Number of undo levels for the buffer.
|
|
86
|
+
* @default -1
|
|
87
|
+
*/
|
|
88
|
+
'max-undo-levels'?: number;
|
|
89
|
+
/** Style scheme. */
|
|
90
|
+
'style-scheme'?: GtkSource.StyleScheme | null;
|
|
91
|
+
'undo-manager'?: GtkSource.UndoManager | null;
|
|
92
|
+
}
|
|
93
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
94
|
+
export type GtkSourceBufferConstructOnly = GtkTextBufferConstructOnly;
|
|
95
|
+
|
|
96
|
+
export interface GtkSourceCompletionProps extends GObjectProps {
|
|
97
|
+
/**
|
|
98
|
+
* Number of keyboard accelerators to show for the first proposals.
|
|
99
|
+
* @default 5
|
|
100
|
+
*/
|
|
101
|
+
accelerators?: number;
|
|
102
|
+
/**
|
|
103
|
+
* Determines the popup delay (in milliseconds) at which the completion will be shown for interactive completion.
|
|
104
|
+
* @default 250
|
|
105
|
+
*/
|
|
106
|
+
'auto-complete-delay'?: number;
|
|
107
|
+
/**
|
|
108
|
+
* The scroll page size of the proposals in the completion window.
|
|
109
|
+
* @default 5
|
|
110
|
+
*/
|
|
111
|
+
'proposal-page-size'?: number;
|
|
112
|
+
/**
|
|
113
|
+
* The scroll page size of the provider pages in the completion window.
|
|
114
|
+
* @default 5
|
|
115
|
+
*/
|
|
116
|
+
'provider-page-size'?: number;
|
|
117
|
+
/**
|
|
118
|
+
* Determines whether the visibility of the info window should be saved when the completion is hidden, and restored when the completion is shown again.
|
|
119
|
+
* @default FALSE
|
|
120
|
+
*/
|
|
121
|
+
'remember-info-visibility'?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Determines whether the first proposal should be selected when the completion is first shown.
|
|
124
|
+
* @default TRUE
|
|
125
|
+
*/
|
|
126
|
+
'select-on-show'?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Determines whether provider headers should be shown in the proposal list.
|
|
129
|
+
* @default TRUE
|
|
130
|
+
*/
|
|
131
|
+
'show-headers'?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Determines whether provider and proposal icons should be shown in the completion popup.
|
|
134
|
+
* @default TRUE
|
|
135
|
+
*/
|
|
136
|
+
'show-icons'?: boolean;
|
|
137
|
+
/** The #GtkSourceView bound to the completion object. */
|
|
138
|
+
view?: GtkSource.View | null;
|
|
139
|
+
}
|
|
140
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
141
|
+
export type GtkSourceCompletionConstructOnly = GObjectConstructOnly | 'view';
|
|
142
|
+
|
|
143
|
+
export interface GtkSourceCompletionContextProps extends GInitiallyUnownedProps {
|
|
144
|
+
/**
|
|
145
|
+
* The completion activation
|
|
146
|
+
* @default GTK_SOURCE_COMPLETION_ACTIVATION_USER_REQUESTED
|
|
147
|
+
*/
|
|
148
|
+
activation?: number;
|
|
149
|
+
/** The #GtkSourceCompletion associated with the context. */
|
|
150
|
+
completion?: GtkSource.Completion;
|
|
151
|
+
/** The #GtkTextIter at which the completion is invoked. */
|
|
152
|
+
iter?: Gtk.TextIter;
|
|
153
|
+
}
|
|
154
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
155
|
+
export type GtkSourceCompletionContextConstructOnly = GInitiallyUnownedConstructOnly | 'completion';
|
|
156
|
+
|
|
60
157
|
export interface GtkSourceCompletionInfoProps extends GtkWindowProps, GtkBuildableProps {
|
|
61
158
|
}
|
|
62
159
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
63
160
|
export type GtkSourceCompletionInfoConstructOnly = GtkWindowConstructOnly | GtkBuildableConstructOnly;
|
|
64
161
|
|
|
162
|
+
export interface GtkSourceCompletionItemProps extends GObjectProps, GtkSourceCompletionProposalProps {
|
|
163
|
+
}
|
|
164
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
165
|
+
export type GtkSourceCompletionItemConstructOnly = GObjectConstructOnly | GtkSourceCompletionProposalConstructOnly;
|
|
166
|
+
|
|
167
|
+
export interface GtkSourceCompletionProposalProps extends GObjectProps {
|
|
168
|
+
}
|
|
169
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
170
|
+
export type GtkSourceCompletionProposalConstructOnly = GObjectConstructOnly;
|
|
171
|
+
|
|
172
|
+
export interface GtkSourceFileProps extends GObjectProps {
|
|
173
|
+
/**
|
|
174
|
+
* The #GFile.
|
|
175
|
+
* @since 3.14
|
|
176
|
+
*/
|
|
177
|
+
location?: Gio.File | null;
|
|
178
|
+
}
|
|
179
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
180
|
+
export type GtkSourceFileConstructOnly = GObjectConstructOnly;
|
|
181
|
+
|
|
182
|
+
export interface GtkSourceFileLoaderProps extends GObjectProps {
|
|
183
|
+
/**
|
|
184
|
+
* The #GtkSourceBuffer to load the contents into.
|
|
185
|
+
* @since 3.14
|
|
186
|
+
*/
|
|
187
|
+
buffer?: GtkSource.Buffer | null;
|
|
188
|
+
/**
|
|
189
|
+
* The #GtkSourceFile.
|
|
190
|
+
* @since 3.14
|
|
191
|
+
*/
|
|
192
|
+
file?: GtkSource.File | null;
|
|
193
|
+
/**
|
|
194
|
+
* The #GInputStream to load.
|
|
195
|
+
* @since 3.14
|
|
196
|
+
*/
|
|
197
|
+
'input-stream'?: Gio.InputStream | null;
|
|
198
|
+
/**
|
|
199
|
+
* The #GFile to load, or %NULL to load the contents from the #GtkSourceFileLoader:input-stream.
|
|
200
|
+
* @since 3.14
|
|
201
|
+
*/
|
|
202
|
+
location?: Gio.File | null;
|
|
203
|
+
/**
|
|
204
|
+
* The maximum number of bytes to read.
|
|
205
|
+
* @since 299.6
|
|
206
|
+
* @default 200000000
|
|
207
|
+
*/
|
|
208
|
+
'max-size'?: bigint | number;
|
|
209
|
+
}
|
|
210
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
211
|
+
export type GtkSourceFileLoaderConstructOnly = GObjectConstructOnly | 'buffer' | 'file' | 'input-stream' | 'location';
|
|
212
|
+
|
|
213
|
+
export interface GtkSourceFileSaverProps extends GObjectProps {
|
|
214
|
+
/**
|
|
215
|
+
* The #GtkSourceBuffer to save.
|
|
216
|
+
* @since 3.14
|
|
217
|
+
*/
|
|
218
|
+
buffer?: GtkSource.Buffer;
|
|
219
|
+
/**
|
|
220
|
+
* The compression type.
|
|
221
|
+
* @since 3.14
|
|
222
|
+
* @default GTK_SOURCE_COMPRESSION_TYPE_NONE
|
|
223
|
+
*/
|
|
224
|
+
'compression-type'?: GtkSourceCompressionTypeNick | GtkSource.CompressionType;
|
|
225
|
+
/**
|
|
226
|
+
* The file's encoding.
|
|
227
|
+
* @since 3.14
|
|
228
|
+
*/
|
|
229
|
+
encoding?: GtkSource.Encoding;
|
|
230
|
+
/**
|
|
231
|
+
* The #GtkSourceFile.
|
|
232
|
+
* @since 3.14
|
|
233
|
+
*/
|
|
234
|
+
file?: GtkSource.File;
|
|
235
|
+
/**
|
|
236
|
+
* File saving flags.
|
|
237
|
+
* @since 3.14
|
|
238
|
+
* @default GTK_SOURCE_FILE_SAVER_FLAGS_NONE
|
|
239
|
+
*/
|
|
240
|
+
flags?: number;
|
|
241
|
+
/**
|
|
242
|
+
* The #GFile where to save the buffer.
|
|
243
|
+
* @since 3.14
|
|
244
|
+
*/
|
|
245
|
+
location?: Gio.File;
|
|
246
|
+
/**
|
|
247
|
+
* The newline type.
|
|
248
|
+
* @since 3.14
|
|
249
|
+
* @default GTK_SOURCE_NEWLINE_TYPE_LF
|
|
250
|
+
*/
|
|
251
|
+
'newline-type'?: GtkSourceNewlineTypeNick | GtkSource.NewlineType;
|
|
252
|
+
}
|
|
253
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
254
|
+
export type GtkSourceFileSaverConstructOnly = GObjectConstructOnly | 'buffer' | 'file' | 'location';
|
|
255
|
+
|
|
256
|
+
export interface GtkSourceGutterProps extends GObjectProps {
|
|
257
|
+
/** The #GtkSourceView of the gutter. */
|
|
258
|
+
view?: GtkSource.View;
|
|
259
|
+
/**
|
|
260
|
+
* The text window type on which the window is placed.
|
|
261
|
+
* @default GTK_TEXT_WINDOW_PRIVATE
|
|
262
|
+
*/
|
|
263
|
+
'window-type'?: GtkTextWindowTypeNick | Gtk.TextWindowType;
|
|
264
|
+
}
|
|
265
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
266
|
+
export type GtkSourceGutterConstructOnly = GObjectConstructOnly | 'view' | 'window-type';
|
|
267
|
+
|
|
268
|
+
export interface GtkSourceGutterRendererProps extends GInitiallyUnownedProps {
|
|
269
|
+
/**
|
|
270
|
+
* The alignment mode of the renderer.
|
|
271
|
+
* @default GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_CELL
|
|
272
|
+
*/
|
|
273
|
+
'alignment-mode'?: GtkSourceGutterRendererAlignmentModeNick | GtkSource.GutterRendererAlignmentMode;
|
|
274
|
+
'background-rgba'?: Gdk.RGBA;
|
|
275
|
+
/** @default FALSE */
|
|
276
|
+
'background-set'?: boolean;
|
|
277
|
+
/** @default 0 */
|
|
278
|
+
size?: number;
|
|
279
|
+
/**
|
|
280
|
+
* The visibility of the renderer.
|
|
281
|
+
* @default TRUE
|
|
282
|
+
*/
|
|
283
|
+
visible?: boolean;
|
|
284
|
+
/**
|
|
285
|
+
* The horizontal alignment of the renderer.
|
|
286
|
+
* @default 0.000000
|
|
287
|
+
*/
|
|
288
|
+
xalign?: number;
|
|
289
|
+
/**
|
|
290
|
+
* The left and right padding of the renderer.
|
|
291
|
+
* @default 0
|
|
292
|
+
*/
|
|
293
|
+
xpad?: number;
|
|
294
|
+
/**
|
|
295
|
+
* The vertical alignment of the renderer.
|
|
296
|
+
* @default 0.000000
|
|
297
|
+
*/
|
|
298
|
+
yalign?: number;
|
|
299
|
+
/**
|
|
300
|
+
* The top and bottom padding of the renderer.
|
|
301
|
+
* @default 0
|
|
302
|
+
*/
|
|
303
|
+
ypad?: number;
|
|
304
|
+
}
|
|
305
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
306
|
+
export type GtkSourceGutterRendererConstructOnly = GInitiallyUnownedConstructOnly;
|
|
307
|
+
|
|
308
|
+
export interface GtkSourceGutterRendererPixbufProps extends GtkSourceGutterRendererProps {
|
|
309
|
+
gicon?: Gio.Icon;
|
|
310
|
+
/** @default NULL */
|
|
311
|
+
'icon-name'?: string;
|
|
312
|
+
pixbuf?: GdkPixbuf.Pixbuf;
|
|
313
|
+
}
|
|
314
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
315
|
+
export type GtkSourceGutterRendererPixbufConstructOnly = GtkSourceGutterRendererConstructOnly;
|
|
316
|
+
|
|
317
|
+
export interface GtkSourceGutterRendererTextProps extends GtkSourceGutterRendererProps {
|
|
318
|
+
/** @default NULL */
|
|
319
|
+
markup?: string;
|
|
320
|
+
/** @default NULL */
|
|
321
|
+
text?: string;
|
|
322
|
+
}
|
|
323
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
324
|
+
export type GtkSourceGutterRendererTextConstructOnly = GtkSourceGutterRendererConstructOnly;
|
|
325
|
+
|
|
326
|
+
export interface GtkSourceLanguageProps extends GObjectProps {
|
|
327
|
+
}
|
|
328
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
329
|
+
export type GtkSourceLanguageConstructOnly = GObjectConstructOnly;
|
|
330
|
+
|
|
331
|
+
export interface GtkSourceLanguageManagerProps extends GObjectProps {
|
|
332
|
+
'search-path'?: string[];
|
|
333
|
+
}
|
|
334
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
335
|
+
export type GtkSourceLanguageManagerConstructOnly = GObjectConstructOnly;
|
|
336
|
+
|
|
337
|
+
export interface GtkSourceMarkProps extends GtkTextMarkProps {
|
|
338
|
+
/**
|
|
339
|
+
* The category of the #GtkSourceMark, classifies the mark and controls which pixbuf is used and with which priority it is drawn.
|
|
340
|
+
* @default NULL
|
|
341
|
+
*/
|
|
342
|
+
category?: string;
|
|
343
|
+
}
|
|
344
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
345
|
+
export type GtkSourceMarkConstructOnly = GtkTextMarkConstructOnly | 'category';
|
|
346
|
+
|
|
347
|
+
export interface GtkSourceMarkAttributesProps extends GObjectProps {
|
|
348
|
+
/** A color used for background of a line. */
|
|
349
|
+
background?: Gdk.RGBA;
|
|
350
|
+
/** A #GIcon that may be a base of a rendered icon. */
|
|
351
|
+
gicon?: Gio.Icon;
|
|
352
|
+
/**
|
|
353
|
+
* An icon name that may be a base of a rendered icon.
|
|
354
|
+
* @default NULL
|
|
355
|
+
*/
|
|
356
|
+
'icon-name'?: string;
|
|
357
|
+
/** A #GdkPixbuf that may be a base of a rendered icon. */
|
|
358
|
+
pixbuf?: GdkPixbuf.Pixbuf;
|
|
359
|
+
}
|
|
360
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
361
|
+
export type GtkSourceMarkAttributesConstructOnly = GObjectConstructOnly;
|
|
362
|
+
|
|
363
|
+
export interface GtkSourcePrintCompositorProps extends GObjectProps {
|
|
364
|
+
/**
|
|
365
|
+
* Name of the font used for the text body.
|
|
366
|
+
* @since 2.2
|
|
367
|
+
* @default NULL
|
|
368
|
+
*/
|
|
369
|
+
'body-font-name'?: string;
|
|
370
|
+
/**
|
|
371
|
+
* The GtkSourceBuffer object to print.
|
|
372
|
+
* @since 2.2
|
|
373
|
+
*/
|
|
374
|
+
buffer?: GtkSource.Buffer;
|
|
375
|
+
/**
|
|
376
|
+
* Name of the font used to print page footer.
|
|
377
|
+
* @since 2.2
|
|
378
|
+
* @default NULL
|
|
379
|
+
*/
|
|
380
|
+
'footer-font-name'?: string;
|
|
381
|
+
/**
|
|
382
|
+
* Name of the font used to print page header.
|
|
383
|
+
* @since 2.2
|
|
384
|
+
* @default NULL
|
|
385
|
+
*/
|
|
386
|
+
'header-font-name'?: string;
|
|
387
|
+
/**
|
|
388
|
+
* Whether to print the document with highlighted syntax.
|
|
389
|
+
* @since 2.2
|
|
390
|
+
* @default TRUE
|
|
391
|
+
*/
|
|
392
|
+
'highlight-syntax'?: boolean;
|
|
393
|
+
/**
|
|
394
|
+
* Name of the font used to print line numbers on the left margin.
|
|
395
|
+
* @since 2.2
|
|
396
|
+
* @default NULL
|
|
397
|
+
*/
|
|
398
|
+
'line-numbers-font-name'?: string;
|
|
399
|
+
/**
|
|
400
|
+
* Whether to print a footer in each page.
|
|
401
|
+
* @since 2.2
|
|
402
|
+
* @default FALSE
|
|
403
|
+
*/
|
|
404
|
+
'print-footer'?: boolean;
|
|
405
|
+
/**
|
|
406
|
+
* Whether to print a header in each page.
|
|
407
|
+
* @since 2.2
|
|
408
|
+
* @default FALSE
|
|
409
|
+
*/
|
|
410
|
+
'print-header'?: boolean;
|
|
411
|
+
/**
|
|
412
|
+
* Interval of printed line numbers.
|
|
413
|
+
* @since 2.2
|
|
414
|
+
* @default 1
|
|
415
|
+
*/
|
|
416
|
+
'print-line-numbers'?: number;
|
|
417
|
+
/**
|
|
418
|
+
* Width of a tab character expressed in spaces.
|
|
419
|
+
* @since 2.2
|
|
420
|
+
* @default 8
|
|
421
|
+
*/
|
|
422
|
+
'tab-width'?: number;
|
|
423
|
+
/**
|
|
424
|
+
* Whether to wrap lines never, at word boundaries, or at character boundaries.
|
|
425
|
+
* @since 2.2
|
|
426
|
+
* @default GTK_WRAP_NONE
|
|
427
|
+
*/
|
|
428
|
+
'wrap-mode'?: GtkWrapModeNick | Gtk.WrapMode;
|
|
429
|
+
}
|
|
430
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
431
|
+
export type GtkSourcePrintCompositorConstructOnly = GObjectConstructOnly | 'buffer';
|
|
432
|
+
|
|
433
|
+
export interface GtkSourceRegionProps extends GObjectProps {
|
|
434
|
+
/**
|
|
435
|
+
* The #GtkTextBuffer.
|
|
436
|
+
* @since 3.22
|
|
437
|
+
*/
|
|
438
|
+
buffer?: Gtk.TextBuffer | null;
|
|
439
|
+
}
|
|
440
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
441
|
+
export type GtkSourceRegionConstructOnly = GObjectConstructOnly | 'buffer';
|
|
442
|
+
|
|
443
|
+
export interface GtkSourceSearchContextProps extends GObjectProps {
|
|
444
|
+
/**
|
|
445
|
+
* The #GtkSourceBuffer associated to the search context.
|
|
446
|
+
* @since 3.10
|
|
447
|
+
*/
|
|
448
|
+
buffer?: GtkSource.Buffer;
|
|
449
|
+
/**
|
|
450
|
+
* Highlight the search occurrences.
|
|
451
|
+
* @since 3.10
|
|
452
|
+
* @default TRUE
|
|
453
|
+
*/
|
|
454
|
+
highlight?: boolean;
|
|
455
|
+
/**
|
|
456
|
+
* A #GtkSourceStyle, or %NULL for theme's scheme default style.
|
|
457
|
+
* @since 299.2
|
|
458
|
+
*/
|
|
459
|
+
'match-style'?: GtkSource.Style;
|
|
460
|
+
/**
|
|
461
|
+
* The #GtkSourceSearchSettings associated to the search context.
|
|
462
|
+
* @since 3.10
|
|
463
|
+
*/
|
|
464
|
+
settings?: GtkSource.SearchSettings;
|
|
465
|
+
}
|
|
466
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
467
|
+
export type GtkSourceSearchContextConstructOnly = GObjectConstructOnly | 'buffer' | 'settings';
|
|
468
|
+
|
|
469
|
+
export interface GtkSourceSearchSettingsProps extends GObjectProps {
|
|
470
|
+
/**
|
|
471
|
+
* If %TRUE, a search match must start and end a word.
|
|
472
|
+
* @since 3.10
|
|
473
|
+
* @default FALSE
|
|
474
|
+
*/
|
|
475
|
+
'at-word-boundaries'?: boolean;
|
|
476
|
+
/**
|
|
477
|
+
* Whether the search is case sensitive.
|
|
478
|
+
* @since 3.10
|
|
479
|
+
* @default FALSE
|
|
480
|
+
*/
|
|
481
|
+
'case-sensitive'?: boolean;
|
|
482
|
+
/**
|
|
483
|
+
* Search by regular expressions with #GtkSourceSearchSettings:search-text as the pattern.
|
|
484
|
+
* @since 3.10
|
|
485
|
+
* @default FALSE
|
|
486
|
+
*/
|
|
487
|
+
'regex-enabled'?: boolean;
|
|
488
|
+
/**
|
|
489
|
+
* A search string, or %NULL if the search is disabled.
|
|
490
|
+
* @since 3.10
|
|
491
|
+
* @default NULL
|
|
492
|
+
*/
|
|
493
|
+
'search-text'?: string | null;
|
|
494
|
+
/**
|
|
495
|
+
* For a forward search, continue at the beginning of the buffer if no search occurrence is found.
|
|
496
|
+
* @since 3.10
|
|
497
|
+
* @default FALSE
|
|
498
|
+
*/
|
|
499
|
+
'wrap-around'?: boolean;
|
|
500
|
+
}
|
|
501
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
502
|
+
export type GtkSourceSearchSettingsConstructOnly = GObjectConstructOnly;
|
|
503
|
+
|
|
504
|
+
export interface GtkSourceSpaceDrawerProps extends GObjectProps {
|
|
505
|
+
/**
|
|
506
|
+
* Whether the #GtkSourceSpaceDrawer:matrix property is enabled.
|
|
507
|
+
* @since 3.24
|
|
508
|
+
* @default FALSE
|
|
509
|
+
*/
|
|
510
|
+
'enable-matrix'?: boolean;
|
|
511
|
+
/**
|
|
512
|
+
* The :matrix property is a #GVariant property to specify where and what kind of white spaces to draw.
|
|
513
|
+
* @since 3.24
|
|
514
|
+
*/
|
|
515
|
+
matrix?: GLib.Variant;
|
|
516
|
+
}
|
|
517
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
518
|
+
export type GtkSourceSpaceDrawerConstructOnly = GObjectConstructOnly;
|
|
519
|
+
|
|
520
|
+
export interface GtkSourceStyleSchemeProps extends GObjectProps {
|
|
521
|
+
}
|
|
522
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
523
|
+
export type GtkSourceStyleSchemeConstructOnly = GObjectConstructOnly;
|
|
524
|
+
|
|
525
|
+
export interface GtkSourceStyleSchemeManagerProps extends GObjectProps {
|
|
526
|
+
}
|
|
527
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
528
|
+
export type GtkSourceStyleSchemeManagerConstructOnly = GObjectConstructOnly;
|
|
529
|
+
|
|
530
|
+
export interface GtkSourceTagProps extends GtkTextTagProps {
|
|
531
|
+
/**
|
|
532
|
+
* Whether to draw white spaces.
|
|
533
|
+
* @since 3.20
|
|
534
|
+
* @default FALSE
|
|
535
|
+
*/
|
|
536
|
+
'draw-spaces'?: boolean;
|
|
537
|
+
/**
|
|
538
|
+
* Whether the #GtkSourceTag:draw-spaces property is set and must be taken into account.
|
|
539
|
+
* @since 3.20
|
|
540
|
+
* @default FALSE
|
|
541
|
+
*/
|
|
542
|
+
'draw-spaces-set'?: boolean;
|
|
543
|
+
}
|
|
544
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
545
|
+
export type GtkSourceTagConstructOnly = GtkTextTagConstructOnly;
|
|
546
|
+
|
|
65
547
|
export interface GtkSourceViewProps extends GtkTextViewProps, GtkBuildableProps, GtkScrollableProps {
|
|
66
548
|
/**
|
|
67
549
|
* Whether to enable auto indentation.
|
|
@@ -161,7 +643,11 @@ export interface Widgets {
|
|
|
161
643
|
};
|
|
162
644
|
}
|
|
163
645
|
|
|
164
|
-
/**
|
|
646
|
+
/**
|
|
647
|
+
* Every GType this namespace can create AND put on screen. A consumer derives its own
|
|
648
|
+
* tag map. For everything a UI file can instantiate — layout managers, event
|
|
649
|
+
* controllers, cell renderers, `GtkSizeGroup` — read `DECLS` below.
|
|
650
|
+
*/
|
|
165
651
|
export type WidgetGType = keyof Widgets;
|
|
166
652
|
|
|
167
653
|
// ---------------------------------------------------------------------------
|
|
@@ -213,7 +699,38 @@ export const PROVENANCE: {
|
|
|
213
699
|
readonly childHolders: number;
|
|
214
700
|
readonly droppedBases: readonly string[];
|
|
215
701
|
readonly inlinedBases: readonly string[];
|
|
702
|
+
/** `<decl>.<prop>` for every property printed `never` because TypeScript has no value for it. */
|
|
216
703
|
readonly unsettableProps: readonly string[];
|
|
704
|
+
/**
|
|
705
|
+
* `<decl>.<prop>: <Ns>.<Name>` for every property printed `never` because the model
|
|
706
|
+
* could not resolve its type across a namespace boundary — two independently released
|
|
707
|
+
* GIRs disagreeing, which is what the main emitter answers `never` for as well.
|
|
708
|
+
*/
|
|
709
|
+
readonly unresolvedProps: readonly string[];
|
|
710
|
+
/**
|
|
711
|
+
* `c:identifier-prefixes` from the GIR, verbatim and in order — `['G']` for Gio.
|
|
712
|
+
*
|
|
713
|
+
* The C prefix a type REFERENCE needs: resolving `Gio.Icon` means producing `GIcon`,
|
|
714
|
+
* and nothing else in this package states that `Gio` spells itself `G`. Carried rather
|
|
715
|
+
* than derived because GIR carries it, and a derivation over the `DECLS` keys is wrong
|
|
716
|
+
* wherever the C prefix is not a prefix of the type NAMES: gdkx11-4.0 and gdkwayland-4.0
|
|
717
|
+
* both state `Gdk` while every key they declare begins `GdkX11`/`GdkWayland`.
|
|
718
|
+
*
|
|
719
|
+
* Empty where the GIR states none — 17 of the 627 emitting namespaces — because
|
|
720
|
+
* inventing the namespace name there is a confident wrong answer in place of a missing
|
|
721
|
+
* one. A LIST because 20 of them state more than one, which no single string expresses.
|
|
722
|
+
*/
|
|
723
|
+
readonly identifierPrefixes: readonly string[];
|
|
724
|
+
/**
|
|
725
|
+
* Sibling vocabularies this one's DECLARATIONS come from, as import specifiers.
|
|
726
|
+
*
|
|
727
|
+
* A chain link with no `OWN_PROPS` row is ambiguous on its own — `GtkSeparator` has no
|
|
728
|
+
* settable property, `GApplication` has its properties in another package — and this
|
|
729
|
+
* list is what tells the two apart. Enum and bitfield NUMBERS are not here: those are
|
|
730
|
+
* carried in this file, because a `PROP_ENUMS` row naming a foreign GType gives a
|
|
731
|
+
* consumer nothing to load and a `.ui` file using the property never names its owner.
|
|
732
|
+
*/
|
|
733
|
+
readonly requiredVocabularies: readonly string[];
|
|
217
734
|
};
|
|
218
735
|
|
|
219
736
|
/** Declaration GType -> its own settable properties, as GObject registered them. */
|
|
@@ -227,7 +744,17 @@ export const OWN_PROPS: Readonly<Record<string, readonly string[]>>;
|
|
|
227
744
|
*/
|
|
228
745
|
export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
|
|
229
746
|
|
|
230
|
-
/**
|
|
747
|
+
/**
|
|
748
|
+
* Instantiable GType -> every declaration its members come from, self first.
|
|
749
|
+
*
|
|
750
|
+
* The key set is what a UI description file can NAME: every registered, non-abstract
|
|
751
|
+
* class this namespace declares. GtkBuilder resolves a `<object class="…">` through
|
|
752
|
+
* `g_type_from_name`, which knows nothing about widgets, so this is wider than
|
|
753
|
+
* `Widgets` by design — `GtkSizeGroup`, `GtkTextTag`, every `GtkEventController`
|
|
754
|
+
* and every `GtkCellRenderer` are here and are not widgets.
|
|
755
|
+
*
|
|
756
|
+
* `Widgets` and `CHILD_HOLDERS` are the narrower questions and answer them unchanged.
|
|
757
|
+
*/
|
|
231
758
|
export const DECLS: Readonly<Record<string, readonly string[]>>;
|
|
232
759
|
|
|
233
760
|
/** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
|
|
@@ -239,8 +766,8 @@ export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
|
|
|
239
766
|
/**
|
|
240
767
|
* `<enum GType>.<nick>` -> the integer GObject registers for it, from GIR's `value`.
|
|
241
768
|
*
|
|
242
|
-
* Position in `ENUM_NICKS` is NOT this number. Counting is wrong on 6 of the
|
|
243
|
-
* GTK 4 vocabulary carries --
|
|
769
|
+
* Position in `ENUM_NICKS` is NOT this number. Counting is wrong on 6 of the 137 enums a
|
|
770
|
+
* GTK 4 vocabulary carries -- 112 in Gtk-4.0 and 25 in Adw-1: `GtkResponseType` runs -1 to -11, `GtkTextWindowType` starts
|
|
244
771
|
* at 1, `GtkOrdering` and `GtkConstraintRelation` are -1/0/1, `GtkAlign` has two names
|
|
245
772
|
* on one value, and `GtkConstraintStrength.required` is 1001001000 where counting says 0.
|
|
246
773
|
*
|
|
@@ -278,10 +805,11 @@ export const ENUM_VALUES_UNREADABLE: Readonly<Record<string, string>>;
|
|
|
278
805
|
*
|
|
279
806
|
* `ENUM_NICKS` carries no bitfield, because GObject cannot resolve a nick SET; that says
|
|
280
807
|
* nothing about a single member's number, and the number is what a host without GI needs.
|
|
281
|
-
*
|
|
282
|
-
*
|
|
283
|
-
* among them. Counting is worst here:
|
|
284
|
-
*
|
|
808
|
+
* 23 settable properties in Gtk-4.0 and Adw-1 are bitfield-typed and are declared bare
|
|
809
|
+
* `number` -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`, `AdwTabView:shortcuts`,
|
|
810
|
+
* `GtkDropTarget:actions` among them. Counting is worst here: 119 of the 156 Gtk-4.0
|
|
811
|
+
* bitfield members this vocabulary carries disagree with their declaration position,
|
|
812
|
+
* against 29 of 672 enumeration members.
|
|
285
813
|
*
|
|
286
814
|
* Combine with `|` as GObject does. There is no nick table to pair this with, so a name
|
|
287
815
|
* here is resolvable and a SET still is not.
|
|
@@ -305,7 +833,7 @@ export const FLAG_VALUES_UNREADABLE: Readonly<Record<string, string>>;
|
|
|
305
833
|
*
|
|
306
834
|
* The GType named here is not always one THIS module gives numbers for. A nick vocabulary is
|
|
307
835
|
* emitted once, by the namespace that owns the enum, so `AdwComboRow.search-match-mode` names
|
|
308
|
-
* `GtkStringFilterMatchMode` and its rows are in `@girs/gtk-4.0/vocabulary` —
|
|
836
|
+
* `GtkStringFilterMatchMode` and its rows are in `@girs/gtk-4.0/vocabulary` — 83 of the 909
|
|
309
837
|
* entries in a full run resolve only with the owner's vocabulary loaded beside this one. An
|
|
310
838
|
* owner with no vocabulary of its own (Gdk, Pango) is inlined here instead, so every entry
|
|
311
839
|
* resolves against SOME module.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// The widget vocabulary of GtkSource-300 as runtime data.
|
|
2
2
|
//
|
|
3
|
-
// GENERATED — do not edit. Provenance: GtkSource-300 — dropped empty base(s):
|
|
3
|
+
// GENERATED — do not edit. Provenance: GtkSource-300 — 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,28 +11,87 @@ export const PROVENANCE = {
|
|
|
11
11
|
version: '300',
|
|
12
12
|
libraryVersion: null,
|
|
13
13
|
childHolders: 0,
|
|
14
|
-
droppedBases: ['
|
|
14
|
+
droppedBases: ['Atk.ImplementorIface'],
|
|
15
15
|
inlinedBases: [],
|
|
16
16
|
unsettableProps: [],
|
|
17
|
+
unresolvedProps: [],
|
|
18
|
+
identifierPrefixes: ['GtkSource'],
|
|
19
|
+
requiredVocabularies: ['@girs/gobject-2.0/vocabulary', '@girs/gtk-3.0/vocabulary'],
|
|
17
20
|
};
|
|
18
21
|
|
|
19
22
|
export const OWN_PROPS = {
|
|
23
|
+
GtkSourceBuffer: ['highlight-matching-brackets', 'highlight-syntax', 'implicit-trailing-newline', 'language', 'max-undo-levels', 'style-scheme', 'undo-manager'],
|
|
24
|
+
GtkSourceCompletion: ['accelerators', 'auto-complete-delay', 'proposal-page-size', 'provider-page-size', 'remember-info-visibility', 'select-on-show', 'show-headers', 'show-icons', 'view'],
|
|
25
|
+
GtkSourceCompletionContext: ['activation', 'completion', 'iter'],
|
|
26
|
+
GtkSourceFile: ['location'],
|
|
27
|
+
GtkSourceFileLoader: ['buffer', 'file', 'input-stream', 'location', 'max-size'],
|
|
28
|
+
GtkSourceFileSaver: ['buffer', 'compression-type', 'encoding', 'file', 'flags', 'location', 'newline-type'],
|
|
29
|
+
GtkSourceGutter: ['view', 'window-type'],
|
|
30
|
+
GtkSourceGutterRenderer: ['alignment-mode', 'background-rgba', 'background-set', 'size', 'visible', 'xalign', 'xpad', 'yalign', 'ypad'],
|
|
31
|
+
GtkSourceGutterRendererPixbuf: ['gicon', 'icon-name', 'pixbuf'],
|
|
32
|
+
GtkSourceGutterRendererText: ['markup', 'text'],
|
|
33
|
+
GtkSourceLanguageManager: ['search-path'],
|
|
34
|
+
GtkSourceMark: ['category'],
|
|
35
|
+
GtkSourceMarkAttributes: ['background', 'gicon', 'icon-name', 'pixbuf'],
|
|
36
|
+
GtkSourcePrintCompositor: ['body-font-name', 'buffer', 'footer-font-name', 'header-font-name', 'highlight-syntax', 'line-numbers-font-name', 'print-footer', 'print-header', 'print-line-numbers', 'tab-width', 'wrap-mode'],
|
|
37
|
+
GtkSourceRegion: ['buffer'],
|
|
38
|
+
GtkSourceSearchContext: ['buffer', 'highlight', 'match-style', 'settings'],
|
|
39
|
+
GtkSourceSearchSettings: ['at-word-boundaries', 'case-sensitive', 'regex-enabled', 'search-text', 'wrap-around'],
|
|
40
|
+
GtkSourceSpaceDrawer: ['enable-matrix', 'matrix'],
|
|
41
|
+
GtkSourceTag: ['draw-spaces', 'draw-spaces-set'],
|
|
20
42
|
GtkSourceView: ['auto-indent', 'highlight-current-line', 'indent-on-tab', 'indent-width', 'insert-spaces-instead-of-tabs', 'right-margin-position', 'show-line-marks', 'show-line-numbers', 'show-right-margin', 'smart-backspace', 'smart-home-end', 'tab-width'],
|
|
21
43
|
};
|
|
22
44
|
|
|
23
45
|
export const OWN_SIGNALS = {
|
|
46
|
+
GtkSourceBuffer: ['bracket-matched', 'highlight-updated', 'redo', 'source-mark-updated', 'undo'],
|
|
47
|
+
GtkSourceCompletion: ['activate-proposal', 'hide', 'move-cursor', 'move-page', 'populate-context', 'show'],
|
|
48
|
+
GtkSourceCompletionContext: ['cancelled'],
|
|
49
|
+
GtkSourceCompletionProposal: ['changed'],
|
|
50
|
+
GtkSourceGutterRenderer: ['activate', 'query-activatable', 'query-data', 'query-tooltip', 'queue-draw'],
|
|
51
|
+
GtkSourceMarkAttributes: ['query-tooltip-markup', 'query-tooltip-text'],
|
|
52
|
+
GtkSourceStyleSchemeManager: ['changed'],
|
|
24
53
|
GtkSourceView: ['change-case', 'change-number', 'join-lines', 'line-mark-activated', 'move-lines', 'move-to-matching-bracket', 'move-words', 'redo', 'show-completion', 'smart-home-end', 'undo'],
|
|
25
54
|
};
|
|
26
55
|
|
|
56
|
+
// Every GType this namespace can INSTANTIATE -> the declarations its members come from.
|
|
57
|
+
//
|
|
58
|
+
// The key set is what a UI description file can name: a registered, non-abstract class.
|
|
59
|
+
// Not "every widget" — GtkBuilder resolves a name through `g_type_from_name`, which knows
|
|
60
|
+
// nothing about widgets, and a `.ui` file is full of `GtkSizeGroup`, `GtkTextTag`,
|
|
61
|
+
// `GtkEventController*` and `GtkCellRenderer*`. Use `Widgets` and `CHILD_HOLDERS`
|
|
62
|
+
// below for the narrower questions; they did not move.
|
|
27
63
|
export const DECLS = {
|
|
28
|
-
|
|
29
|
-
|
|
64
|
+
GtkSourceBuffer: ['GtkSourceBuffer', 'GtkTextBuffer', 'GObject'],
|
|
65
|
+
GtkSourceCompletion: ['GtkSourceCompletion', 'GObject'],
|
|
66
|
+
GtkSourceCompletionContext: ['GtkSourceCompletionContext', 'GInitiallyUnowned', 'GObject'],
|
|
67
|
+
GtkSourceCompletionInfo: ['GtkSourceCompletionInfo', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable'],
|
|
68
|
+
GtkSourceCompletionItem: ['GtkSourceCompletionItem', 'GObject', 'GtkSourceCompletionProposal'],
|
|
69
|
+
GtkSourceFile: ['GtkSourceFile', 'GObject'],
|
|
70
|
+
GtkSourceFileLoader: ['GtkSourceFileLoader', 'GObject'],
|
|
71
|
+
GtkSourceFileSaver: ['GtkSourceFileSaver', 'GObject'],
|
|
72
|
+
GtkSourceGutter: ['GtkSourceGutter', 'GObject'],
|
|
73
|
+
GtkSourceGutterRendererPixbuf: ['GtkSourceGutterRendererPixbuf', 'GtkSourceGutterRenderer', 'GInitiallyUnowned', 'GObject'],
|
|
74
|
+
GtkSourceGutterRendererText: ['GtkSourceGutterRendererText', 'GtkSourceGutterRenderer', 'GInitiallyUnowned', 'GObject'],
|
|
75
|
+
GtkSourceLanguage: ['GtkSourceLanguage', 'GObject'],
|
|
76
|
+
GtkSourceLanguageManager: ['GtkSourceLanguageManager', 'GObject'],
|
|
77
|
+
GtkSourceMark: ['GtkSourceMark', 'GtkTextMark', 'GObject'],
|
|
78
|
+
GtkSourceMarkAttributes: ['GtkSourceMarkAttributes', 'GObject'],
|
|
79
|
+
GtkSourcePrintCompositor: ['GtkSourcePrintCompositor', 'GObject'],
|
|
80
|
+
GtkSourceRegion: ['GtkSourceRegion', 'GObject'],
|
|
81
|
+
GtkSourceSearchContext: ['GtkSourceSearchContext', 'GObject'],
|
|
82
|
+
GtkSourceSearchSettings: ['GtkSourceSearchSettings', 'GObject'],
|
|
83
|
+
GtkSourceSpaceDrawer: ['GtkSourceSpaceDrawer', 'GObject'],
|
|
84
|
+
GtkSourceStyleScheme: ['GtkSourceStyleScheme', 'GObject'],
|
|
85
|
+
GtkSourceStyleSchemeManager: ['GtkSourceStyleSchemeManager', 'GObject'],
|
|
86
|
+
GtkSourceTag: ['GtkSourceTag', 'GtkTextTag', 'GObject'],
|
|
87
|
+
GtkSourceView: ['GtkSourceView', 'GtkTextView', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkScrollable'],
|
|
30
88
|
};
|
|
31
89
|
|
|
32
|
-
// The GTypes above that are
|
|
33
|
-
//
|
|
34
|
-
//
|
|
35
|
-
//
|
|
90
|
+
// The GTypes above that ARE widgets are the `Widgets` map in the sibling `.d.ts`; these
|
|
91
|
+
// are the ones that merely HOLD one, through `set_child`/`get_child`, descending from
|
|
92
|
+
// `GObject.Object`. A renderer places them like a container; a check asking "is this a
|
|
93
|
+
// widget" must not count them. Derived from the accessor pair, never from a list — the
|
|
94
|
+
// count is in the provenance line above.
|
|
36
95
|
export const CHILD_HOLDERS = [];
|
|
37
96
|
|
|
38
97
|
export const ENUM_NICKS = {
|
|
@@ -45,6 +104,8 @@ export const ENUM_NICKS = {
|
|
|
45
104
|
GtkSourceSmartHomeEndType: ['disabled', 'before', 'after', 'always'],
|
|
46
105
|
GtkSourceStyleSchemeKind: ['light', 'dark', 'light-only', 'dark-only'],
|
|
47
106
|
GtkSourceViewGutterPosition: ['lines', 'marks'],
|
|
107
|
+
GtkTextWindowType: ['private', 'widget', 'text', 'left', 'right', 'top', 'bottom'],
|
|
108
|
+
GtkWrapMode: ['none', 'char', 'word', 'word-char'],
|
|
48
109
|
};
|
|
49
110
|
|
|
50
111
|
// The number behind each of those nicks, read from GIR's own `value` attribute.
|
|
@@ -52,7 +113,7 @@ export const ENUM_NICKS = {
|
|
|
52
113
|
// It ships because position in `ENUM_NICKS` is not the value and a consumer with no
|
|
53
114
|
// typelib has no other way to learn it: a surface without GI still has to hand GObject an
|
|
54
115
|
// integer. The alternative a consumer reaches for first is counting, and counting is wrong
|
|
55
|
-
// on 6 of the
|
|
116
|
+
// on 6 of the 137 enums a GTK 4 vocabulary carries (112 in Gtk-4.0, 25 in Adw-1) --
|
|
56
117
|
// `GtkResponseType` runs -1 down to
|
|
57
118
|
// -11, `GtkTextWindowType` starts at 1, and `GtkConstraintStrength.required` is
|
|
58
119
|
// 1001001000 where counting answers 0.
|
|
@@ -90,6 +151,17 @@ export const ENUM_VALUES = {
|
|
|
90
151
|
'GtkSourceStyleSchemeKind.light-only': 2,
|
|
91
152
|
'GtkSourceViewGutterPosition.lines': -30,
|
|
92
153
|
'GtkSourceViewGutterPosition.marks': -20,
|
|
154
|
+
'GtkTextWindowType.bottom': 6,
|
|
155
|
+
'GtkTextWindowType.left': 3,
|
|
156
|
+
'GtkTextWindowType.private': 0,
|
|
157
|
+
'GtkTextWindowType.right': 4,
|
|
158
|
+
'GtkTextWindowType.text': 2,
|
|
159
|
+
'GtkTextWindowType.top': 5,
|
|
160
|
+
'GtkTextWindowType.widget': 1,
|
|
161
|
+
'GtkWrapMode.char': 1,
|
|
162
|
+
'GtkWrapMode.none': 0,
|
|
163
|
+
'GtkWrapMode.word': 2,
|
|
164
|
+
'GtkWrapMode.word-char': 3,
|
|
93
165
|
};
|
|
94
166
|
|
|
95
167
|
// The nicks GIR marks `deprecated="1"`.
|
|
@@ -118,11 +190,12 @@ export const ENUM_VALUES_UNREADABLE = {};
|
|
|
118
190
|
// The number behind each member of a registered BITFIELD, keyed the same way.
|
|
119
191
|
//
|
|
120
192
|
// `ENUM_NICKS` refuses a bitfield because GObject cannot resolve a nick SET, and that
|
|
121
|
-
// reason says nothing about one member's number.
|
|
122
|
-
//
|
|
123
|
-
// `AdwTabView:shortcuts`, ... -- and they are typed bare
|
|
124
|
-
// has nothing to compute one from. Counting is worst
|
|
125
|
-
//
|
|
193
|
+
// reason says nothing about one member's number. 23 settable properties in Gtk-4.0 and
|
|
194
|
+
// Adw-1 are bitfield-typed -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`,
|
|
195
|
+
// `AdwTabView:shortcuts`, `GtkDropTarget:actions`, ... -- and they are typed bare
|
|
196
|
+
// `number`, so a host without GI has nothing to compute one from. Counting is worst
|
|
197
|
+
// exactly here: 119 of the 156 Gtk-4.0 bitfield members this vocabulary carries disagree
|
|
198
|
+
// with their declaration position, against 29 of 672 enumeration members.
|
|
126
199
|
//
|
|
127
200
|
// A table of its own rather than more rows in `ENUM_VALUES`, so that "every nick in
|
|
128
201
|
// `ENUM_NICKS` has a number or a declared reason" stays a claim about one set.
|
|
@@ -172,9 +245,16 @@ export const FLAG_VALUES_UNREADABLE = {};
|
|
|
172
245
|
// one are both entries a consumer would resolve wrongly, so neither is written.
|
|
173
246
|
//
|
|
174
247
|
// A GType named here has numbers in SOME vocabulary, not necessarily this one: the namespace
|
|
175
|
-
// that OWNS an enum publishes it, so
|
|
248
|
+
// that OWNS an enum publishes it, so 83 of the 909 entries a full run emits want the owner's
|
|
176
249
|
// vocabulary loaded too. Owners that emit none (Gdk, Pango) are inlined into the tables above.
|
|
177
250
|
export const PROP_ENUMS = {
|
|
251
|
+
'GtkSourceCompletionContext.activation': 'GtkSourceCompletionActivation',
|
|
252
|
+
'GtkSourceFileSaver.compression-type': 'GtkSourceCompressionType',
|
|
253
|
+
'GtkSourceFileSaver.flags': 'GtkSourceFileSaverFlags',
|
|
254
|
+
'GtkSourceFileSaver.newline-type': 'GtkSourceNewlineType',
|
|
255
|
+
'GtkSourceGutter.window-type': 'GtkTextWindowType',
|
|
256
|
+
'GtkSourceGutterRenderer.alignment-mode': 'GtkSourceGutterRendererAlignmentMode',
|
|
257
|
+
'GtkSourcePrintCompositor.wrap-mode': 'GtkWrapMode',
|
|
178
258
|
'GtkSourceView.smart-home-end': 'GtkSourceSmartHomeEndType',
|
|
179
259
|
};
|
|
180
260
|
|
|
@@ -206,6 +286,47 @@ export const ARIA_VALUE_ENUMS = {};
|
|
|
206
286
|
export const SLOT_CANDIDATES = {};
|
|
207
287
|
|
|
208
288
|
export const SINCE = {
|
|
289
|
+
'GtkSourceBuffer.implicit-trailing-newline': '3.14',
|
|
290
|
+
'GtkSourceBuffer::bracket-matched': '2.12',
|
|
291
|
+
'GtkSourceFile.location': '3.14',
|
|
292
|
+
'GtkSourceFileLoader.buffer': '3.14',
|
|
293
|
+
'GtkSourceFileLoader.file': '3.14',
|
|
294
|
+
'GtkSourceFileLoader.input-stream': '3.14',
|
|
295
|
+
'GtkSourceFileLoader.location': '3.14',
|
|
296
|
+
'GtkSourceFileLoader.max-size': '299.6',
|
|
297
|
+
'GtkSourceFileSaver.buffer': '3.14',
|
|
298
|
+
'GtkSourceFileSaver.compression-type': '3.14',
|
|
299
|
+
'GtkSourceFileSaver.encoding': '3.14',
|
|
300
|
+
'GtkSourceFileSaver.file': '3.14',
|
|
301
|
+
'GtkSourceFileSaver.flags': '3.14',
|
|
302
|
+
'GtkSourceFileSaver.location': '3.14',
|
|
303
|
+
'GtkSourceFileSaver.newline-type': '3.14',
|
|
304
|
+
'GtkSourcePrintCompositor.body-font-name': '2.2',
|
|
305
|
+
'GtkSourcePrintCompositor.buffer': '2.2',
|
|
306
|
+
'GtkSourcePrintCompositor.footer-font-name': '2.2',
|
|
307
|
+
'GtkSourcePrintCompositor.header-font-name': '2.2',
|
|
308
|
+
'GtkSourcePrintCompositor.highlight-syntax': '2.2',
|
|
309
|
+
'GtkSourcePrintCompositor.line-numbers-font-name': '2.2',
|
|
310
|
+
'GtkSourcePrintCompositor.print-footer': '2.2',
|
|
311
|
+
'GtkSourcePrintCompositor.print-header': '2.2',
|
|
312
|
+
'GtkSourcePrintCompositor.print-line-numbers': '2.2',
|
|
313
|
+
'GtkSourcePrintCompositor.tab-width': '2.2',
|
|
314
|
+
'GtkSourcePrintCompositor.wrap-mode': '2.2',
|
|
315
|
+
'GtkSourceRegion.buffer': '3.22',
|
|
316
|
+
'GtkSourceSearchContext.buffer': '3.10',
|
|
317
|
+
'GtkSourceSearchContext.highlight': '3.10',
|
|
318
|
+
'GtkSourceSearchContext.match-style': '299.2',
|
|
319
|
+
'GtkSourceSearchContext.settings': '3.10',
|
|
320
|
+
'GtkSourceSearchSettings.at-word-boundaries': '3.10',
|
|
321
|
+
'GtkSourceSearchSettings.case-sensitive': '3.10',
|
|
322
|
+
'GtkSourceSearchSettings.regex-enabled': '3.10',
|
|
323
|
+
'GtkSourceSearchSettings.search-text': '3.10',
|
|
324
|
+
'GtkSourceSearchSettings.wrap-around': '3.10',
|
|
325
|
+
'GtkSourceSpaceDrawer.enable-matrix': '3.24',
|
|
326
|
+
'GtkSourceSpaceDrawer.matrix': '3.24',
|
|
327
|
+
'GtkSourceStyleSchemeManager::changed': '299.0',
|
|
328
|
+
'GtkSourceTag.draw-spaces': '3.20',
|
|
329
|
+
'GtkSourceTag.draw-spaces-set': '3.20',
|
|
209
330
|
'GtkSourceView.smart-backspace': '3.18',
|
|
210
331
|
'GtkSourceView.smart-home-end': '2.0',
|
|
211
332
|
'GtkSourceView::change-case': '3.16',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gtksource-300",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for GtkSource-300",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gtksource-300.js",
|
|
@@ -36,20 +36,20 @@
|
|
|
36
36
|
"test": "tsc --project tsconfig.json"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@girs/gjs": "^5.
|
|
40
|
-
"@girs/gtk-3.0": "^5.
|
|
41
|
-
"@girs/xlib-2.0": "^5.
|
|
42
|
-
"@girs/gdk-3.0": "^5.
|
|
43
|
-
"@girs/cairo-1.0": "^5.
|
|
44
|
-
"@girs/gobject-2.0": "^5.
|
|
45
|
-
"@girs/glib-2.0": "^5.
|
|
46
|
-
"@girs/pango-1.0": "^5.
|
|
47
|
-
"@girs/harfbuzz-0.0": "^5.
|
|
48
|
-
"@girs/freetype2-2.0": "^5.
|
|
49
|
-
"@girs/gio-2.0": "^5.
|
|
50
|
-
"@girs/gmodule-2.0": "^5.
|
|
51
|
-
"@girs/gdkpixbuf-2.0": "^5.
|
|
52
|
-
"@girs/atk-1.0": "^5.
|
|
39
|
+
"@girs/gjs": "^5.3.0",
|
|
40
|
+
"@girs/gtk-3.0": "^5.3.0",
|
|
41
|
+
"@girs/xlib-2.0": "^5.3.0",
|
|
42
|
+
"@girs/gdk-3.0": "^5.3.0",
|
|
43
|
+
"@girs/cairo-1.0": "^5.3.0",
|
|
44
|
+
"@girs/gobject-2.0": "^5.3.0",
|
|
45
|
+
"@girs/glib-2.0": "^5.3.0",
|
|
46
|
+
"@girs/pango-1.0": "^5.3.0",
|
|
47
|
+
"@girs/harfbuzz-0.0": "^5.3.0",
|
|
48
|
+
"@girs/freetype2-2.0": "^5.3.0",
|
|
49
|
+
"@girs/gio-2.0": "^5.3.0",
|
|
50
|
+
"@girs/gmodule-2.0": "^5.3.0",
|
|
51
|
+
"@girs/gdkpixbuf-2.0": "^5.3.0",
|
|
52
|
+
"@girs/atk-1.0": "^5.3.0" },
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"typescript": "*"
|
|
55
55
|
},
|