@girs/gtksource-5 5.2.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-5-vocabulary.d.ts +89 -64
- package/gtksource-5-vocabulary.js +58 -44
- package/package.json +16 -16
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|

|
|
5
5
|

|
|
6
6
|
|
|
7
|
-
GJS TypeScript type definitions for GtkSource-5, generated from library version 5.21.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.
|
|
7
|
+
GJS TypeScript type definitions for GtkSource-5, generated from library version 5.21.0 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-5.
|
|
3
3
|
*
|
|
4
|
-
* GENERATED — do not edit. Provenance: GtkSource-5 — library 5.21.0
|
|
4
|
+
* GENERATED — do not edit. Provenance: GtkSource-5 — library 5.21.0
|
|
5
5
|
*
|
|
6
|
-
* 42 instantiable GTypes (of which 10 concrete widgets), 45 declarations,
|
|
6
|
+
* 42 instantiable GTypes (of which 10 concrete widgets), 45 declarations, 11 enum nick unions, 2 slot candidates.
|
|
7
7
|
*
|
|
8
8
|
* Module-scoped exports only. There is no `JSX` namespace here, no tag spelling and
|
|
9
9
|
* no `on<Signal>` prop name: those are DIALECT, and every framework answers them
|
|
@@ -31,7 +31,10 @@ import type Gio from '@girs/gio-2.0';
|
|
|
31
31
|
import type Gtk from '@girs/gtk-4.0';
|
|
32
32
|
import type GtkSource from './gtksource-5.js';
|
|
33
33
|
import type Pango from '@girs/pango-1.0';
|
|
34
|
+
import type { GListModelConstructOnly, GListModelProps } from '@girs/gio-2.0/vocabulary';
|
|
35
|
+
import type { GInitiallyUnownedConstructOnly, GInitiallyUnownedProps, GObjectConstructOnly, GObjectProps } from '@girs/gobject-2.0/vocabulary';
|
|
34
36
|
import type { GtkAccessibleConstructOnly, GtkAccessibleProps, GtkAccessibleTextConstructOnly, GtkAccessibleTextProps, GtkActionableConstructOnly, GtkActionableProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkButtonConstructOnly, GtkButtonProps, GtkConstraintTargetConstructOnly, GtkConstraintTargetProps, GtkIMContextConstructOnly, GtkIMContextProps, GtkScrollableConstructOnly, GtkScrollableProps, GtkTextBufferConstructOnly, GtkTextBufferProps, GtkTextMarkConstructOnly, GtkTextMarkProps, GtkTextTagConstructOnly, GtkTextTagProps, GtkTextViewConstructOnly, GtkTextViewProps, GtkTextWindowTypeNick, GtkWidgetConstructOnly, GtkWidgetProps, GtkWrapModeNick } from '@girs/gtk-4.0/vocabulary';
|
|
37
|
+
import type { PangoUnderlineNick, PangoWeightNick } from '@girs/pango-1.0/vocabulary';
|
|
35
38
|
|
|
36
39
|
// ---------------------------------------------------------------------------
|
|
37
40
|
// Enum nicks — the string vocabulary GObject registered, from GIR's `glib:nick`.
|
|
@@ -54,8 +57,6 @@ export type GtkSourceGutterRendererAlignmentModeNick = 'cell' | 'first' | 'last'
|
|
|
54
57
|
export type GtkSourceNewlineTypeNick = 'lf' | 'cr' | 'cr-lf';
|
|
55
58
|
export type GtkSourceSmartHomeEndTypeNick = 'disabled' | 'before' | 'after' | 'always';
|
|
56
59
|
export type GtkSourceViewGutterPositionNick = 'lines' | 'marks';
|
|
57
|
-
export type PangoUnderlineNick = 'none' | 'single' | 'double' | 'low' | 'error' | 'single-line' | 'double-line' | 'error-line';
|
|
58
|
-
export type PangoWeightNick = 'thin' | 'ultralight' | 'light' | 'semilight' | 'book' | 'normal' | 'medium' | 'semibold' | 'bold' | 'ultrabold' | 'heavy' | 'ultraheavy';
|
|
59
60
|
|
|
60
61
|
// ---------------------------------------------------------------------------
|
|
61
62
|
// Property surfaces — one interface per GIR DECLARATION, mirroring GIR's own
|
|
@@ -68,22 +69,22 @@ export type PangoWeightNick = 'thin' | 'ultralight' | 'light' | 'semilight' | 'b
|
|
|
68
69
|
// ---------------------------------------------------------------------------
|
|
69
70
|
|
|
70
71
|
/** Represents an annotation added to [class@View], it has a [property@Annotation:line] property, [property@Annotation:description], icon and a style. */
|
|
71
|
-
export interface GtkSourceAnnotationProps {
|
|
72
|
+
export interface GtkSourceAnnotationProps extends GObjectProps {
|
|
72
73
|
}
|
|
73
74
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
74
|
-
export type GtkSourceAnnotationConstructOnly =
|
|
75
|
+
export type GtkSourceAnnotationConstructOnly = GObjectConstructOnly;
|
|
75
76
|
|
|
76
77
|
/** It is used to provide annotations and display them on [class@View] and also populate [class@HoverDisplay] when the user hovers over an annotation. */
|
|
77
|
-
export interface GtkSourceAnnotationProviderProps {
|
|
78
|
+
export interface GtkSourceAnnotationProviderProps extends GObjectProps {
|
|
78
79
|
}
|
|
79
80
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
80
|
-
export type GtkSourceAnnotationProviderConstructOnly =
|
|
81
|
+
export type GtkSourceAnnotationProviderConstructOnly = GObjectConstructOnly;
|
|
81
82
|
|
|
82
83
|
/** Use this object to manage [class@Annotation]s. */
|
|
83
|
-
export interface GtkSourceAnnotationsProps {
|
|
84
|
+
export interface GtkSourceAnnotationsProps extends GObjectProps {
|
|
84
85
|
}
|
|
85
86
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
86
|
-
export type GtkSourceAnnotationsConstructOnly =
|
|
87
|
+
export type GtkSourceAnnotationsConstructOnly = GObjectConstructOnly;
|
|
87
88
|
|
|
88
89
|
/** Subclass of [class@Gtk.TextBuffer]. */
|
|
89
90
|
export interface GtkSourceBufferProps extends GtkTextBufferProps {
|
|
@@ -110,7 +111,7 @@ export interface GtkSourceBufferProps extends GtkTextBufferProps {
|
|
|
110
111
|
export type GtkSourceBufferConstructOnly = GtkTextBufferConstructOnly;
|
|
111
112
|
|
|
112
113
|
/** Main Completion Object. */
|
|
113
|
-
export interface GtkSourceCompletionProps {
|
|
114
|
+
export interface GtkSourceCompletionProps extends GObjectProps {
|
|
114
115
|
/**
|
|
115
116
|
* The number of rows to display to the user before scrolling.
|
|
116
117
|
* @default 5
|
|
@@ -135,7 +136,7 @@ export interface GtkSourceCompletionProps {
|
|
|
135
136
|
view?: GtkSource.View;
|
|
136
137
|
}
|
|
137
138
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
138
|
-
export type GtkSourceCompletionConstructOnly = 'view';
|
|
139
|
+
export type GtkSourceCompletionConstructOnly = GObjectConstructOnly | 'view';
|
|
139
140
|
|
|
140
141
|
/** Widget for single cell of completion proposal. */
|
|
141
142
|
export interface GtkSourceCompletionCellProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
@@ -152,31 +153,31 @@ export interface GtkSourceCompletionCellProps extends GtkWidgetProps, GtkAccessi
|
|
|
152
153
|
export type GtkSourceCompletionCellConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly | 'column';
|
|
153
154
|
|
|
154
155
|
/** The context of a completion. */
|
|
155
|
-
export interface GtkSourceCompletionContextProps {
|
|
156
|
+
export interface GtkSourceCompletionContextProps extends GObjectProps, GListModelProps {
|
|
156
157
|
/** The "completion" is the #GtkSourceCompletion that was used to create the context. */
|
|
157
158
|
completion?: GtkSource.Completion | null;
|
|
158
159
|
}
|
|
159
160
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
160
|
-
export type GtkSourceCompletionContextConstructOnly = 'completion';
|
|
161
|
+
export type GtkSourceCompletionContextConstructOnly = GObjectConstructOnly | GListModelConstructOnly | 'completion';
|
|
161
162
|
|
|
162
163
|
/** Completion provider interface. */
|
|
163
|
-
export interface GtkSourceCompletionProviderProps {
|
|
164
|
+
export interface GtkSourceCompletionProviderProps extends GObjectProps {
|
|
164
165
|
}
|
|
165
166
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
166
|
-
export type GtkSourceCompletionProviderConstructOnly =
|
|
167
|
+
export type GtkSourceCompletionProviderConstructOnly = GObjectConstructOnly;
|
|
167
168
|
|
|
168
169
|
/** A [iface@CompletionProvider] for the completion of snippets. */
|
|
169
|
-
export interface GtkSourceCompletionSnippetsProps extends GtkSourceCompletionProviderProps {
|
|
170
|
+
export interface GtkSourceCompletionSnippetsProps extends GObjectProps, GtkSourceCompletionProviderProps {
|
|
170
171
|
/** @default 0 */
|
|
171
172
|
priority?: number;
|
|
172
173
|
/** @default NULL */
|
|
173
174
|
title?: string;
|
|
174
175
|
}
|
|
175
176
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
176
|
-
export type GtkSourceCompletionSnippetsConstructOnly = GtkSourceCompletionProviderConstructOnly;
|
|
177
|
+
export type GtkSourceCompletionSnippetsConstructOnly = GObjectConstructOnly | GtkSourceCompletionProviderConstructOnly;
|
|
177
178
|
|
|
178
179
|
/** A [iface@CompletionProvider] for the completion of words. */
|
|
179
|
-
export interface GtkSourceCompletionWordsProps extends GtkSourceCompletionProviderProps {
|
|
180
|
+
export interface GtkSourceCompletionWordsProps extends GObjectProps, GtkSourceCompletionProviderProps {
|
|
180
181
|
/** @default 2 */
|
|
181
182
|
'minimum-word-size'?: number;
|
|
182
183
|
/** @default 0 */
|
|
@@ -189,18 +190,18 @@ export interface GtkSourceCompletionWordsProps extends GtkSourceCompletionProvid
|
|
|
189
190
|
title?: string;
|
|
190
191
|
}
|
|
191
192
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
192
|
-
export type GtkSourceCompletionWordsConstructOnly = GtkSourceCompletionProviderConstructOnly;
|
|
193
|
+
export type GtkSourceCompletionWordsConstructOnly = GObjectConstructOnly | GtkSourceCompletionProviderConstructOnly;
|
|
193
194
|
|
|
194
195
|
/** On-disk representation of a [class@Buffer]. */
|
|
195
|
-
export interface GtkSourceFileProps {
|
|
196
|
+
export interface GtkSourceFileProps extends GObjectProps {
|
|
196
197
|
/** The location. */
|
|
197
198
|
location?: Gio.File | null;
|
|
198
199
|
}
|
|
199
200
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
200
|
-
export type GtkSourceFileConstructOnly =
|
|
201
|
+
export type GtkSourceFileConstructOnly = GObjectConstructOnly;
|
|
201
202
|
|
|
202
203
|
/** Load a file into a GtkSourceBuffer. */
|
|
203
|
-
export interface GtkSourceFileLoaderProps {
|
|
204
|
+
export interface GtkSourceFileLoaderProps extends GObjectProps {
|
|
204
205
|
/** The #GtkSourceBuffer to load the contents into. */
|
|
205
206
|
buffer?: GtkSource.Buffer;
|
|
206
207
|
/** The #GtkSourceFile. */
|
|
@@ -217,10 +218,10 @@ export interface GtkSourceFileLoaderProps {
|
|
|
217
218
|
'max-size'?: bigint | number;
|
|
218
219
|
}
|
|
219
220
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
220
|
-
export type GtkSourceFileLoaderConstructOnly = 'buffer' | 'file' | 'input-stream' | 'location';
|
|
221
|
+
export type GtkSourceFileLoaderConstructOnly = GObjectConstructOnly | 'buffer' | 'file' | 'input-stream' | 'location';
|
|
221
222
|
|
|
222
223
|
/** Save a [class@Buffer] into a file. */
|
|
223
|
-
export interface GtkSourceFileSaverProps {
|
|
224
|
+
export interface GtkSourceFileSaverProps extends GObjectProps {
|
|
224
225
|
/** The #GtkSourceBuffer to save. */
|
|
225
226
|
buffer?: GtkSource.Buffer;
|
|
226
227
|
/**
|
|
@@ -246,7 +247,7 @@ export interface GtkSourceFileSaverProps {
|
|
|
246
247
|
'newline-type'?: GtkSourceNewlineTypeNick | GtkSource.NewlineType;
|
|
247
248
|
}
|
|
248
249
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
249
|
-
export type GtkSourceFileSaverConstructOnly = 'buffer' | 'file' | 'location';
|
|
250
|
+
export type GtkSourceFileSaverConstructOnly = GObjectConstructOnly | 'buffer' | 'file' | 'location';
|
|
250
251
|
|
|
251
252
|
/** Gutter object for [class@View]. */
|
|
252
253
|
export interface GtkSourceGutterProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
@@ -262,10 +263,10 @@ export interface GtkSourceGutterProps extends GtkWidgetProps, GtkAccessibleProps
|
|
|
262
263
|
export type GtkSourceGutterConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly | 'view' | 'window-type';
|
|
263
264
|
|
|
264
265
|
/** Collected information about visible lines. */
|
|
265
|
-
export interface GtkSourceGutterLinesProps {
|
|
266
|
+
export interface GtkSourceGutterLinesProps extends GObjectProps {
|
|
266
267
|
}
|
|
267
268
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
268
|
-
export type GtkSourceGutterLinesConstructOnly =
|
|
269
|
+
export type GtkSourceGutterLinesConstructOnly = GObjectConstructOnly;
|
|
269
270
|
|
|
270
271
|
/** Gutter cell renderer. */
|
|
271
272
|
export interface GtkSourceGutterRendererProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
@@ -320,7 +321,7 @@ export interface GtkSourceGutterRendererTextProps extends GtkSourceGutterRendere
|
|
|
320
321
|
export type GtkSourceGutterRendererTextConstructOnly = GtkSourceGutterRendererConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly;
|
|
321
322
|
|
|
322
323
|
/** Interactive tooltips. */
|
|
323
|
-
export interface GtkSourceHoverProps {
|
|
324
|
+
export interface GtkSourceHoverProps extends GObjectProps {
|
|
324
325
|
/**
|
|
325
326
|
* Contains the number of milliseconds to delay before showing the hover assistant.
|
|
326
327
|
* @default 500
|
|
@@ -328,13 +329,13 @@ export interface GtkSourceHoverProps {
|
|
|
328
329
|
'hover-delay'?: number;
|
|
329
330
|
}
|
|
330
331
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
331
|
-
export type GtkSourceHoverConstructOnly =
|
|
332
|
+
export type GtkSourceHoverConstructOnly = GObjectConstructOnly;
|
|
332
333
|
|
|
333
334
|
/** Context for populating [class@HoverDisplay] contents. */
|
|
334
|
-
export interface GtkSourceHoverContextProps {
|
|
335
|
+
export interface GtkSourceHoverContextProps extends GObjectProps {
|
|
335
336
|
}
|
|
336
337
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
337
|
-
export type GtkSourceHoverContextConstructOnly =
|
|
338
|
+
export type GtkSourceHoverContextConstructOnly = GObjectConstructOnly;
|
|
338
339
|
|
|
339
340
|
/** Display for interactive tooltips. */
|
|
340
341
|
export interface GtkSourceHoverDisplayProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
@@ -343,17 +344,17 @@ export interface GtkSourceHoverDisplayProps extends GtkWidgetProps, GtkAccessibl
|
|
|
343
344
|
export type GtkSourceHoverDisplayConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly;
|
|
344
345
|
|
|
345
346
|
/** Represents a syntax highlighted language. */
|
|
346
|
-
export interface GtkSourceLanguageProps {
|
|
347
|
+
export interface GtkSourceLanguageProps extends GObjectProps {
|
|
347
348
|
}
|
|
348
349
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
349
|
-
export type GtkSourceLanguageConstructOnly =
|
|
350
|
+
export type GtkSourceLanguageConstructOnly = GObjectConstructOnly;
|
|
350
351
|
|
|
351
352
|
/** Provides access to [class@Language]s. */
|
|
352
|
-
export interface GtkSourceLanguageManagerProps {
|
|
353
|
+
export interface GtkSourceLanguageManagerProps extends GObjectProps {
|
|
353
354
|
'search-path'?: string[];
|
|
354
355
|
}
|
|
355
356
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
356
|
-
export type GtkSourceLanguageManagerConstructOnly =
|
|
357
|
+
export type GtkSourceLanguageManagerConstructOnly = GObjectConstructOnly;
|
|
357
358
|
|
|
358
359
|
/** Widget that displays a map for a specific [class@View]. */
|
|
359
360
|
export interface GtkSourceMapProps extends GtkSourceViewProps, GtkAccessibleProps, GtkAccessibleTextProps, GtkBuildableProps, GtkConstraintTargetProps, GtkScrollableProps {
|
|
@@ -375,7 +376,7 @@ export interface GtkSourceMarkProps extends GtkTextMarkProps {
|
|
|
375
376
|
export type GtkSourceMarkConstructOnly = GtkTextMarkConstructOnly | 'category';
|
|
376
377
|
|
|
377
378
|
/** The source mark attributes object. */
|
|
378
|
-
export interface GtkSourceMarkAttributesProps {
|
|
379
|
+
export interface GtkSourceMarkAttributesProps extends GObjectProps {
|
|
379
380
|
/** A color used for background of a line. */
|
|
380
381
|
background?: Gdk.RGBA;
|
|
381
382
|
/** A #GIcon that may be a base of a rendered icon. */
|
|
@@ -389,10 +390,10 @@ export interface GtkSourceMarkAttributesProps {
|
|
|
389
390
|
pixbuf?: GdkPixbuf.Pixbuf;
|
|
390
391
|
}
|
|
391
392
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
392
|
-
export type GtkSourceMarkAttributesConstructOnly =
|
|
393
|
+
export type GtkSourceMarkAttributesConstructOnly = GObjectConstructOnly;
|
|
393
394
|
|
|
394
395
|
/** Compose a [class@Buffer] for printing. */
|
|
395
|
-
export interface GtkSourcePrintCompositorProps {
|
|
396
|
+
export interface GtkSourcePrintCompositorProps extends GObjectProps {
|
|
396
397
|
/**
|
|
397
398
|
* Name of the font used for the text body.
|
|
398
399
|
* @default NULL
|
|
@@ -447,18 +448,18 @@ export interface GtkSourcePrintCompositorProps {
|
|
|
447
448
|
'wrap-mode'?: GtkWrapModeNick | Gtk.WrapMode;
|
|
448
449
|
}
|
|
449
450
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
450
|
-
export type GtkSourcePrintCompositorConstructOnly = 'buffer';
|
|
451
|
+
export type GtkSourcePrintCompositorConstructOnly = GObjectConstructOnly | 'buffer';
|
|
451
452
|
|
|
452
453
|
/** Region utility. */
|
|
453
|
-
export interface GtkSourceRegionProps {
|
|
454
|
+
export interface GtkSourceRegionProps extends GObjectProps {
|
|
454
455
|
/** The [class@Gtk.TextBuffer]. */
|
|
455
456
|
buffer?: Gtk.TextBuffer | null;
|
|
456
457
|
}
|
|
457
458
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
458
|
-
export type GtkSourceRegionConstructOnly = 'buffer';
|
|
459
|
+
export type GtkSourceRegionConstructOnly = GObjectConstructOnly | 'buffer';
|
|
459
460
|
|
|
460
461
|
/** Search context. */
|
|
461
|
-
export interface GtkSourceSearchContextProps {
|
|
462
|
+
export interface GtkSourceSearchContextProps extends GObjectProps {
|
|
462
463
|
/** The [class@Buffer] associated to the search context. */
|
|
463
464
|
buffer?: GtkSource.Buffer;
|
|
464
465
|
/**
|
|
@@ -472,10 +473,10 @@ export interface GtkSourceSearchContextProps {
|
|
|
472
473
|
settings?: GtkSource.SearchSettings;
|
|
473
474
|
}
|
|
474
475
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
475
|
-
export type GtkSourceSearchContextConstructOnly = 'buffer' | 'settings';
|
|
476
|
+
export type GtkSourceSearchContextConstructOnly = GObjectConstructOnly | 'buffer' | 'settings';
|
|
476
477
|
|
|
477
478
|
/** Search settings. */
|
|
478
|
-
export interface GtkSourceSearchSettingsProps {
|
|
479
|
+
export interface GtkSourceSearchSettingsProps extends GObjectProps {
|
|
479
480
|
/**
|
|
480
481
|
* If %TRUE, a search match must start and end a word.
|
|
481
482
|
* @default FALSE
|
|
@@ -509,10 +510,10 @@ export interface GtkSourceSearchSettingsProps {
|
|
|
509
510
|
'wrap-around'?: boolean;
|
|
510
511
|
}
|
|
511
512
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
512
|
-
export type GtkSourceSearchSettingsConstructOnly =
|
|
513
|
+
export type GtkSourceSearchSettingsConstructOnly = GObjectConstructOnly;
|
|
513
514
|
|
|
514
515
|
/** Quick insertion code snippets. */
|
|
515
|
-
export interface GtkSourceSnippetProps {
|
|
516
|
+
export interface GtkSourceSnippetProps extends GObjectProps {
|
|
516
517
|
/** @default NULL */
|
|
517
518
|
description?: string;
|
|
518
519
|
/** @default NULL */
|
|
@@ -523,10 +524,10 @@ export interface GtkSourceSnippetProps {
|
|
|
523
524
|
trigger?: string | null;
|
|
524
525
|
}
|
|
525
526
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
526
|
-
export type GtkSourceSnippetConstructOnly =
|
|
527
|
+
export type GtkSourceSnippetConstructOnly = GObjectConstructOnly;
|
|
527
528
|
|
|
528
529
|
/** A chunk of text within the source snippet. */
|
|
529
|
-
export interface GtkSourceSnippetChunkProps {
|
|
530
|
+
export interface GtkSourceSnippetChunkProps extends GInitiallyUnownedProps {
|
|
530
531
|
context?: GtkSource.SnippetContext;
|
|
531
532
|
/** @default -1 */
|
|
532
533
|
'focus-position'?: number;
|
|
@@ -540,24 +541,24 @@ export interface GtkSourceSnippetChunkProps {
|
|
|
540
541
|
'tooltip-text'?: string;
|
|
541
542
|
}
|
|
542
543
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
543
|
-
export type GtkSourceSnippetChunkConstructOnly =
|
|
544
|
+
export type GtkSourceSnippetChunkConstructOnly = GInitiallyUnownedConstructOnly;
|
|
544
545
|
|
|
545
546
|
/** Context for expanding [class@SnippetChunk]. */
|
|
546
|
-
export interface GtkSourceSnippetContextProps {
|
|
547
|
+
export interface GtkSourceSnippetContextProps extends GObjectProps {
|
|
547
548
|
}
|
|
548
549
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
549
|
-
export type GtkSourceSnippetContextConstructOnly =
|
|
550
|
+
export type GtkSourceSnippetContextConstructOnly = GObjectConstructOnly;
|
|
550
551
|
|
|
551
552
|
/** Provides access to [class@Snippet]. */
|
|
552
|
-
export interface GtkSourceSnippetManagerProps {
|
|
553
|
+
export interface GtkSourceSnippetManagerProps extends GObjectProps {
|
|
553
554
|
/** Contains a list of directories to search for files containing snippets (*.snippets). */
|
|
554
555
|
'search-path'?: string[];
|
|
555
556
|
}
|
|
556
557
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
557
|
-
export type GtkSourceSnippetManagerConstructOnly =
|
|
558
|
+
export type GtkSourceSnippetManagerConstructOnly = GObjectConstructOnly;
|
|
558
559
|
|
|
559
560
|
/** Represent white space characters with symbols. */
|
|
560
|
-
export interface GtkSourceSpaceDrawerProps {
|
|
561
|
+
export interface GtkSourceSpaceDrawerProps extends GObjectProps {
|
|
561
562
|
/**
|
|
562
563
|
* Whether the [property@SpaceDrawer:matrix] property is enabled.
|
|
563
564
|
* @default FALSE
|
|
@@ -567,10 +568,10 @@ export interface GtkSourceSpaceDrawerProps {
|
|
|
567
568
|
matrix?: GLib.Variant;
|
|
568
569
|
}
|
|
569
570
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
570
|
-
export type GtkSourceSpaceDrawerConstructOnly =
|
|
571
|
+
export type GtkSourceSpaceDrawerConstructOnly = GObjectConstructOnly;
|
|
571
572
|
|
|
572
573
|
/** Represents a style. */
|
|
573
|
-
export interface GtkSourceStyleProps {
|
|
574
|
+
export interface GtkSourceStyleProps extends GObjectProps {
|
|
574
575
|
/** @default NULL */
|
|
575
576
|
background?: string;
|
|
576
577
|
/** @default FALSE */
|
|
@@ -613,10 +614,10 @@ export interface GtkSourceStyleProps {
|
|
|
613
614
|
'weight-set'?: boolean;
|
|
614
615
|
}
|
|
615
616
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
616
|
-
export type GtkSourceStyleConstructOnly = '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' | 'weight' | 'weight-set';
|
|
617
|
+
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' | 'weight' | 'weight-set';
|
|
617
618
|
|
|
618
619
|
/** Controls the appearance of [class@View]. */
|
|
619
|
-
export interface GtkSourceStyleSchemeProps {
|
|
620
|
+
export interface GtkSourceStyleSchemeProps extends GObjectProps {
|
|
620
621
|
/**
|
|
621
622
|
* Style scheme id, a unique string used to identify the style scheme in [class@StyleSchemeManager].
|
|
622
623
|
* @default NULL
|
|
@@ -624,15 +625,15 @@ export interface GtkSourceStyleSchemeProps {
|
|
|
624
625
|
id?: string;
|
|
625
626
|
}
|
|
626
627
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
627
|
-
export type GtkSourceStyleSchemeConstructOnly = 'id';
|
|
628
|
+
export type GtkSourceStyleSchemeConstructOnly = GObjectConstructOnly | 'id';
|
|
628
629
|
|
|
629
630
|
/** Interface implemented by widgets for choosing style schemes. */
|
|
630
|
-
export interface GtkSourceStyleSchemeChooserProps {
|
|
631
|
+
export interface GtkSourceStyleSchemeChooserProps extends GObjectProps {
|
|
631
632
|
/** Contains the currently selected style scheme. */
|
|
632
633
|
'style-scheme'?: GtkSource.StyleScheme;
|
|
633
634
|
}
|
|
634
635
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
635
|
-
export type GtkSourceStyleSchemeChooserConstructOnly =
|
|
636
|
+
export type GtkSourceStyleSchemeChooserConstructOnly = GObjectConstructOnly;
|
|
636
637
|
|
|
637
638
|
/** A button to launch a style scheme selection dialog. */
|
|
638
639
|
export interface GtkSourceStyleSchemeChooserButtonProps extends GtkButtonProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps, GtkSourceStyleSchemeChooserProps {
|
|
@@ -647,11 +648,11 @@ export interface GtkSourceStyleSchemeChooserWidgetProps extends GtkWidgetProps,
|
|
|
647
648
|
export type GtkSourceStyleSchemeChooserWidgetConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly | GtkSourceStyleSchemeChooserConstructOnly;
|
|
648
649
|
|
|
649
650
|
/** Provides access to [class@StyleScheme]s. */
|
|
650
|
-
export interface GtkSourceStyleSchemeManagerProps {
|
|
651
|
+
export interface GtkSourceStyleSchemeManagerProps extends GObjectProps {
|
|
651
652
|
'search-path'?: string[];
|
|
652
653
|
}
|
|
653
654
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
654
|
-
export type GtkSourceStyleSchemeManagerConstructOnly =
|
|
655
|
+
export type GtkSourceStyleSchemeManagerConstructOnly = GObjectConstructOnly;
|
|
655
656
|
|
|
656
657
|
/** A preview widget for [class@StyleScheme]. */
|
|
657
658
|
export interface GtkSourceStyleSchemePreviewProps extends GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
@@ -906,6 +907,30 @@ export const PROVENANCE: {
|
|
|
906
907
|
* GIRs disagreeing, which is what the main emitter answers `never` for as well.
|
|
907
908
|
*/
|
|
908
909
|
readonly unresolvedProps: readonly string[];
|
|
910
|
+
/**
|
|
911
|
+
* `c:identifier-prefixes` from the GIR, verbatim and in order — `['G']` for Gio.
|
|
912
|
+
*
|
|
913
|
+
* The C prefix a type REFERENCE needs: resolving `Gio.Icon` means producing `GIcon`,
|
|
914
|
+
* and nothing else in this package states that `Gio` spells itself `G`. Carried rather
|
|
915
|
+
* than derived because GIR carries it, and a derivation over the `DECLS` keys is wrong
|
|
916
|
+
* wherever the C prefix is not a prefix of the type NAMES: gdkx11-4.0 and gdkwayland-4.0
|
|
917
|
+
* both state `Gdk` while every key they declare begins `GdkX11`/`GdkWayland`.
|
|
918
|
+
*
|
|
919
|
+
* Empty where the GIR states none — 17 of the 627 emitting namespaces — because
|
|
920
|
+
* inventing the namespace name there is a confident wrong answer in place of a missing
|
|
921
|
+
* one. A LIST because 20 of them state more than one, which no single string expresses.
|
|
922
|
+
*/
|
|
923
|
+
readonly identifierPrefixes: readonly string[];
|
|
924
|
+
/**
|
|
925
|
+
* Sibling vocabularies this one's DECLARATIONS come from, as import specifiers.
|
|
926
|
+
*
|
|
927
|
+
* A chain link with no `OWN_PROPS` row is ambiguous on its own — `GtkSeparator` has no
|
|
928
|
+
* settable property, `GApplication` has its properties in another package — and this
|
|
929
|
+
* list is what tells the two apart. Enum and bitfield NUMBERS are not here: those are
|
|
930
|
+
* carried in this file, because a `PROP_ENUMS` row naming a foreign GType gives a
|
|
931
|
+
* consumer nothing to load and a `.ui` file using the property never names its owner.
|
|
932
|
+
*/
|
|
933
|
+
readonly requiredVocabularies: readonly string[];
|
|
909
934
|
};
|
|
910
935
|
|
|
911
936
|
/** Declaration GType -> its own settable properties, as GObject registered them. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// The widget vocabulary of GtkSource-5 as runtime data.
|
|
2
2
|
//
|
|
3
|
-
// GENERATED — do not edit. Provenance: GtkSource-5 — library 5.21.0
|
|
3
|
+
// GENERATED — do not edit. Provenance: GtkSource-5 — library 5.21.0
|
|
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,10 +11,12 @@ export const PROVENANCE = {
|
|
|
11
11
|
version: '5',
|
|
12
12
|
libraryVersion: '5.21.0',
|
|
13
13
|
childHolders: 0,
|
|
14
|
-
droppedBases: [
|
|
14
|
+
droppedBases: [],
|
|
15
15
|
inlinedBases: [],
|
|
16
16
|
unsettableProps: [],
|
|
17
17
|
unresolvedProps: [],
|
|
18
|
+
identifierPrefixes: ['GtkSource'],
|
|
19
|
+
requiredVocabularies: ['@girs/gio-2.0/vocabulary', '@girs/gobject-2.0/vocabulary', '@girs/gtk-4.0/vocabulary', '@girs/pango-1.0/vocabulary'],
|
|
18
20
|
};
|
|
19
21
|
|
|
20
22
|
export const OWN_PROPS = {
|
|
@@ -75,48 +77,48 @@ export const OWN_SIGNALS = {
|
|
|
75
77
|
// `GtkEventController*` and `GtkCellRenderer*`. Use `Widgets` and `CHILD_HOLDERS`
|
|
76
78
|
// below for the narrower questions; they did not move.
|
|
77
79
|
export const DECLS = {
|
|
78
|
-
GtkSourceAnnotation: ['GtkSourceAnnotation'],
|
|
79
|
-
GtkSourceAnnotationProvider: ['GtkSourceAnnotationProvider'],
|
|
80
|
-
GtkSourceAnnotations: ['GtkSourceAnnotations'],
|
|
81
|
-
GtkSourceBuffer: ['GtkSourceBuffer', 'GtkTextBuffer'],
|
|
82
|
-
GtkSourceCompletion: ['GtkSourceCompletion'],
|
|
83
|
-
GtkSourceCompletionCell: ['GtkSourceCompletionCell', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
84
|
-
GtkSourceCompletionContext: ['GtkSourceCompletionContext'],
|
|
85
|
-
GtkSourceCompletionSnippets: ['GtkSourceCompletionSnippets', 'GtkSourceCompletionProvider'],
|
|
86
|
-
GtkSourceCompletionWords: ['GtkSourceCompletionWords', 'GtkSourceCompletionProvider'],
|
|
87
|
-
GtkSourceFile: ['GtkSourceFile'],
|
|
88
|
-
GtkSourceFileLoader: ['GtkSourceFileLoader'],
|
|
89
|
-
GtkSourceFileSaver: ['GtkSourceFileSaver'],
|
|
90
|
-
GtkSourceGutter: ['GtkSourceGutter', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
91
|
-
GtkSourceGutterLines: ['GtkSourceGutterLines'],
|
|
92
|
-
GtkSourceGutterRendererPixbuf: ['GtkSourceGutterRendererPixbuf', 'GtkSourceGutterRenderer', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
93
|
-
GtkSourceGutterRendererText: ['GtkSourceGutterRendererText', 'GtkSourceGutterRenderer', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
94
|
-
GtkSourceHover: ['GtkSourceHover'],
|
|
95
|
-
GtkSourceHoverContext: ['GtkSourceHoverContext'],
|
|
96
|
-
GtkSourceHoverDisplay: ['GtkSourceHoverDisplay', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
97
|
-
GtkSourceLanguage: ['GtkSourceLanguage'],
|
|
98
|
-
GtkSourceLanguageManager: ['GtkSourceLanguageManager'],
|
|
99
|
-
GtkSourceMap: ['GtkSourceMap', 'GtkSourceView', 'GtkTextView', 'GtkWidget', 'GtkAccessible', 'GtkAccessibleText', 'GtkBuildable', 'GtkConstraintTarget', 'GtkScrollable'],
|
|
100
|
-
GtkSourceMark: ['GtkSourceMark', 'GtkTextMark'],
|
|
101
|
-
GtkSourceMarkAttributes: ['GtkSourceMarkAttributes'],
|
|
102
|
-
GtkSourcePrintCompositor: ['GtkSourcePrintCompositor'],
|
|
103
|
-
GtkSourceRegion: ['GtkSourceRegion'],
|
|
104
|
-
GtkSourceSearchContext: ['GtkSourceSearchContext'],
|
|
105
|
-
GtkSourceSearchSettings: ['GtkSourceSearchSettings'],
|
|
106
|
-
GtkSourceSnippet: ['GtkSourceSnippet'],
|
|
107
|
-
GtkSourceSnippetChunk: ['GtkSourceSnippetChunk'],
|
|
108
|
-
GtkSourceSnippetContext: ['GtkSourceSnippetContext'],
|
|
109
|
-
GtkSourceSnippetManager: ['GtkSourceSnippetManager'],
|
|
110
|
-
GtkSourceSpaceDrawer: ['GtkSourceSpaceDrawer'],
|
|
111
|
-
GtkSourceStyle: ['GtkSourceStyle'],
|
|
112
|
-
GtkSourceStyleScheme: ['GtkSourceStyleScheme'],
|
|
113
|
-
GtkSourceStyleSchemeChooserButton: ['GtkSourceStyleSchemeChooserButton', 'GtkButton', 'GtkWidget', 'GtkAccessible', 'GtkActionable', 'GtkBuildable', 'GtkConstraintTarget', 'GtkSourceStyleSchemeChooser'],
|
|
114
|
-
GtkSourceStyleSchemeChooserWidget: ['GtkSourceStyleSchemeChooserWidget', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget', 'GtkSourceStyleSchemeChooser'],
|
|
115
|
-
GtkSourceStyleSchemeManager: ['GtkSourceStyleSchemeManager'],
|
|
116
|
-
GtkSourceStyleSchemePreview: ['GtkSourceStyleSchemePreview', 'GtkWidget', 'GtkAccessible', 'GtkActionable', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
117
|
-
GtkSourceTag: ['GtkSourceTag', 'GtkTextTag'],
|
|
118
|
-
GtkSourceView: ['GtkSourceView', 'GtkTextView', 'GtkWidget', 'GtkAccessible', 'GtkAccessibleText', 'GtkBuildable', 'GtkConstraintTarget', 'GtkScrollable'],
|
|
119
|
-
GtkSourceVimIMContext: ['GtkSourceVimIMContext', 'GtkIMContext'],
|
|
80
|
+
GtkSourceAnnotation: ['GtkSourceAnnotation', 'GObject'],
|
|
81
|
+
GtkSourceAnnotationProvider: ['GtkSourceAnnotationProvider', 'GObject'],
|
|
82
|
+
GtkSourceAnnotations: ['GtkSourceAnnotations', 'GObject'],
|
|
83
|
+
GtkSourceBuffer: ['GtkSourceBuffer', 'GtkTextBuffer', 'GObject'],
|
|
84
|
+
GtkSourceCompletion: ['GtkSourceCompletion', 'GObject'],
|
|
85
|
+
GtkSourceCompletionCell: ['GtkSourceCompletionCell', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
86
|
+
GtkSourceCompletionContext: ['GtkSourceCompletionContext', 'GObject', 'GListModel'],
|
|
87
|
+
GtkSourceCompletionSnippets: ['GtkSourceCompletionSnippets', 'GObject', 'GtkSourceCompletionProvider'],
|
|
88
|
+
GtkSourceCompletionWords: ['GtkSourceCompletionWords', 'GObject', 'GtkSourceCompletionProvider'],
|
|
89
|
+
GtkSourceFile: ['GtkSourceFile', 'GObject'],
|
|
90
|
+
GtkSourceFileLoader: ['GtkSourceFileLoader', 'GObject'],
|
|
91
|
+
GtkSourceFileSaver: ['GtkSourceFileSaver', 'GObject'],
|
|
92
|
+
GtkSourceGutter: ['GtkSourceGutter', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
93
|
+
GtkSourceGutterLines: ['GtkSourceGutterLines', 'GObject'],
|
|
94
|
+
GtkSourceGutterRendererPixbuf: ['GtkSourceGutterRendererPixbuf', 'GtkSourceGutterRenderer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
95
|
+
GtkSourceGutterRendererText: ['GtkSourceGutterRendererText', 'GtkSourceGutterRenderer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
96
|
+
GtkSourceHover: ['GtkSourceHover', 'GObject'],
|
|
97
|
+
GtkSourceHoverContext: ['GtkSourceHoverContext', 'GObject'],
|
|
98
|
+
GtkSourceHoverDisplay: ['GtkSourceHoverDisplay', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
99
|
+
GtkSourceLanguage: ['GtkSourceLanguage', 'GObject'],
|
|
100
|
+
GtkSourceLanguageManager: ['GtkSourceLanguageManager', 'GObject'],
|
|
101
|
+
GtkSourceMap: ['GtkSourceMap', 'GtkSourceView', 'GtkTextView', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkAccessibleText', 'GtkBuildable', 'GtkConstraintTarget', 'GtkScrollable'],
|
|
102
|
+
GtkSourceMark: ['GtkSourceMark', 'GtkTextMark', 'GObject'],
|
|
103
|
+
GtkSourceMarkAttributes: ['GtkSourceMarkAttributes', 'GObject'],
|
|
104
|
+
GtkSourcePrintCompositor: ['GtkSourcePrintCompositor', 'GObject'],
|
|
105
|
+
GtkSourceRegion: ['GtkSourceRegion', 'GObject'],
|
|
106
|
+
GtkSourceSearchContext: ['GtkSourceSearchContext', 'GObject'],
|
|
107
|
+
GtkSourceSearchSettings: ['GtkSourceSearchSettings', 'GObject'],
|
|
108
|
+
GtkSourceSnippet: ['GtkSourceSnippet', 'GObject'],
|
|
109
|
+
GtkSourceSnippetChunk: ['GtkSourceSnippetChunk', 'GInitiallyUnowned', 'GObject'],
|
|
110
|
+
GtkSourceSnippetContext: ['GtkSourceSnippetContext', 'GObject'],
|
|
111
|
+
GtkSourceSnippetManager: ['GtkSourceSnippetManager', 'GObject'],
|
|
112
|
+
GtkSourceSpaceDrawer: ['GtkSourceSpaceDrawer', 'GObject'],
|
|
113
|
+
GtkSourceStyle: ['GtkSourceStyle', 'GObject'],
|
|
114
|
+
GtkSourceStyleScheme: ['GtkSourceStyleScheme', 'GObject'],
|
|
115
|
+
GtkSourceStyleSchemeChooserButton: ['GtkSourceStyleSchemeChooserButton', 'GtkButton', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkActionable', 'GtkBuildable', 'GtkConstraintTarget', 'GtkSourceStyleSchemeChooser'],
|
|
116
|
+
GtkSourceStyleSchemeChooserWidget: ['GtkSourceStyleSchemeChooserWidget', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget', 'GtkSourceStyleSchemeChooser'],
|
|
117
|
+
GtkSourceStyleSchemeManager: ['GtkSourceStyleSchemeManager', 'GObject'],
|
|
118
|
+
GtkSourceStyleSchemePreview: ['GtkSourceStyleSchemePreview', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkActionable', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
119
|
+
GtkSourceTag: ['GtkSourceTag', 'GtkTextTag', 'GObject'],
|
|
120
|
+
GtkSourceView: ['GtkSourceView', 'GtkTextView', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkAccessibleText', 'GtkBuildable', 'GtkConstraintTarget', 'GtkScrollable'],
|
|
121
|
+
GtkSourceVimIMContext: ['GtkSourceVimIMContext', 'GtkIMContext', 'GObject'],
|
|
120
122
|
};
|
|
121
123
|
|
|
122
124
|
// The GTypes above that ARE widgets are the `Widgets` map in the sibling `.d.ts`; these
|
|
@@ -138,6 +140,8 @@ export const ENUM_NICKS = {
|
|
|
138
140
|
GtkSourceNewlineType: ['lf', 'cr', 'cr-lf'],
|
|
139
141
|
GtkSourceSmartHomeEndType: ['disabled', 'before', 'after', 'always'],
|
|
140
142
|
GtkSourceViewGutterPosition: ['lines', 'marks'],
|
|
143
|
+
GtkTextWindowType: ['widget', 'text', 'left', 'right', 'top', 'bottom'],
|
|
144
|
+
GtkWrapMode: ['none', 'char', 'word', 'word-char'],
|
|
141
145
|
PangoUnderline: ['none', 'single', 'double', 'low', 'error', 'single-line', 'double-line', 'error-line'],
|
|
142
146
|
PangoWeight: ['thin', 'ultralight', 'light', 'semilight', 'book', 'normal', 'medium', 'semibold', 'bold', 'ultrabold', 'heavy', 'ultraheavy'],
|
|
143
147
|
};
|
|
@@ -194,6 +198,16 @@ export const ENUM_VALUES = {
|
|
|
194
198
|
'GtkSourceSmartHomeEndType.disabled': 0,
|
|
195
199
|
'GtkSourceViewGutterPosition.lines': -30,
|
|
196
200
|
'GtkSourceViewGutterPosition.marks': -20,
|
|
201
|
+
'GtkTextWindowType.bottom': 6,
|
|
202
|
+
'GtkTextWindowType.left': 3,
|
|
203
|
+
'GtkTextWindowType.right': 4,
|
|
204
|
+
'GtkTextWindowType.text': 2,
|
|
205
|
+
'GtkTextWindowType.top': 5,
|
|
206
|
+
'GtkTextWindowType.widget': 1,
|
|
207
|
+
'GtkWrapMode.char': 1,
|
|
208
|
+
'GtkWrapMode.none': 0,
|
|
209
|
+
'GtkWrapMode.word': 2,
|
|
210
|
+
'GtkWrapMode.word-char': 3,
|
|
197
211
|
'PangoUnderline.double': 2,
|
|
198
212
|
'PangoUnderline.double-line': 6,
|
|
199
213
|
'PangoUnderline.error': 4,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gtksource-5",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"libraryVersion": "5.21.0",
|
|
5
5
|
"description": "GJS TypeScript type definitions for GtkSource-5, generated from library version 5.21.0",
|
|
6
6
|
"type": "module",
|
|
@@ -37,21 +37,21 @@
|
|
|
37
37
|
"test": "tsc --project tsconfig.json"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@girs/gjs": "^5.
|
|
41
|
-
"@girs/gtk-4.0": "^5.
|
|
42
|
-
"@girs/gsk-4.0": "^5.
|
|
43
|
-
"@girs/graphene-1.0": "^5.
|
|
44
|
-
"@girs/gobject-2.0": "^5.
|
|
45
|
-
"@girs/glib-2.0": "^5.
|
|
46
|
-
"@girs/gdk-4.0": "^5.
|
|
47
|
-
"@girs/cairo-1.0": "^5.
|
|
48
|
-
"@girs/pangocairo-1.0": "^5.
|
|
49
|
-
"@girs/pango-1.0": "^5.
|
|
50
|
-
"@girs/harfbuzz-0.0": "^5.
|
|
51
|
-
"@girs/freetype2-2.0": "^5.
|
|
52
|
-
"@girs/gio-2.0": "^5.
|
|
53
|
-
"@girs/gmodule-2.0": "^5.
|
|
54
|
-
"@girs/gdkpixbuf-2.0": "^5.
|
|
40
|
+
"@girs/gjs": "^5.3.0",
|
|
41
|
+
"@girs/gtk-4.0": "^5.3.0",
|
|
42
|
+
"@girs/gsk-4.0": "^5.3.0",
|
|
43
|
+
"@girs/graphene-1.0": "^5.3.0",
|
|
44
|
+
"@girs/gobject-2.0": "^5.3.0",
|
|
45
|
+
"@girs/glib-2.0": "^5.3.0",
|
|
46
|
+
"@girs/gdk-4.0": "^5.3.0",
|
|
47
|
+
"@girs/cairo-1.0": "^5.3.0",
|
|
48
|
+
"@girs/pangocairo-1.0": "^5.3.0",
|
|
49
|
+
"@girs/pango-1.0": "^5.3.0",
|
|
50
|
+
"@girs/harfbuzz-0.0": "^5.3.0",
|
|
51
|
+
"@girs/freetype2-2.0": "^5.3.0",
|
|
52
|
+
"@girs/gio-2.0": "^5.3.0",
|
|
53
|
+
"@girs/gmodule-2.0": "^5.3.0",
|
|
54
|
+
"@girs/gdkpixbuf-2.0": "^5.3.0" },
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"typescript": "*"
|
|
57
57
|
},
|