@girs/gtksource-4 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-4-vocabulary.d.ts +646 -14
- package/gtksource-4-vocabulary.js +157 -18
- 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-4 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.
|
|
7
|
+
GJS TypeScript type definitions for GtkSource-4 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-4.
|
|
3
3
|
*
|
|
4
|
-
* GENERATED — do not edit. Provenance: GtkSource-4 — dropped empty base(s):
|
|
4
|
+
* GENERATED — do not edit. Provenance: GtkSource-4 — dropped empty base(s): Atk.ImplementorIface
|
|
5
5
|
*
|
|
6
|
-
* 5 concrete widgets,
|
|
6
|
+
* 29 instantiable GTypes (of which 5 concrete widgets), 33 declarations, 8 enum nick unions, 1 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,16 @@
|
|
|
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-4.js';
|
|
28
33
|
import type Pango from '@girs/pango-1.0';
|
|
29
|
-
import type {
|
|
34
|
+
import type { GInitiallyUnownedConstructOnly, GInitiallyUnownedProps, GObjectConstructOnly, GObjectProps } from '@girs/gobject-2.0/vocabulary';
|
|
35
|
+
import type { GtkActionableConstructOnly, GtkActionableProps, GtkActivatableConstructOnly, GtkActivatableProps, GtkBinConstructOnly, GtkBinProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkButtonConstructOnly, GtkButtonProps, GtkContainerConstructOnly, GtkContainerProps, GtkScrollableConstructOnly, GtkScrollableProps, GtkTextBufferConstructOnly, GtkTextBufferProps, GtkTextMarkConstructOnly, GtkTextMarkProps, GtkTextTagConstructOnly, GtkTextTagProps, GtkTextViewConstructOnly, GtkTextViewProps, GtkTextWindowTypeNick, GtkWidgetConstructOnly, GtkWidgetProps, GtkWindowConstructOnly, GtkWindowProps, GtkWrapModeNick } from '@girs/gtk-3.0/vocabulary';
|
|
36
|
+
import type { PangoUnderlineNick } from '@girs/pango-1.0/vocabulary';
|
|
30
37
|
|
|
31
38
|
// ---------------------------------------------------------------------------
|
|
32
39
|
// Enum nicks — the string vocabulary GObject registered, from GIR's `glib:nick`.
|
|
@@ -57,11 +64,333 @@ export type GtkSourceViewGutterPositionNick = 'lines' | 'marks';
|
|
|
57
64
|
// GIR keeps them once, on the interface.
|
|
58
65
|
// ---------------------------------------------------------------------------
|
|
59
66
|
|
|
67
|
+
export interface GtkSourceBufferProps extends GtkTextBufferProps {
|
|
68
|
+
/**
|
|
69
|
+
* Whether to highlight matching brackets in the buffer.
|
|
70
|
+
* @default TRUE
|
|
71
|
+
*/
|
|
72
|
+
'highlight-matching-brackets'?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Whether to highlight syntax in the buffer.
|
|
75
|
+
* @default TRUE
|
|
76
|
+
*/
|
|
77
|
+
'highlight-syntax'?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Whether the buffer has an implicit trailing newline.
|
|
80
|
+
* @since 3.14
|
|
81
|
+
* @default TRUE
|
|
82
|
+
*/
|
|
83
|
+
'implicit-trailing-newline'?: boolean;
|
|
84
|
+
language?: GtkSource.Language | null;
|
|
85
|
+
/**
|
|
86
|
+
* Number of undo levels for the buffer.
|
|
87
|
+
* @default -1
|
|
88
|
+
*/
|
|
89
|
+
'max-undo-levels'?: number;
|
|
90
|
+
/** Style scheme. */
|
|
91
|
+
'style-scheme'?: GtkSource.StyleScheme | null;
|
|
92
|
+
'undo-manager'?: GtkSource.UndoManager | null;
|
|
93
|
+
}
|
|
94
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
95
|
+
export type GtkSourceBufferConstructOnly = GtkTextBufferConstructOnly;
|
|
96
|
+
|
|
97
|
+
export interface GtkSourceCompletionProps extends GObjectProps, GtkBuildableProps {
|
|
98
|
+
/**
|
|
99
|
+
* Number of keyboard accelerators to show for the first proposals.
|
|
100
|
+
* @default 5
|
|
101
|
+
*/
|
|
102
|
+
accelerators?: number;
|
|
103
|
+
/**
|
|
104
|
+
* Determines the popup delay (in milliseconds) at which the completion will be shown for interactive completion.
|
|
105
|
+
* @default 250
|
|
106
|
+
*/
|
|
107
|
+
'auto-complete-delay'?: number;
|
|
108
|
+
/**
|
|
109
|
+
* The scroll page size of the proposals in the completion window.
|
|
110
|
+
* @default 5
|
|
111
|
+
*/
|
|
112
|
+
'proposal-page-size'?: number;
|
|
113
|
+
/**
|
|
114
|
+
* The scroll page size of the provider pages in the completion window.
|
|
115
|
+
* @default 5
|
|
116
|
+
*/
|
|
117
|
+
'provider-page-size'?: number;
|
|
118
|
+
/**
|
|
119
|
+
* Determines whether the visibility of the info window should be saved when the completion is hidden, and restored when the completion is shown again.
|
|
120
|
+
* @default FALSE
|
|
121
|
+
*/
|
|
122
|
+
'remember-info-visibility'?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Determines whether the first proposal should be selected when the completion is first shown.
|
|
125
|
+
* @default TRUE
|
|
126
|
+
*/
|
|
127
|
+
'select-on-show'?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Determines whether provider headers should be shown in the proposal list.
|
|
130
|
+
* @default TRUE
|
|
131
|
+
*/
|
|
132
|
+
'show-headers'?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Determines whether provider and proposal icons should be shown in the completion popup.
|
|
135
|
+
* @default TRUE
|
|
136
|
+
*/
|
|
137
|
+
'show-icons'?: boolean;
|
|
138
|
+
/** The #GtkSourceView bound to the completion object. */
|
|
139
|
+
view?: GtkSource.View | null;
|
|
140
|
+
}
|
|
141
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
142
|
+
export type GtkSourceCompletionConstructOnly = GObjectConstructOnly | GtkBuildableConstructOnly | 'view';
|
|
143
|
+
|
|
144
|
+
export interface GtkSourceCompletionContextProps extends GInitiallyUnownedProps {
|
|
145
|
+
/**
|
|
146
|
+
* The completion activation
|
|
147
|
+
* @default GTK_SOURCE_COMPLETION_ACTIVATION_USER_REQUESTED
|
|
148
|
+
*/
|
|
149
|
+
activation?: number;
|
|
150
|
+
/** The #GtkSourceCompletion associated with the context. */
|
|
151
|
+
completion?: GtkSource.Completion;
|
|
152
|
+
/** The #GtkTextIter at which the completion is invoked. */
|
|
153
|
+
iter?: Gtk.TextIter;
|
|
154
|
+
}
|
|
155
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
156
|
+
export type GtkSourceCompletionContextConstructOnly = GInitiallyUnownedConstructOnly | 'completion';
|
|
157
|
+
|
|
60
158
|
export interface GtkSourceCompletionInfoProps extends GtkWindowProps, GtkBuildableProps {
|
|
61
159
|
}
|
|
62
160
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
63
161
|
export type GtkSourceCompletionInfoConstructOnly = GtkWindowConstructOnly | GtkBuildableConstructOnly;
|
|
64
162
|
|
|
163
|
+
export interface GtkSourceCompletionItemProps extends GObjectProps, GtkSourceCompletionProposalProps {
|
|
164
|
+
/**
|
|
165
|
+
* The #GIcon for the icon to be shown for this proposal.
|
|
166
|
+
* @since 3.18
|
|
167
|
+
*/
|
|
168
|
+
gicon?: Gio.Icon;
|
|
169
|
+
/** The #GdkPixbuf for the icon to be shown for this proposal. */
|
|
170
|
+
icon?: GdkPixbuf.Pixbuf;
|
|
171
|
+
/**
|
|
172
|
+
* The icon name for the icon to be shown for this proposal.
|
|
173
|
+
* @since 3.18
|
|
174
|
+
* @default NULL
|
|
175
|
+
*/
|
|
176
|
+
'icon-name'?: string;
|
|
177
|
+
/**
|
|
178
|
+
* Optional extra information to be shown for this proposal.
|
|
179
|
+
* @default NULL
|
|
180
|
+
*/
|
|
181
|
+
info?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Label to be shown for this proposal.
|
|
184
|
+
* @default NULL
|
|
185
|
+
*/
|
|
186
|
+
label?: string;
|
|
187
|
+
/**
|
|
188
|
+
* Label with markup to be shown for this proposal.
|
|
189
|
+
* @default NULL
|
|
190
|
+
*/
|
|
191
|
+
markup?: string;
|
|
192
|
+
/**
|
|
193
|
+
* Proposal text.
|
|
194
|
+
* @default NULL
|
|
195
|
+
*/
|
|
196
|
+
text?: string;
|
|
197
|
+
}
|
|
198
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
199
|
+
export type GtkSourceCompletionItemConstructOnly = GObjectConstructOnly | GtkSourceCompletionProposalConstructOnly;
|
|
200
|
+
|
|
201
|
+
export interface GtkSourceCompletionProposalProps extends GObjectProps {
|
|
202
|
+
}
|
|
203
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
204
|
+
export type GtkSourceCompletionProposalConstructOnly = GObjectConstructOnly;
|
|
205
|
+
|
|
206
|
+
export interface GtkSourceCompletionProviderProps extends GObjectProps {
|
|
207
|
+
}
|
|
208
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
209
|
+
export type GtkSourceCompletionProviderConstructOnly = GObjectConstructOnly;
|
|
210
|
+
|
|
211
|
+
export interface GtkSourceCompletionWordsProps extends GObjectProps, GtkSourceCompletionProviderProps {
|
|
212
|
+
/**
|
|
213
|
+
* The type of activation.
|
|
214
|
+
* @since 3.10
|
|
215
|
+
* @default GTK_SOURCE_COMPLETION_ACTIVATION_INTERACTIVE | GTK_SOURCE_COMPLETION_ACTIVATION_USER_REQUESTED
|
|
216
|
+
*/
|
|
217
|
+
activation?: number;
|
|
218
|
+
icon?: GdkPixbuf.Pixbuf;
|
|
219
|
+
/** @default 50 */
|
|
220
|
+
'interactive-delay'?: number;
|
|
221
|
+
/** @default 2 */
|
|
222
|
+
'minimum-word-size'?: number;
|
|
223
|
+
/** @default NULL */
|
|
224
|
+
name?: string;
|
|
225
|
+
/** @default 0 */
|
|
226
|
+
priority?: number;
|
|
227
|
+
/** @default 300 */
|
|
228
|
+
'proposals-batch-size'?: number;
|
|
229
|
+
/** @default 50 */
|
|
230
|
+
'scan-batch-size'?: number;
|
|
231
|
+
}
|
|
232
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
233
|
+
export type GtkSourceCompletionWordsConstructOnly = GObjectConstructOnly | GtkSourceCompletionProviderConstructOnly;
|
|
234
|
+
|
|
235
|
+
export interface GtkSourceFileProps extends GObjectProps {
|
|
236
|
+
/**
|
|
237
|
+
* The location.
|
|
238
|
+
* @since 3.14
|
|
239
|
+
*/
|
|
240
|
+
location?: Gio.File;
|
|
241
|
+
}
|
|
242
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
243
|
+
export type GtkSourceFileConstructOnly = GObjectConstructOnly;
|
|
244
|
+
|
|
245
|
+
export interface GtkSourceFileLoaderProps extends GObjectProps {
|
|
246
|
+
/**
|
|
247
|
+
* The #GtkSourceBuffer to load the contents into.
|
|
248
|
+
* @since 3.14
|
|
249
|
+
*/
|
|
250
|
+
buffer?: GtkSource.Buffer;
|
|
251
|
+
/**
|
|
252
|
+
* The #GtkSourceFile.
|
|
253
|
+
* @since 3.14
|
|
254
|
+
*/
|
|
255
|
+
file?: GtkSource.File;
|
|
256
|
+
/**
|
|
257
|
+
* The #GInputStream to load.
|
|
258
|
+
* @since 3.14
|
|
259
|
+
*/
|
|
260
|
+
'input-stream'?: Gio.InputStream | null;
|
|
261
|
+
/**
|
|
262
|
+
* The #GFile to load.
|
|
263
|
+
* @since 3.14
|
|
264
|
+
*/
|
|
265
|
+
location?: Gio.File | null;
|
|
266
|
+
}
|
|
267
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
268
|
+
export type GtkSourceFileLoaderConstructOnly = GObjectConstructOnly | 'buffer' | 'file' | 'input-stream' | 'location';
|
|
269
|
+
|
|
270
|
+
export interface GtkSourceFileSaverProps extends GObjectProps {
|
|
271
|
+
/**
|
|
272
|
+
* The #GtkSourceBuffer to save.
|
|
273
|
+
* @since 3.14
|
|
274
|
+
*/
|
|
275
|
+
buffer?: GtkSource.Buffer;
|
|
276
|
+
/**
|
|
277
|
+
* The compression type.
|
|
278
|
+
* @since 3.14
|
|
279
|
+
* @default GTK_SOURCE_COMPRESSION_TYPE_NONE
|
|
280
|
+
*/
|
|
281
|
+
'compression-type'?: GtkSourceCompressionTypeNick | GtkSource.CompressionType;
|
|
282
|
+
/**
|
|
283
|
+
* The file's encoding.
|
|
284
|
+
* @since 3.14
|
|
285
|
+
*/
|
|
286
|
+
encoding?: GtkSource.Encoding;
|
|
287
|
+
/**
|
|
288
|
+
* The #GtkSourceFile.
|
|
289
|
+
* @since 3.14
|
|
290
|
+
*/
|
|
291
|
+
file?: GtkSource.File;
|
|
292
|
+
/**
|
|
293
|
+
* File saving flags.
|
|
294
|
+
* @since 3.14
|
|
295
|
+
* @default GTK_SOURCE_FILE_SAVER_FLAGS_NONE
|
|
296
|
+
*/
|
|
297
|
+
flags?: number;
|
|
298
|
+
/**
|
|
299
|
+
* The #GFile where to save the buffer.
|
|
300
|
+
* @since 3.14
|
|
301
|
+
*/
|
|
302
|
+
location?: Gio.File;
|
|
303
|
+
/**
|
|
304
|
+
* The newline type.
|
|
305
|
+
* @since 3.14
|
|
306
|
+
* @default GTK_SOURCE_NEWLINE_TYPE_LF
|
|
307
|
+
*/
|
|
308
|
+
'newline-type'?: GtkSourceNewlineTypeNick | GtkSource.NewlineType;
|
|
309
|
+
}
|
|
310
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
311
|
+
export type GtkSourceFileSaverConstructOnly = GObjectConstructOnly | 'buffer' | 'file' | 'location';
|
|
312
|
+
|
|
313
|
+
export interface GtkSourceGutterProps extends GObjectProps {
|
|
314
|
+
/** The #GtkSourceView of the gutter. */
|
|
315
|
+
view?: GtkSource.View;
|
|
316
|
+
/**
|
|
317
|
+
* The text window type on which the window is placed.
|
|
318
|
+
* @default GTK_TEXT_WINDOW_PRIVATE
|
|
319
|
+
*/
|
|
320
|
+
'window-type'?: GtkTextWindowTypeNick | Gtk.TextWindowType;
|
|
321
|
+
}
|
|
322
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
323
|
+
export type GtkSourceGutterConstructOnly = GObjectConstructOnly | 'view' | 'window-type';
|
|
324
|
+
|
|
325
|
+
export interface GtkSourceGutterRendererProps extends GInitiallyUnownedProps {
|
|
326
|
+
/**
|
|
327
|
+
* The alignment mode of the renderer.
|
|
328
|
+
* @default GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_CELL
|
|
329
|
+
*/
|
|
330
|
+
'alignment-mode'?: GtkSourceGutterRendererAlignmentModeNick | GtkSource.GutterRendererAlignmentMode;
|
|
331
|
+
'background-rgba'?: Gdk.RGBA;
|
|
332
|
+
/** @default FALSE */
|
|
333
|
+
'background-set'?: boolean;
|
|
334
|
+
/** @default 0 */
|
|
335
|
+
size?: number;
|
|
336
|
+
/**
|
|
337
|
+
* The visibility of the renderer.
|
|
338
|
+
* @default TRUE
|
|
339
|
+
*/
|
|
340
|
+
visible?: boolean;
|
|
341
|
+
/**
|
|
342
|
+
* The horizontal alignment of the renderer.
|
|
343
|
+
* @default 0.000000
|
|
344
|
+
*/
|
|
345
|
+
xalign?: number;
|
|
346
|
+
/**
|
|
347
|
+
* The left and right padding of the renderer.
|
|
348
|
+
* @default 0
|
|
349
|
+
*/
|
|
350
|
+
xpad?: number;
|
|
351
|
+
/**
|
|
352
|
+
* The vertical alignment of the renderer.
|
|
353
|
+
* @default 0.000000
|
|
354
|
+
*/
|
|
355
|
+
yalign?: number;
|
|
356
|
+
/**
|
|
357
|
+
* The top and bottom padding of the renderer.
|
|
358
|
+
* @default 0
|
|
359
|
+
*/
|
|
360
|
+
ypad?: number;
|
|
361
|
+
}
|
|
362
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
363
|
+
export type GtkSourceGutterRendererConstructOnly = GInitiallyUnownedConstructOnly;
|
|
364
|
+
|
|
365
|
+
export interface GtkSourceGutterRendererPixbufProps extends GtkSourceGutterRendererProps {
|
|
366
|
+
gicon?: Gio.Icon;
|
|
367
|
+
/** @default NULL */
|
|
368
|
+
'icon-name'?: string;
|
|
369
|
+
pixbuf?: GdkPixbuf.Pixbuf;
|
|
370
|
+
}
|
|
371
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
372
|
+
export type GtkSourceGutterRendererPixbufConstructOnly = GtkSourceGutterRendererConstructOnly;
|
|
373
|
+
|
|
374
|
+
export interface GtkSourceGutterRendererTextProps extends GtkSourceGutterRendererProps {
|
|
375
|
+
/** @default NULL */
|
|
376
|
+
markup?: string;
|
|
377
|
+
/** @default NULL */
|
|
378
|
+
text?: string;
|
|
379
|
+
}
|
|
380
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
381
|
+
export type GtkSourceGutterRendererTextConstructOnly = GtkSourceGutterRendererConstructOnly;
|
|
382
|
+
|
|
383
|
+
export interface GtkSourceLanguageProps extends GObjectProps {
|
|
384
|
+
}
|
|
385
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
386
|
+
export type GtkSourceLanguageConstructOnly = GObjectConstructOnly;
|
|
387
|
+
|
|
388
|
+
export interface GtkSourceLanguageManagerProps extends GObjectProps {
|
|
389
|
+
'search-path'?: string[];
|
|
390
|
+
}
|
|
391
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
392
|
+
export type GtkSourceLanguageManagerConstructOnly = GObjectConstructOnly;
|
|
393
|
+
|
|
65
394
|
export interface GtkSourceMapProps extends GtkSourceViewProps, GtkBuildableProps, GtkScrollableProps {
|
|
66
395
|
'font-desc'?: Pango.FontDescription;
|
|
67
396
|
view?: GtkSource.View | null;
|
|
@@ -69,7 +398,241 @@ export interface GtkSourceMapProps extends GtkSourceViewProps, GtkBuildableProps
|
|
|
69
398
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
70
399
|
export type GtkSourceMapConstructOnly = GtkSourceViewConstructOnly | GtkBuildableConstructOnly | GtkScrollableConstructOnly;
|
|
71
400
|
|
|
72
|
-
export interface
|
|
401
|
+
export interface GtkSourceMarkProps extends GtkTextMarkProps {
|
|
402
|
+
/**
|
|
403
|
+
* The category of the #GtkSourceMark, classifies the mark and controls which pixbuf is used and with which priority it is drawn.
|
|
404
|
+
* @default NULL
|
|
405
|
+
*/
|
|
406
|
+
category?: string;
|
|
407
|
+
}
|
|
408
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
409
|
+
export type GtkSourceMarkConstructOnly = GtkTextMarkConstructOnly | 'category';
|
|
410
|
+
|
|
411
|
+
export interface GtkSourceMarkAttributesProps extends GObjectProps {
|
|
412
|
+
/** A color used for background of a line. */
|
|
413
|
+
background?: Gdk.RGBA;
|
|
414
|
+
/** A #GIcon that may be a base of a rendered icon. */
|
|
415
|
+
gicon?: Gio.Icon;
|
|
416
|
+
/**
|
|
417
|
+
* An icon name that may be a base of a rendered icon.
|
|
418
|
+
* @default NULL
|
|
419
|
+
*/
|
|
420
|
+
'icon-name'?: string;
|
|
421
|
+
/** A #GdkPixbuf that may be a base of a rendered icon. */
|
|
422
|
+
pixbuf?: GdkPixbuf.Pixbuf;
|
|
423
|
+
}
|
|
424
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
425
|
+
export type GtkSourceMarkAttributesConstructOnly = GObjectConstructOnly;
|
|
426
|
+
|
|
427
|
+
export interface GtkSourcePrintCompositorProps extends GObjectProps {
|
|
428
|
+
/**
|
|
429
|
+
* Name of the font used for the text body.
|
|
430
|
+
* @since 2.2
|
|
431
|
+
* @default NULL
|
|
432
|
+
*/
|
|
433
|
+
'body-font-name'?: string;
|
|
434
|
+
/**
|
|
435
|
+
* The GtkSourceBuffer object to print.
|
|
436
|
+
* @since 2.2
|
|
437
|
+
*/
|
|
438
|
+
buffer?: GtkSource.Buffer;
|
|
439
|
+
/**
|
|
440
|
+
* Name of the font used to print page footer.
|
|
441
|
+
* @since 2.2
|
|
442
|
+
* @default NULL
|
|
443
|
+
*/
|
|
444
|
+
'footer-font-name'?: string;
|
|
445
|
+
/**
|
|
446
|
+
* Name of the font used to print page header.
|
|
447
|
+
* @since 2.2
|
|
448
|
+
* @default NULL
|
|
449
|
+
*/
|
|
450
|
+
'header-font-name'?: string;
|
|
451
|
+
/**
|
|
452
|
+
* Whether to print the document with highlighted syntax.
|
|
453
|
+
* @since 2.2
|
|
454
|
+
* @default TRUE
|
|
455
|
+
*/
|
|
456
|
+
'highlight-syntax'?: boolean;
|
|
457
|
+
/**
|
|
458
|
+
* Name of the font used to print line numbers on the left margin.
|
|
459
|
+
* @since 2.2
|
|
460
|
+
* @default NULL
|
|
461
|
+
*/
|
|
462
|
+
'line-numbers-font-name'?: string;
|
|
463
|
+
/**
|
|
464
|
+
* Whether to print a footer in each page.
|
|
465
|
+
* @since 2.2
|
|
466
|
+
* @default FALSE
|
|
467
|
+
*/
|
|
468
|
+
'print-footer'?: boolean;
|
|
469
|
+
/**
|
|
470
|
+
* Whether to print a header in each page.
|
|
471
|
+
* @since 2.2
|
|
472
|
+
* @default FALSE
|
|
473
|
+
*/
|
|
474
|
+
'print-header'?: boolean;
|
|
475
|
+
/**
|
|
476
|
+
* Interval of printed line numbers.
|
|
477
|
+
* @since 2.2
|
|
478
|
+
* @default 1
|
|
479
|
+
*/
|
|
480
|
+
'print-line-numbers'?: number;
|
|
481
|
+
/**
|
|
482
|
+
* Width of a tab character expressed in spaces.
|
|
483
|
+
* @since 2.2
|
|
484
|
+
* @default 8
|
|
485
|
+
*/
|
|
486
|
+
'tab-width'?: number;
|
|
487
|
+
/**
|
|
488
|
+
* Whether to wrap lines never, at word boundaries, or at character boundaries.
|
|
489
|
+
* @since 2.2
|
|
490
|
+
* @default GTK_WRAP_NONE
|
|
491
|
+
*/
|
|
492
|
+
'wrap-mode'?: GtkWrapModeNick | Gtk.WrapMode;
|
|
493
|
+
}
|
|
494
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
495
|
+
export type GtkSourcePrintCompositorConstructOnly = GObjectConstructOnly | 'buffer';
|
|
496
|
+
|
|
497
|
+
export interface GtkSourceRegionProps extends GObjectProps {
|
|
498
|
+
/**
|
|
499
|
+
* The #GtkTextBuffer.
|
|
500
|
+
* @since 3.22
|
|
501
|
+
*/
|
|
502
|
+
buffer?: Gtk.TextBuffer | null;
|
|
503
|
+
}
|
|
504
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
505
|
+
export type GtkSourceRegionConstructOnly = GObjectConstructOnly | 'buffer';
|
|
506
|
+
|
|
507
|
+
export interface GtkSourceSearchContextProps extends GObjectProps {
|
|
508
|
+
/**
|
|
509
|
+
* The #GtkSourceBuffer associated to the search context.
|
|
510
|
+
* @since 3.10
|
|
511
|
+
*/
|
|
512
|
+
buffer?: GtkSource.Buffer;
|
|
513
|
+
/**
|
|
514
|
+
* Highlight the search occurrences.
|
|
515
|
+
* @since 3.10
|
|
516
|
+
* @default TRUE
|
|
517
|
+
*/
|
|
518
|
+
highlight?: boolean;
|
|
519
|
+
/**
|
|
520
|
+
* A #GtkSourceStyle, or %NULL for theme's scheme default style.
|
|
521
|
+
* @since 3.16
|
|
522
|
+
*/
|
|
523
|
+
'match-style'?: GtkSource.Style;
|
|
524
|
+
/**
|
|
525
|
+
* The #GtkSourceSearchSettings associated to the search context.
|
|
526
|
+
* @since 3.10
|
|
527
|
+
*/
|
|
528
|
+
settings?: GtkSource.SearchSettings;
|
|
529
|
+
}
|
|
530
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
531
|
+
export type GtkSourceSearchContextConstructOnly = GObjectConstructOnly | 'buffer' | 'settings';
|
|
532
|
+
|
|
533
|
+
export interface GtkSourceSearchSettingsProps extends GObjectProps {
|
|
534
|
+
/**
|
|
535
|
+
* If %TRUE, a search match must start and end a word.
|
|
536
|
+
* @since 3.10
|
|
537
|
+
* @default FALSE
|
|
538
|
+
*/
|
|
539
|
+
'at-word-boundaries'?: boolean;
|
|
540
|
+
/**
|
|
541
|
+
* Whether the search is case sensitive.
|
|
542
|
+
* @since 3.10
|
|
543
|
+
* @default FALSE
|
|
544
|
+
*/
|
|
545
|
+
'case-sensitive'?: boolean;
|
|
546
|
+
/**
|
|
547
|
+
* Search by regular expressions with #GtkSourceSearchSettings:search-text as the pattern.
|
|
548
|
+
* @since 3.10
|
|
549
|
+
* @default FALSE
|
|
550
|
+
*/
|
|
551
|
+
'regex-enabled'?: boolean;
|
|
552
|
+
/**
|
|
553
|
+
* A search string, or %NULL if the search is disabled.
|
|
554
|
+
* @since 3.10
|
|
555
|
+
* @default NULL
|
|
556
|
+
*/
|
|
557
|
+
'search-text'?: string | null;
|
|
558
|
+
/**
|
|
559
|
+
* For a forward search, continue at the beginning of the buffer if no search occurrence is found.
|
|
560
|
+
* @since 3.10
|
|
561
|
+
* @default FALSE
|
|
562
|
+
*/
|
|
563
|
+
'wrap-around'?: boolean;
|
|
564
|
+
}
|
|
565
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
566
|
+
export type GtkSourceSearchSettingsConstructOnly = GObjectConstructOnly;
|
|
567
|
+
|
|
568
|
+
export interface GtkSourceSpaceDrawerProps extends GObjectProps {
|
|
569
|
+
/**
|
|
570
|
+
* Whether the #GtkSourceSpaceDrawer:matrix property is enabled.
|
|
571
|
+
* @since 3.24
|
|
572
|
+
* @default FALSE
|
|
573
|
+
*/
|
|
574
|
+
'enable-matrix'?: boolean;
|
|
575
|
+
/**
|
|
576
|
+
* The :matrix property is a #GVariant property to specify where and what kind of white spaces to draw.
|
|
577
|
+
* @since 3.24
|
|
578
|
+
*/
|
|
579
|
+
matrix?: GLib.Variant;
|
|
580
|
+
}
|
|
581
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
582
|
+
export type GtkSourceSpaceDrawerConstructOnly = GObjectConstructOnly;
|
|
583
|
+
|
|
584
|
+
export interface GtkSourceStyleProps extends GObjectProps {
|
|
585
|
+
/** @default NULL */
|
|
586
|
+
background?: string;
|
|
587
|
+
/** @default FALSE */
|
|
588
|
+
'background-set'?: boolean;
|
|
589
|
+
/** @default FALSE */
|
|
590
|
+
bold?: boolean;
|
|
591
|
+
/** @default FALSE */
|
|
592
|
+
'bold-set'?: boolean;
|
|
593
|
+
/** @default NULL */
|
|
594
|
+
foreground?: string;
|
|
595
|
+
/** @default FALSE */
|
|
596
|
+
'foreground-set'?: boolean;
|
|
597
|
+
/** @default FALSE */
|
|
598
|
+
italic?: boolean;
|
|
599
|
+
/** @default FALSE */
|
|
600
|
+
'italic-set'?: boolean;
|
|
601
|
+
/** @default NULL */
|
|
602
|
+
'line-background'?: string;
|
|
603
|
+
/** @default FALSE */
|
|
604
|
+
'line-background-set'?: boolean;
|
|
605
|
+
/** @default PANGO_UNDERLINE_NONE */
|
|
606
|
+
'pango-underline'?: PangoUnderlineNick | Pango.Underline;
|
|
607
|
+
/** @default NULL */
|
|
608
|
+
scale?: string;
|
|
609
|
+
/** @default FALSE */
|
|
610
|
+
'scale-set'?: boolean;
|
|
611
|
+
/** @default FALSE */
|
|
612
|
+
strikethrough?: boolean;
|
|
613
|
+
/** @default FALSE */
|
|
614
|
+
'strikethrough-set'?: boolean;
|
|
615
|
+
/** @default NULL */
|
|
616
|
+
'underline-color'?: string;
|
|
617
|
+
/** @default FALSE */
|
|
618
|
+
'underline-color-set'?: boolean;
|
|
619
|
+
/** @default FALSE */
|
|
620
|
+
'underline-set'?: boolean;
|
|
621
|
+
}
|
|
622
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
623
|
+
export type GtkSourceStyleConstructOnly = GObjectConstructOnly | 'background' | 'background-set' | 'bold' | 'bold-set' | 'foreground' | 'foreground-set' | 'italic' | 'italic-set' | 'line-background' | 'line-background-set' | 'pango-underline' | 'scale' | 'scale-set' | 'strikethrough' | 'strikethrough-set' | 'underline-color' | 'underline-color-set' | 'underline-set';
|
|
624
|
+
|
|
625
|
+
export interface GtkSourceStyleSchemeProps extends GObjectProps {
|
|
626
|
+
/**
|
|
627
|
+
* Style scheme id, a unique string used to identify the style scheme in #GtkSourceStyleSchemeManager.
|
|
628
|
+
* @default NULL
|
|
629
|
+
*/
|
|
630
|
+
id?: string;
|
|
631
|
+
}
|
|
632
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
633
|
+
export type GtkSourceStyleSchemeConstructOnly = GObjectConstructOnly | 'id';
|
|
634
|
+
|
|
635
|
+
export interface GtkSourceStyleSchemeChooserProps extends GObjectProps {
|
|
73
636
|
/**
|
|
74
637
|
* The :style-scheme property contains the currently selected style scheme.
|
|
75
638
|
* @since 3.16
|
|
@@ -77,7 +640,7 @@ export interface GtkSourceStyleSchemeChooserProps {
|
|
|
77
640
|
'style-scheme'?: GtkSource.StyleScheme;
|
|
78
641
|
}
|
|
79
642
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
80
|
-
export type GtkSourceStyleSchemeChooserConstructOnly =
|
|
643
|
+
export type GtkSourceStyleSchemeChooserConstructOnly = GObjectConstructOnly;
|
|
81
644
|
|
|
82
645
|
export interface GtkSourceStyleSchemeChooserButtonProps extends GtkButtonProps, GtkActionableProps, GtkActivatableProps, GtkBuildableProps, GtkSourceStyleSchemeChooserProps {
|
|
83
646
|
}
|
|
@@ -89,6 +652,29 @@ export interface GtkSourceStyleSchemeChooserWidgetProps extends GtkBinProps, Gtk
|
|
|
89
652
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
90
653
|
export type GtkSourceStyleSchemeChooserWidgetConstructOnly = GtkBinConstructOnly | GtkBuildableConstructOnly | GtkSourceStyleSchemeChooserConstructOnly;
|
|
91
654
|
|
|
655
|
+
export interface GtkSourceStyleSchemeManagerProps extends GObjectProps {
|
|
656
|
+
'search-path'?: string[];
|
|
657
|
+
}
|
|
658
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
659
|
+
export type GtkSourceStyleSchemeManagerConstructOnly = GObjectConstructOnly;
|
|
660
|
+
|
|
661
|
+
export interface GtkSourceTagProps extends GtkTextTagProps {
|
|
662
|
+
/**
|
|
663
|
+
* Whether to draw white spaces.
|
|
664
|
+
* @since 3.20
|
|
665
|
+
* @default FALSE
|
|
666
|
+
*/
|
|
667
|
+
'draw-spaces'?: boolean;
|
|
668
|
+
/**
|
|
669
|
+
* Whether the #GtkSourceTag:draw-spaces property is set and must be taken into account.
|
|
670
|
+
* @since 3.20
|
|
671
|
+
* @default FALSE
|
|
672
|
+
*/
|
|
673
|
+
'draw-spaces-set'?: boolean;
|
|
674
|
+
}
|
|
675
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
676
|
+
export type GtkSourceTagConstructOnly = GtkTextTagConstructOnly;
|
|
677
|
+
|
|
92
678
|
export interface GtkSourceViewProps extends GtkTextViewProps, GtkBuildableProps, GtkScrollableProps {
|
|
93
679
|
/** @default FALSE */
|
|
94
680
|
'auto-indent'?: boolean;
|
|
@@ -205,7 +791,11 @@ export interface Widgets {
|
|
|
205
791
|
};
|
|
206
792
|
}
|
|
207
793
|
|
|
208
|
-
/**
|
|
794
|
+
/**
|
|
795
|
+
* Every GType this namespace can create AND put on screen. A consumer derives its own
|
|
796
|
+
* tag map. For everything a UI file can instantiate — layout managers, event
|
|
797
|
+
* controllers, cell renderers, `GtkSizeGroup` — read `DECLS` below.
|
|
798
|
+
*/
|
|
209
799
|
export type WidgetGType = keyof Widgets;
|
|
210
800
|
|
|
211
801
|
// ---------------------------------------------------------------------------
|
|
@@ -257,7 +847,38 @@ export const PROVENANCE: {
|
|
|
257
847
|
readonly childHolders: number;
|
|
258
848
|
readonly droppedBases: readonly string[];
|
|
259
849
|
readonly inlinedBases: readonly string[];
|
|
850
|
+
/** `<decl>.<prop>` for every property printed `never` because TypeScript has no value for it. */
|
|
260
851
|
readonly unsettableProps: readonly string[];
|
|
852
|
+
/**
|
|
853
|
+
* `<decl>.<prop>: <Ns>.<Name>` for every property printed `never` because the model
|
|
854
|
+
* could not resolve its type across a namespace boundary — two independently released
|
|
855
|
+
* GIRs disagreeing, which is what the main emitter answers `never` for as well.
|
|
856
|
+
*/
|
|
857
|
+
readonly unresolvedProps: readonly string[];
|
|
858
|
+
/**
|
|
859
|
+
* `c:identifier-prefixes` from the GIR, verbatim and in order — `['G']` for Gio.
|
|
860
|
+
*
|
|
861
|
+
* The C prefix a type REFERENCE needs: resolving `Gio.Icon` means producing `GIcon`,
|
|
862
|
+
* and nothing else in this package states that `Gio` spells itself `G`. Carried rather
|
|
863
|
+
* than derived because GIR carries it, and a derivation over the `DECLS` keys is wrong
|
|
864
|
+
* wherever the C prefix is not a prefix of the type NAMES: gdkx11-4.0 and gdkwayland-4.0
|
|
865
|
+
* both state `Gdk` while every key they declare begins `GdkX11`/`GdkWayland`.
|
|
866
|
+
*
|
|
867
|
+
* Empty where the GIR states none — 17 of the 627 emitting namespaces — because
|
|
868
|
+
* inventing the namespace name there is a confident wrong answer in place of a missing
|
|
869
|
+
* one. A LIST because 20 of them state more than one, which no single string expresses.
|
|
870
|
+
*/
|
|
871
|
+
readonly identifierPrefixes: readonly string[];
|
|
872
|
+
/**
|
|
873
|
+
* Sibling vocabularies this one's DECLARATIONS come from, as import specifiers.
|
|
874
|
+
*
|
|
875
|
+
* A chain link with no `OWN_PROPS` row is ambiguous on its own — `GtkSeparator` has no
|
|
876
|
+
* settable property, `GApplication` has its properties in another package — and this
|
|
877
|
+
* list is what tells the two apart. Enum and bitfield NUMBERS are not here: those are
|
|
878
|
+
* carried in this file, because a `PROP_ENUMS` row naming a foreign GType gives a
|
|
879
|
+
* consumer nothing to load and a `.ui` file using the property never names its owner.
|
|
880
|
+
*/
|
|
881
|
+
readonly requiredVocabularies: readonly string[];
|
|
261
882
|
};
|
|
262
883
|
|
|
263
884
|
/** Declaration GType -> its own settable properties, as GObject registered them. */
|
|
@@ -271,7 +892,17 @@ export const OWN_PROPS: Readonly<Record<string, readonly string[]>>;
|
|
|
271
892
|
*/
|
|
272
893
|
export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
|
|
273
894
|
|
|
274
|
-
/**
|
|
895
|
+
/**
|
|
896
|
+
* Instantiable GType -> every declaration its members come from, self first.
|
|
897
|
+
*
|
|
898
|
+
* The key set is what a UI description file can NAME: every registered, non-abstract
|
|
899
|
+
* class this namespace declares. GtkBuilder resolves a `<object class="…">` through
|
|
900
|
+
* `g_type_from_name`, which knows nothing about widgets, so this is wider than
|
|
901
|
+
* `Widgets` by design — `GtkSizeGroup`, `GtkTextTag`, every `GtkEventController`
|
|
902
|
+
* and every `GtkCellRenderer` are here and are not widgets.
|
|
903
|
+
*
|
|
904
|
+
* `Widgets` and `CHILD_HOLDERS` are the narrower questions and answer them unchanged.
|
|
905
|
+
*/
|
|
275
906
|
export const DECLS: Readonly<Record<string, readonly string[]>>;
|
|
276
907
|
|
|
277
908
|
/** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
|
|
@@ -283,8 +914,8 @@ export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
|
|
|
283
914
|
/**
|
|
284
915
|
* `<enum GType>.<nick>` -> the integer GObject registers for it, from GIR's `value`.
|
|
285
916
|
*
|
|
286
|
-
* Position in `ENUM_NICKS` is NOT this number. Counting is wrong on 6 of the
|
|
287
|
-
* GTK 4 vocabulary carries --
|
|
917
|
+
* Position in `ENUM_NICKS` is NOT this number. Counting is wrong on 6 of the 137 enums a
|
|
918
|
+
* GTK 4 vocabulary carries -- 112 in Gtk-4.0 and 25 in Adw-1: `GtkResponseType` runs -1 to -11, `GtkTextWindowType` starts
|
|
288
919
|
* at 1, `GtkOrdering` and `GtkConstraintRelation` are -1/0/1, `GtkAlign` has two names
|
|
289
920
|
* on one value, and `GtkConstraintStrength.required` is 1001001000 where counting says 0.
|
|
290
921
|
*
|
|
@@ -322,10 +953,11 @@ export const ENUM_VALUES_UNREADABLE: Readonly<Record<string, string>>;
|
|
|
322
953
|
*
|
|
323
954
|
* `ENUM_NICKS` carries no bitfield, because GObject cannot resolve a nick SET; that says
|
|
324
955
|
* nothing about a single member's number, and the number is what a host without GI needs.
|
|
325
|
-
*
|
|
326
|
-
*
|
|
327
|
-
* among them. Counting is worst here:
|
|
328
|
-
*
|
|
956
|
+
* 23 settable properties in Gtk-4.0 and Adw-1 are bitfield-typed and are declared bare
|
|
957
|
+
* `number` -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`, `AdwTabView:shortcuts`,
|
|
958
|
+
* `GtkDropTarget:actions` among them. Counting is worst here: 119 of the 156 Gtk-4.0
|
|
959
|
+
* bitfield members this vocabulary carries disagree with their declaration position,
|
|
960
|
+
* against 29 of 672 enumeration members.
|
|
329
961
|
*
|
|
330
962
|
* Combine with `|` as GObject does. There is no nick table to pair this with, so a name
|
|
331
963
|
* here is resolvable and a SET still is not.
|
|
@@ -349,7 +981,7 @@ export const FLAG_VALUES_UNREADABLE: Readonly<Record<string, string>>;
|
|
|
349
981
|
*
|
|
350
982
|
* The GType named here is not always one THIS module gives numbers for. A nick vocabulary is
|
|
351
983
|
* emitted once, by the namespace that owns the enum, so `AdwComboRow.search-match-mode` names
|
|
352
|
-
* `GtkStringFilterMatchMode` and its rows are in `@girs/gtk-4.0/vocabulary` —
|
|
984
|
+
* `GtkStringFilterMatchMode` and its rows are in `@girs/gtk-4.0/vocabulary` — 83 of the 909
|
|
353
985
|
* entries in a full run resolve only with the owner's vocabulary loaded beside this one. An
|
|
354
986
|
* owner with no vocabulary of its own (Gdk, Pango) is inlined here instead, so every entry
|
|
355
987
|
* resolves against SOME module.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// The widget vocabulary of GtkSource-4 as runtime data.
|
|
2
2
|
//
|
|
3
|
-
// GENERATED — do not edit. Provenance: GtkSource-4 — dropped empty base(s):
|
|
3
|
+
// GENERATED — do not edit. Provenance: GtkSource-4 — 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,33 +11,98 @@ export const PROVENANCE = {
|
|
|
11
11
|
version: '4',
|
|
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', '@girs/pango-1.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
|
+
GtkSourceCompletionItem: ['gicon', 'icon', 'icon-name', 'info', 'label', 'markup', 'text'],
|
|
27
|
+
GtkSourceCompletionWords: ['activation', 'icon', 'interactive-delay', 'minimum-word-size', 'name', 'priority', 'proposals-batch-size', 'scan-batch-size'],
|
|
28
|
+
GtkSourceFile: ['location'],
|
|
29
|
+
GtkSourceFileLoader: ['buffer', 'file', 'input-stream', 'location'],
|
|
30
|
+
GtkSourceFileSaver: ['buffer', 'compression-type', 'encoding', 'file', 'flags', 'location', 'newline-type'],
|
|
31
|
+
GtkSourceGutter: ['view', 'window-type'],
|
|
32
|
+
GtkSourceGutterRenderer: ['alignment-mode', 'background-rgba', 'background-set', 'size', 'visible', 'xalign', 'xpad', 'yalign', 'ypad'],
|
|
33
|
+
GtkSourceGutterRendererPixbuf: ['gicon', 'icon-name', 'pixbuf'],
|
|
34
|
+
GtkSourceGutterRendererText: ['markup', 'text'],
|
|
35
|
+
GtkSourceLanguageManager: ['search-path'],
|
|
20
36
|
GtkSourceMap: ['font-desc', 'view'],
|
|
37
|
+
GtkSourceMark: ['category'],
|
|
38
|
+
GtkSourceMarkAttributes: ['background', 'gicon', 'icon-name', 'pixbuf'],
|
|
39
|
+
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'],
|
|
40
|
+
GtkSourceRegion: ['buffer'],
|
|
41
|
+
GtkSourceSearchContext: ['buffer', 'highlight', 'match-style', 'settings'],
|
|
42
|
+
GtkSourceSearchSettings: ['at-word-boundaries', 'case-sensitive', 'regex-enabled', 'search-text', 'wrap-around'],
|
|
43
|
+
GtkSourceSpaceDrawer: ['enable-matrix', 'matrix'],
|
|
44
|
+
GtkSourceStyle: ['background', 'background-set', 'bold', 'bold-set', 'foreground', 'foreground-set', 'italic', 'italic-set', 'line-background', 'line-background-set', 'pango-underline', 'scale', 'scale-set', 'strikethrough', 'strikethrough-set', 'underline-color', 'underline-color-set', 'underline-set'],
|
|
45
|
+
GtkSourceStyleScheme: ['id'],
|
|
21
46
|
GtkSourceStyleSchemeChooser: ['style-scheme'],
|
|
47
|
+
GtkSourceStyleSchemeManager: ['search-path'],
|
|
48
|
+
GtkSourceTag: ['draw-spaces', 'draw-spaces-set'],
|
|
22
49
|
GtkSourceView: ['auto-indent', 'background-pattern', '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'],
|
|
23
50
|
};
|
|
24
51
|
|
|
25
52
|
export const OWN_SIGNALS = {
|
|
53
|
+
GtkSourceBuffer: ['bracket-matched', 'highlight-updated', 'redo', 'source-mark-updated', 'undo'],
|
|
54
|
+
GtkSourceCompletion: ['activate-proposal', 'hide', 'move-cursor', 'move-page', 'populate-context', 'show'],
|
|
55
|
+
GtkSourceCompletionContext: ['cancelled'],
|
|
56
|
+
GtkSourceCompletionProposal: ['changed'],
|
|
57
|
+
GtkSourceGutterRenderer: ['activate', 'query-activatable', 'query-data', 'query-tooltip', 'queue-draw'],
|
|
58
|
+
GtkSourceMarkAttributes: ['query-tooltip-markup', 'query-tooltip-text'],
|
|
26
59
|
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'],
|
|
27
60
|
};
|
|
28
61
|
|
|
62
|
+
// Every GType this namespace can INSTANTIATE -> the declarations its members come from.
|
|
63
|
+
//
|
|
64
|
+
// The key set is what a UI description file can name: a registered, non-abstract class.
|
|
65
|
+
// Not "every widget" — GtkBuilder resolves a name through `g_type_from_name`, which knows
|
|
66
|
+
// nothing about widgets, and a `.ui` file is full of `GtkSizeGroup`, `GtkTextTag`,
|
|
67
|
+
// `GtkEventController*` and `GtkCellRenderer*`. Use `Widgets` and `CHILD_HOLDERS`
|
|
68
|
+
// below for the narrower questions; they did not move.
|
|
29
69
|
export const DECLS = {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
70
|
+
GtkSourceBuffer: ['GtkSourceBuffer', 'GtkTextBuffer', 'GObject'],
|
|
71
|
+
GtkSourceCompletion: ['GtkSourceCompletion', 'GObject', 'GtkBuildable'],
|
|
72
|
+
GtkSourceCompletionContext: ['GtkSourceCompletionContext', 'GInitiallyUnowned', 'GObject'],
|
|
73
|
+
GtkSourceCompletionInfo: ['GtkSourceCompletionInfo', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable'],
|
|
74
|
+
GtkSourceCompletionItem: ['GtkSourceCompletionItem', 'GObject', 'GtkSourceCompletionProposal'],
|
|
75
|
+
GtkSourceCompletionWords: ['GtkSourceCompletionWords', 'GObject', 'GtkSourceCompletionProvider'],
|
|
76
|
+
GtkSourceFile: ['GtkSourceFile', 'GObject'],
|
|
77
|
+
GtkSourceFileLoader: ['GtkSourceFileLoader', 'GObject'],
|
|
78
|
+
GtkSourceFileSaver: ['GtkSourceFileSaver', 'GObject'],
|
|
79
|
+
GtkSourceGutter: ['GtkSourceGutter', 'GObject'],
|
|
80
|
+
GtkSourceGutterRendererPixbuf: ['GtkSourceGutterRendererPixbuf', 'GtkSourceGutterRenderer', 'GInitiallyUnowned', 'GObject'],
|
|
81
|
+
GtkSourceGutterRendererText: ['GtkSourceGutterRendererText', 'GtkSourceGutterRenderer', 'GInitiallyUnowned', 'GObject'],
|
|
82
|
+
GtkSourceLanguage: ['GtkSourceLanguage', 'GObject'],
|
|
83
|
+
GtkSourceLanguageManager: ['GtkSourceLanguageManager', 'GObject'],
|
|
84
|
+
GtkSourceMap: ['GtkSourceMap', 'GtkSourceView', 'GtkTextView', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkScrollable'],
|
|
85
|
+
GtkSourceMark: ['GtkSourceMark', 'GtkTextMark', 'GObject'],
|
|
86
|
+
GtkSourceMarkAttributes: ['GtkSourceMarkAttributes', 'GObject'],
|
|
87
|
+
GtkSourcePrintCompositor: ['GtkSourcePrintCompositor', 'GObject'],
|
|
88
|
+
GtkSourceRegion: ['GtkSourceRegion', 'GObject'],
|
|
89
|
+
GtkSourceSearchContext: ['GtkSourceSearchContext', 'GObject'],
|
|
90
|
+
GtkSourceSearchSettings: ['GtkSourceSearchSettings', 'GObject'],
|
|
91
|
+
GtkSourceSpaceDrawer: ['GtkSourceSpaceDrawer', 'GObject'],
|
|
92
|
+
GtkSourceStyle: ['GtkSourceStyle', 'GObject'],
|
|
93
|
+
GtkSourceStyleScheme: ['GtkSourceStyleScheme', 'GObject'],
|
|
94
|
+
GtkSourceStyleSchemeChooserButton: ['GtkSourceStyleSchemeChooserButton', 'GtkButton', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkActionable', 'GtkActivatable', 'GtkBuildable', 'GtkSourceStyleSchemeChooser'],
|
|
95
|
+
GtkSourceStyleSchemeChooserWidget: ['GtkSourceStyleSchemeChooserWidget', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkSourceStyleSchemeChooser'],
|
|
96
|
+
GtkSourceStyleSchemeManager: ['GtkSourceStyleSchemeManager', 'GObject'],
|
|
97
|
+
GtkSourceTag: ['GtkSourceTag', 'GtkTextTag', 'GObject'],
|
|
98
|
+
GtkSourceView: ['GtkSourceView', 'GtkTextView', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkScrollable'],
|
|
35
99
|
};
|
|
36
100
|
|
|
37
|
-
// The GTypes above that are
|
|
38
|
-
//
|
|
39
|
-
//
|
|
40
|
-
//
|
|
101
|
+
// The GTypes above that ARE widgets are the `Widgets` map in the sibling `.d.ts`; these
|
|
102
|
+
// are the ones that merely HOLD one, through `set_child`/`get_child`, descending from
|
|
103
|
+
// `GObject.Object`. A renderer places them like a container; a check asking "is this a
|
|
104
|
+
// widget" must not count them. Derived from the accessor pair, never from a list — the
|
|
105
|
+
// count is in the provenance line above.
|
|
41
106
|
export const CHILD_HOLDERS = [];
|
|
42
107
|
|
|
43
108
|
export const ENUM_NICKS = {
|
|
@@ -49,6 +114,9 @@ export const ENUM_NICKS = {
|
|
|
49
114
|
GtkSourceNewlineType: ['lf', 'cr', 'cr-lf'],
|
|
50
115
|
GtkSourceSmartHomeEndType: ['disabled', 'before', 'after', 'always'],
|
|
51
116
|
GtkSourceViewGutterPosition: ['lines', 'marks'],
|
|
117
|
+
GtkTextWindowType: ['private', 'widget', 'text', 'left', 'right', 'top', 'bottom'],
|
|
118
|
+
GtkWrapMode: ['none', 'char', 'word', 'word-char'],
|
|
119
|
+
PangoUnderline: ['none', 'single', 'double', 'low', 'error', 'single-line', 'double-line', 'error-line'],
|
|
52
120
|
};
|
|
53
121
|
|
|
54
122
|
// The number behind each of those nicks, read from GIR's own `value` attribute.
|
|
@@ -56,7 +124,7 @@ export const ENUM_NICKS = {
|
|
|
56
124
|
// It ships because position in `ENUM_NICKS` is not the value and a consumer with no
|
|
57
125
|
// typelib has no other way to learn it: a surface without GI still has to hand GObject an
|
|
58
126
|
// integer. The alternative a consumer reaches for first is counting, and counting is wrong
|
|
59
|
-
// on 6 of the
|
|
127
|
+
// on 6 of the 137 enums a GTK 4 vocabulary carries (112 in Gtk-4.0, 25 in Adw-1) --
|
|
60
128
|
// `GtkResponseType` runs -1 down to
|
|
61
129
|
// -11, `GtkTextWindowType` starts at 1, and `GtkConstraintStrength.required` is
|
|
62
130
|
// 1001001000 where counting answers 0.
|
|
@@ -90,6 +158,25 @@ export const ENUM_VALUES = {
|
|
|
90
158
|
'GtkSourceSmartHomeEndType.disabled': 0,
|
|
91
159
|
'GtkSourceViewGutterPosition.lines': -30,
|
|
92
160
|
'GtkSourceViewGutterPosition.marks': -20,
|
|
161
|
+
'GtkTextWindowType.bottom': 6,
|
|
162
|
+
'GtkTextWindowType.left': 3,
|
|
163
|
+
'GtkTextWindowType.private': 0,
|
|
164
|
+
'GtkTextWindowType.right': 4,
|
|
165
|
+
'GtkTextWindowType.text': 2,
|
|
166
|
+
'GtkTextWindowType.top': 5,
|
|
167
|
+
'GtkTextWindowType.widget': 1,
|
|
168
|
+
'GtkWrapMode.char': 1,
|
|
169
|
+
'GtkWrapMode.none': 0,
|
|
170
|
+
'GtkWrapMode.word': 2,
|
|
171
|
+
'GtkWrapMode.word-char': 3,
|
|
172
|
+
'PangoUnderline.double': 2,
|
|
173
|
+
'PangoUnderline.double-line': 6,
|
|
174
|
+
'PangoUnderline.error': 4,
|
|
175
|
+
'PangoUnderline.error-line': 7,
|
|
176
|
+
'PangoUnderline.low': 3,
|
|
177
|
+
'PangoUnderline.none': 0,
|
|
178
|
+
'PangoUnderline.single': 1,
|
|
179
|
+
'PangoUnderline.single-line': 5,
|
|
93
180
|
};
|
|
94
181
|
|
|
95
182
|
// The nicks GIR marks `deprecated="1"`.
|
|
@@ -118,11 +205,12 @@ export const ENUM_VALUES_UNREADABLE = {};
|
|
|
118
205
|
// The number behind each member of a registered BITFIELD, keyed the same way.
|
|
119
206
|
//
|
|
120
207
|
// `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
|
-
//
|
|
208
|
+
// reason says nothing about one member's number. 23 settable properties in Gtk-4.0 and
|
|
209
|
+
// Adw-1 are bitfield-typed -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`,
|
|
210
|
+
// `AdwTabView:shortcuts`, `GtkDropTarget:actions`, ... -- and they are typed bare
|
|
211
|
+
// `number`, so a host without GI has nothing to compute one from. Counting is worst
|
|
212
|
+
// exactly here: 119 of the 156 Gtk-4.0 bitfield members this vocabulary carries disagree
|
|
213
|
+
// with their declaration position, against 29 of 672 enumeration members.
|
|
126
214
|
//
|
|
127
215
|
// A table of its own rather than more rows in `ENUM_VALUES`, so that "every nick in
|
|
128
216
|
// `ENUM_NICKS` has a number or a declared reason" stays a claim about one set.
|
|
@@ -172,9 +260,18 @@ export const FLAG_VALUES_UNREADABLE = {};
|
|
|
172
260
|
// one are both entries a consumer would resolve wrongly, so neither is written.
|
|
173
261
|
//
|
|
174
262
|
// A GType named here has numbers in SOME vocabulary, not necessarily this one: the namespace
|
|
175
|
-
// that OWNS an enum publishes it, so
|
|
263
|
+
// that OWNS an enum publishes it, so 83 of the 909 entries a full run emits want the owner's
|
|
176
264
|
// vocabulary loaded too. Owners that emit none (Gdk, Pango) are inlined into the tables above.
|
|
177
265
|
export const PROP_ENUMS = {
|
|
266
|
+
'GtkSourceCompletionContext.activation': 'GtkSourceCompletionActivation',
|
|
267
|
+
'GtkSourceCompletionWords.activation': 'GtkSourceCompletionActivation',
|
|
268
|
+
'GtkSourceFileSaver.compression-type': 'GtkSourceCompressionType',
|
|
269
|
+
'GtkSourceFileSaver.flags': 'GtkSourceFileSaverFlags',
|
|
270
|
+
'GtkSourceFileSaver.newline-type': 'GtkSourceNewlineType',
|
|
271
|
+
'GtkSourceGutter.window-type': 'GtkTextWindowType',
|
|
272
|
+
'GtkSourceGutterRenderer.alignment-mode': 'GtkSourceGutterRendererAlignmentMode',
|
|
273
|
+
'GtkSourcePrintCompositor.wrap-mode': 'GtkWrapMode',
|
|
274
|
+
'GtkSourceStyle.pango-underline': 'PangoUnderline',
|
|
178
275
|
'GtkSourceView.background-pattern': 'GtkSourceBackgroundPatternType',
|
|
179
276
|
'GtkSourceView.smart-home-end': 'GtkSourceSmartHomeEndType',
|
|
180
277
|
};
|
|
@@ -211,7 +308,49 @@ export const SLOT_CANDIDATES = {
|
|
|
211
308
|
};
|
|
212
309
|
|
|
213
310
|
export const SINCE = {
|
|
311
|
+
'GtkSourceBuffer.implicit-trailing-newline': '3.14',
|
|
312
|
+
'GtkSourceBuffer::bracket-matched': '2.12',
|
|
313
|
+
'GtkSourceCompletionItem.gicon': '3.18',
|
|
314
|
+
'GtkSourceCompletionItem.icon-name': '3.18',
|
|
315
|
+
'GtkSourceCompletionWords.activation': '3.10',
|
|
316
|
+
'GtkSourceFile.location': '3.14',
|
|
317
|
+
'GtkSourceFileLoader.buffer': '3.14',
|
|
318
|
+
'GtkSourceFileLoader.file': '3.14',
|
|
319
|
+
'GtkSourceFileLoader.input-stream': '3.14',
|
|
320
|
+
'GtkSourceFileLoader.location': '3.14',
|
|
321
|
+
'GtkSourceFileSaver.buffer': '3.14',
|
|
322
|
+
'GtkSourceFileSaver.compression-type': '3.14',
|
|
323
|
+
'GtkSourceFileSaver.encoding': '3.14',
|
|
324
|
+
'GtkSourceFileSaver.file': '3.14',
|
|
325
|
+
'GtkSourceFileSaver.flags': '3.14',
|
|
326
|
+
'GtkSourceFileSaver.location': '3.14',
|
|
327
|
+
'GtkSourceFileSaver.newline-type': '3.14',
|
|
328
|
+
'GtkSourcePrintCompositor.body-font-name': '2.2',
|
|
329
|
+
'GtkSourcePrintCompositor.buffer': '2.2',
|
|
330
|
+
'GtkSourcePrintCompositor.footer-font-name': '2.2',
|
|
331
|
+
'GtkSourcePrintCompositor.header-font-name': '2.2',
|
|
332
|
+
'GtkSourcePrintCompositor.highlight-syntax': '2.2',
|
|
333
|
+
'GtkSourcePrintCompositor.line-numbers-font-name': '2.2',
|
|
334
|
+
'GtkSourcePrintCompositor.print-footer': '2.2',
|
|
335
|
+
'GtkSourcePrintCompositor.print-header': '2.2',
|
|
336
|
+
'GtkSourcePrintCompositor.print-line-numbers': '2.2',
|
|
337
|
+
'GtkSourcePrintCompositor.tab-width': '2.2',
|
|
338
|
+
'GtkSourcePrintCompositor.wrap-mode': '2.2',
|
|
339
|
+
'GtkSourceRegion.buffer': '3.22',
|
|
340
|
+
'GtkSourceSearchContext.buffer': '3.10',
|
|
341
|
+
'GtkSourceSearchContext.highlight': '3.10',
|
|
342
|
+
'GtkSourceSearchContext.match-style': '3.16',
|
|
343
|
+
'GtkSourceSearchContext.settings': '3.10',
|
|
344
|
+
'GtkSourceSearchSettings.at-word-boundaries': '3.10',
|
|
345
|
+
'GtkSourceSearchSettings.case-sensitive': '3.10',
|
|
346
|
+
'GtkSourceSearchSettings.regex-enabled': '3.10',
|
|
347
|
+
'GtkSourceSearchSettings.search-text': '3.10',
|
|
348
|
+
'GtkSourceSearchSettings.wrap-around': '3.10',
|
|
349
|
+
'GtkSourceSpaceDrawer.enable-matrix': '3.24',
|
|
350
|
+
'GtkSourceSpaceDrawer.matrix': '3.24',
|
|
214
351
|
'GtkSourceStyleSchemeChooser.style-scheme': '3.16',
|
|
352
|
+
'GtkSourceTag.draw-spaces': '3.20',
|
|
353
|
+
'GtkSourceTag.draw-spaces-set': '3.20',
|
|
215
354
|
'GtkSourceView.background-pattern': '3.16',
|
|
216
355
|
'GtkSourceView.smart-backspace': '3.18',
|
|
217
356
|
'GtkSourceView.smart-home-end': '2.0',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gtksource-4",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for GtkSource-4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gtksource-4.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
|
},
|