@girs/gtksource-300 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-300-vocabulary.d.ts +64 -39
- package/gtksource-300-vocabulary.js +41 -26
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|

|
|
5
5
|

|
|
6
6
|
|
|
7
|
-
GJS TypeScript type definitions for GtkSource-300 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.
|
|
7
|
+
GJS TypeScript type definitions for GtkSource-300 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.3.0.
|
|
8
8
|
|
|
9
9
|
This package contains type declarations only. It ships no runtime code, so it adds
|
|
10
10
|
nothing to your program and works with any bundler or none at all.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The GIR-derived widget VOCABULARY for GtkSource-300.
|
|
3
3
|
*
|
|
4
|
-
* GENERATED — do not edit. Provenance: GtkSource-300 — dropped empty base(s):
|
|
4
|
+
* GENERATED — do not edit. Provenance: GtkSource-300 — dropped empty base(s): Atk.ImplementorIface
|
|
5
5
|
*
|
|
6
6
|
* 24 instantiable GTypes (of which 2 concrete widgets), 26 declarations, 9 enum nick unions, 0 slot candidates.
|
|
7
7
|
*
|
|
@@ -30,6 +30,7 @@ import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
|
|
|
30
30
|
import type Gio from '@girs/gio-2.0';
|
|
31
31
|
import type Gtk from '@girs/gtk-3.0';
|
|
32
32
|
import type GtkSource from './gtksource-300.js';
|
|
33
|
+
import type { GInitiallyUnownedConstructOnly, GInitiallyUnownedProps, GObjectConstructOnly, GObjectProps } from '@girs/gobject-2.0/vocabulary';
|
|
33
34
|
import type { GtkBinConstructOnly, GtkBinProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkContainerConstructOnly, GtkContainerProps, GtkScrollableConstructOnly, GtkScrollableProps, GtkTextBufferConstructOnly, GtkTextBufferProps, GtkTextMarkConstructOnly, GtkTextMarkProps, GtkTextTagConstructOnly, GtkTextTagProps, GtkTextViewConstructOnly, GtkTextViewProps, GtkTextWindowTypeNick, GtkWidgetConstructOnly, GtkWidgetProps, GtkWindowConstructOnly, GtkWindowProps, GtkWrapModeNick } from '@girs/gtk-3.0/vocabulary';
|
|
34
35
|
|
|
35
36
|
// ---------------------------------------------------------------------------
|
|
@@ -92,7 +93,7 @@ export interface GtkSourceBufferProps extends GtkTextBufferProps {
|
|
|
92
93
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
93
94
|
export type GtkSourceBufferConstructOnly = GtkTextBufferConstructOnly;
|
|
94
95
|
|
|
95
|
-
export interface GtkSourceCompletionProps {
|
|
96
|
+
export interface GtkSourceCompletionProps extends GObjectProps {
|
|
96
97
|
/**
|
|
97
98
|
* Number of keyboard accelerators to show for the first proposals.
|
|
98
99
|
* @default 5
|
|
@@ -137,9 +138,9 @@ export interface GtkSourceCompletionProps {
|
|
|
137
138
|
view?: GtkSource.View | null;
|
|
138
139
|
}
|
|
139
140
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
140
|
-
export type GtkSourceCompletionConstructOnly = 'view';
|
|
141
|
+
export type GtkSourceCompletionConstructOnly = GObjectConstructOnly | 'view';
|
|
141
142
|
|
|
142
|
-
export interface GtkSourceCompletionContextProps {
|
|
143
|
+
export interface GtkSourceCompletionContextProps extends GInitiallyUnownedProps {
|
|
143
144
|
/**
|
|
144
145
|
* The completion activation
|
|
145
146
|
* @default GTK_SOURCE_COMPLETION_ACTIVATION_USER_REQUESTED
|
|
@@ -151,24 +152,24 @@ export interface GtkSourceCompletionContextProps {
|
|
|
151
152
|
iter?: Gtk.TextIter;
|
|
152
153
|
}
|
|
153
154
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
154
|
-
export type GtkSourceCompletionContextConstructOnly = 'completion';
|
|
155
|
+
export type GtkSourceCompletionContextConstructOnly = GInitiallyUnownedConstructOnly | 'completion';
|
|
155
156
|
|
|
156
157
|
export interface GtkSourceCompletionInfoProps extends GtkWindowProps, GtkBuildableProps {
|
|
157
158
|
}
|
|
158
159
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
159
160
|
export type GtkSourceCompletionInfoConstructOnly = GtkWindowConstructOnly | GtkBuildableConstructOnly;
|
|
160
161
|
|
|
161
|
-
export interface GtkSourceCompletionItemProps extends GtkSourceCompletionProposalProps {
|
|
162
|
+
export interface GtkSourceCompletionItemProps extends GObjectProps, GtkSourceCompletionProposalProps {
|
|
162
163
|
}
|
|
163
164
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
164
|
-
export type GtkSourceCompletionItemConstructOnly = GtkSourceCompletionProposalConstructOnly;
|
|
165
|
+
export type GtkSourceCompletionItemConstructOnly = GObjectConstructOnly | GtkSourceCompletionProposalConstructOnly;
|
|
165
166
|
|
|
166
|
-
export interface GtkSourceCompletionProposalProps {
|
|
167
|
+
export interface GtkSourceCompletionProposalProps extends GObjectProps {
|
|
167
168
|
}
|
|
168
169
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
169
|
-
export type GtkSourceCompletionProposalConstructOnly =
|
|
170
|
+
export type GtkSourceCompletionProposalConstructOnly = GObjectConstructOnly;
|
|
170
171
|
|
|
171
|
-
export interface GtkSourceFileProps {
|
|
172
|
+
export interface GtkSourceFileProps extends GObjectProps {
|
|
172
173
|
/**
|
|
173
174
|
* The #GFile.
|
|
174
175
|
* @since 3.14
|
|
@@ -176,9 +177,9 @@ export interface GtkSourceFileProps {
|
|
|
176
177
|
location?: Gio.File | null;
|
|
177
178
|
}
|
|
178
179
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
179
|
-
export type GtkSourceFileConstructOnly =
|
|
180
|
+
export type GtkSourceFileConstructOnly = GObjectConstructOnly;
|
|
180
181
|
|
|
181
|
-
export interface GtkSourceFileLoaderProps {
|
|
182
|
+
export interface GtkSourceFileLoaderProps extends GObjectProps {
|
|
182
183
|
/**
|
|
183
184
|
* The #GtkSourceBuffer to load the contents into.
|
|
184
185
|
* @since 3.14
|
|
@@ -207,9 +208,9 @@ export interface GtkSourceFileLoaderProps {
|
|
|
207
208
|
'max-size'?: bigint | number;
|
|
208
209
|
}
|
|
209
210
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
210
|
-
export type GtkSourceFileLoaderConstructOnly = 'buffer' | 'file' | 'input-stream' | 'location';
|
|
211
|
+
export type GtkSourceFileLoaderConstructOnly = GObjectConstructOnly | 'buffer' | 'file' | 'input-stream' | 'location';
|
|
211
212
|
|
|
212
|
-
export interface GtkSourceFileSaverProps {
|
|
213
|
+
export interface GtkSourceFileSaverProps extends GObjectProps {
|
|
213
214
|
/**
|
|
214
215
|
* The #GtkSourceBuffer to save.
|
|
215
216
|
* @since 3.14
|
|
@@ -250,9 +251,9 @@ export interface GtkSourceFileSaverProps {
|
|
|
250
251
|
'newline-type'?: GtkSourceNewlineTypeNick | GtkSource.NewlineType;
|
|
251
252
|
}
|
|
252
253
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
253
|
-
export type GtkSourceFileSaverConstructOnly = 'buffer' | 'file' | 'location';
|
|
254
|
+
export type GtkSourceFileSaverConstructOnly = GObjectConstructOnly | 'buffer' | 'file' | 'location';
|
|
254
255
|
|
|
255
|
-
export interface GtkSourceGutterProps {
|
|
256
|
+
export interface GtkSourceGutterProps extends GObjectProps {
|
|
256
257
|
/** The #GtkSourceView of the gutter. */
|
|
257
258
|
view?: GtkSource.View;
|
|
258
259
|
/**
|
|
@@ -262,9 +263,9 @@ export interface GtkSourceGutterProps {
|
|
|
262
263
|
'window-type'?: GtkTextWindowTypeNick | Gtk.TextWindowType;
|
|
263
264
|
}
|
|
264
265
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
265
|
-
export type GtkSourceGutterConstructOnly = 'view' | 'window-type';
|
|
266
|
+
export type GtkSourceGutterConstructOnly = GObjectConstructOnly | 'view' | 'window-type';
|
|
266
267
|
|
|
267
|
-
export interface GtkSourceGutterRendererProps {
|
|
268
|
+
export interface GtkSourceGutterRendererProps extends GInitiallyUnownedProps {
|
|
268
269
|
/**
|
|
269
270
|
* The alignment mode of the renderer.
|
|
270
271
|
* @default GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_CELL
|
|
@@ -302,7 +303,7 @@ export interface GtkSourceGutterRendererProps {
|
|
|
302
303
|
ypad?: number;
|
|
303
304
|
}
|
|
304
305
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
305
|
-
export type GtkSourceGutterRendererConstructOnly =
|
|
306
|
+
export type GtkSourceGutterRendererConstructOnly = GInitiallyUnownedConstructOnly;
|
|
306
307
|
|
|
307
308
|
export interface GtkSourceGutterRendererPixbufProps extends GtkSourceGutterRendererProps {
|
|
308
309
|
gicon?: Gio.Icon;
|
|
@@ -322,16 +323,16 @@ export interface GtkSourceGutterRendererTextProps extends GtkSourceGutterRendere
|
|
|
322
323
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
323
324
|
export type GtkSourceGutterRendererTextConstructOnly = GtkSourceGutterRendererConstructOnly;
|
|
324
325
|
|
|
325
|
-
export interface GtkSourceLanguageProps {
|
|
326
|
+
export interface GtkSourceLanguageProps extends GObjectProps {
|
|
326
327
|
}
|
|
327
328
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
328
|
-
export type GtkSourceLanguageConstructOnly =
|
|
329
|
+
export type GtkSourceLanguageConstructOnly = GObjectConstructOnly;
|
|
329
330
|
|
|
330
|
-
export interface GtkSourceLanguageManagerProps {
|
|
331
|
+
export interface GtkSourceLanguageManagerProps extends GObjectProps {
|
|
331
332
|
'search-path'?: string[];
|
|
332
333
|
}
|
|
333
334
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
334
|
-
export type GtkSourceLanguageManagerConstructOnly =
|
|
335
|
+
export type GtkSourceLanguageManagerConstructOnly = GObjectConstructOnly;
|
|
335
336
|
|
|
336
337
|
export interface GtkSourceMarkProps extends GtkTextMarkProps {
|
|
337
338
|
/**
|
|
@@ -343,7 +344,7 @@ export interface GtkSourceMarkProps extends GtkTextMarkProps {
|
|
|
343
344
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
344
345
|
export type GtkSourceMarkConstructOnly = GtkTextMarkConstructOnly | 'category';
|
|
345
346
|
|
|
346
|
-
export interface GtkSourceMarkAttributesProps {
|
|
347
|
+
export interface GtkSourceMarkAttributesProps extends GObjectProps {
|
|
347
348
|
/** A color used for background of a line. */
|
|
348
349
|
background?: Gdk.RGBA;
|
|
349
350
|
/** A #GIcon that may be a base of a rendered icon. */
|
|
@@ -357,9 +358,9 @@ export interface GtkSourceMarkAttributesProps {
|
|
|
357
358
|
pixbuf?: GdkPixbuf.Pixbuf;
|
|
358
359
|
}
|
|
359
360
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
360
|
-
export type GtkSourceMarkAttributesConstructOnly =
|
|
361
|
+
export type GtkSourceMarkAttributesConstructOnly = GObjectConstructOnly;
|
|
361
362
|
|
|
362
|
-
export interface GtkSourcePrintCompositorProps {
|
|
363
|
+
export interface GtkSourcePrintCompositorProps extends GObjectProps {
|
|
363
364
|
/**
|
|
364
365
|
* Name of the font used for the text body.
|
|
365
366
|
* @since 2.2
|
|
@@ -427,9 +428,9 @@ export interface GtkSourcePrintCompositorProps {
|
|
|
427
428
|
'wrap-mode'?: GtkWrapModeNick | Gtk.WrapMode;
|
|
428
429
|
}
|
|
429
430
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
430
|
-
export type GtkSourcePrintCompositorConstructOnly = 'buffer';
|
|
431
|
+
export type GtkSourcePrintCompositorConstructOnly = GObjectConstructOnly | 'buffer';
|
|
431
432
|
|
|
432
|
-
export interface GtkSourceRegionProps {
|
|
433
|
+
export interface GtkSourceRegionProps extends GObjectProps {
|
|
433
434
|
/**
|
|
434
435
|
* The #GtkTextBuffer.
|
|
435
436
|
* @since 3.22
|
|
@@ -437,9 +438,9 @@ export interface GtkSourceRegionProps {
|
|
|
437
438
|
buffer?: Gtk.TextBuffer | null;
|
|
438
439
|
}
|
|
439
440
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
440
|
-
export type GtkSourceRegionConstructOnly = 'buffer';
|
|
441
|
+
export type GtkSourceRegionConstructOnly = GObjectConstructOnly | 'buffer';
|
|
441
442
|
|
|
442
|
-
export interface GtkSourceSearchContextProps {
|
|
443
|
+
export interface GtkSourceSearchContextProps extends GObjectProps {
|
|
443
444
|
/**
|
|
444
445
|
* The #GtkSourceBuffer associated to the search context.
|
|
445
446
|
* @since 3.10
|
|
@@ -463,9 +464,9 @@ export interface GtkSourceSearchContextProps {
|
|
|
463
464
|
settings?: GtkSource.SearchSettings;
|
|
464
465
|
}
|
|
465
466
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
466
|
-
export type GtkSourceSearchContextConstructOnly = 'buffer' | 'settings';
|
|
467
|
+
export type GtkSourceSearchContextConstructOnly = GObjectConstructOnly | 'buffer' | 'settings';
|
|
467
468
|
|
|
468
|
-
export interface GtkSourceSearchSettingsProps {
|
|
469
|
+
export interface GtkSourceSearchSettingsProps extends GObjectProps {
|
|
469
470
|
/**
|
|
470
471
|
* If %TRUE, a search match must start and end a word.
|
|
471
472
|
* @since 3.10
|
|
@@ -498,9 +499,9 @@ export interface GtkSourceSearchSettingsProps {
|
|
|
498
499
|
'wrap-around'?: boolean;
|
|
499
500
|
}
|
|
500
501
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
501
|
-
export type GtkSourceSearchSettingsConstructOnly =
|
|
502
|
+
export type GtkSourceSearchSettingsConstructOnly = GObjectConstructOnly;
|
|
502
503
|
|
|
503
|
-
export interface GtkSourceSpaceDrawerProps {
|
|
504
|
+
export interface GtkSourceSpaceDrawerProps extends GObjectProps {
|
|
504
505
|
/**
|
|
505
506
|
* Whether the #GtkSourceSpaceDrawer:matrix property is enabled.
|
|
506
507
|
* @since 3.24
|
|
@@ -514,17 +515,17 @@ export interface GtkSourceSpaceDrawerProps {
|
|
|
514
515
|
matrix?: GLib.Variant;
|
|
515
516
|
}
|
|
516
517
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
517
|
-
export type GtkSourceSpaceDrawerConstructOnly =
|
|
518
|
+
export type GtkSourceSpaceDrawerConstructOnly = GObjectConstructOnly;
|
|
518
519
|
|
|
519
|
-
export interface GtkSourceStyleSchemeProps {
|
|
520
|
+
export interface GtkSourceStyleSchemeProps extends GObjectProps {
|
|
520
521
|
}
|
|
521
522
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
522
|
-
export type GtkSourceStyleSchemeConstructOnly =
|
|
523
|
+
export type GtkSourceStyleSchemeConstructOnly = GObjectConstructOnly;
|
|
523
524
|
|
|
524
|
-
export interface GtkSourceStyleSchemeManagerProps {
|
|
525
|
+
export interface GtkSourceStyleSchemeManagerProps extends GObjectProps {
|
|
525
526
|
}
|
|
526
527
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
527
|
-
export type GtkSourceStyleSchemeManagerConstructOnly =
|
|
528
|
+
export type GtkSourceStyleSchemeManagerConstructOnly = GObjectConstructOnly;
|
|
528
529
|
|
|
529
530
|
export interface GtkSourceTagProps extends GtkTextTagProps {
|
|
530
531
|
/**
|
|
@@ -706,6 +707,30 @@ export const PROVENANCE: {
|
|
|
706
707
|
* GIRs disagreeing, which is what the main emitter answers `never` for as well.
|
|
707
708
|
*/
|
|
708
709
|
readonly unresolvedProps: readonly string[];
|
|
710
|
+
/**
|
|
711
|
+
* `c:identifier-prefixes` from the GIR, verbatim and in order — `['G']` for Gio.
|
|
712
|
+
*
|
|
713
|
+
* The C prefix a type REFERENCE needs: resolving `Gio.Icon` means producing `GIcon`,
|
|
714
|
+
* and nothing else in this package states that `Gio` spells itself `G`. Carried rather
|
|
715
|
+
* than derived because GIR carries it, and a derivation over the `DECLS` keys is wrong
|
|
716
|
+
* wherever the C prefix is not a prefix of the type NAMES: gdkx11-4.0 and gdkwayland-4.0
|
|
717
|
+
* both state `Gdk` while every key they declare begins `GdkX11`/`GdkWayland`.
|
|
718
|
+
*
|
|
719
|
+
* Empty where the GIR states none — 17 of the 627 emitting namespaces — because
|
|
720
|
+
* inventing the namespace name there is a confident wrong answer in place of a missing
|
|
721
|
+
* one. A LIST because 20 of them state more than one, which no single string expresses.
|
|
722
|
+
*/
|
|
723
|
+
readonly identifierPrefixes: readonly string[];
|
|
724
|
+
/**
|
|
725
|
+
* Sibling vocabularies this one's DECLARATIONS come from, as import specifiers.
|
|
726
|
+
*
|
|
727
|
+
* A chain link with no `OWN_PROPS` row is ambiguous on its own — `GtkSeparator` has no
|
|
728
|
+
* settable property, `GApplication` has its properties in another package — and this
|
|
729
|
+
* list is what tells the two apart. Enum and bitfield NUMBERS are not here: those are
|
|
730
|
+
* carried in this file, because a `PROP_ENUMS` row naming a foreign GType gives a
|
|
731
|
+
* consumer nothing to load and a `.ui` file using the property never names its owner.
|
|
732
|
+
*/
|
|
733
|
+
readonly requiredVocabularies: readonly string[];
|
|
709
734
|
};
|
|
710
735
|
|
|
711
736
|
/** Declaration GType -> its own settable properties, as GObject registered them. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// The widget vocabulary of GtkSource-300 as runtime data.
|
|
2
2
|
//
|
|
3
|
-
// GENERATED — do not edit. Provenance: GtkSource-300 — dropped empty base(s):
|
|
3
|
+
// GENERATED — do not edit. Provenance: GtkSource-300 — dropped empty base(s): Atk.ImplementorIface
|
|
4
4
|
//
|
|
5
5
|
// The type half of this subpath is the sibling `.d.ts`. This file exists because
|
|
6
6
|
// types are erased: a consumer that wants to ask the installed library whether every
|
|
@@ -11,10 +11,12 @@ export const PROVENANCE = {
|
|
|
11
11
|
version: '300',
|
|
12
12
|
libraryVersion: null,
|
|
13
13
|
childHolders: 0,
|
|
14
|
-
droppedBases: ['
|
|
14
|
+
droppedBases: ['Atk.ImplementorIface'],
|
|
15
15
|
inlinedBases: [],
|
|
16
16
|
unsettableProps: [],
|
|
17
17
|
unresolvedProps: [],
|
|
18
|
+
identifierPrefixes: ['GtkSource'],
|
|
19
|
+
requiredVocabularies: ['@girs/gobject-2.0/vocabulary', '@girs/gtk-3.0/vocabulary'],
|
|
18
20
|
};
|
|
19
21
|
|
|
20
22
|
export const OWN_PROPS = {
|
|
@@ -59,30 +61,30 @@ export const OWN_SIGNALS = {
|
|
|
59
61
|
// `GtkEventController*` and `GtkCellRenderer*`. Use `Widgets` and `CHILD_HOLDERS`
|
|
60
62
|
// below for the narrower questions; they did not move.
|
|
61
63
|
export const DECLS = {
|
|
62
|
-
GtkSourceBuffer: ['GtkSourceBuffer', 'GtkTextBuffer'],
|
|
63
|
-
GtkSourceCompletion: ['GtkSourceCompletion'],
|
|
64
|
-
GtkSourceCompletionContext: ['GtkSourceCompletionContext'],
|
|
65
|
-
GtkSourceCompletionInfo: ['GtkSourceCompletionInfo', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable'],
|
|
66
|
-
GtkSourceCompletionItem: ['GtkSourceCompletionItem', 'GtkSourceCompletionProposal'],
|
|
67
|
-
GtkSourceFile: ['GtkSourceFile'],
|
|
68
|
-
GtkSourceFileLoader: ['GtkSourceFileLoader'],
|
|
69
|
-
GtkSourceFileSaver: ['GtkSourceFileSaver'],
|
|
70
|
-
GtkSourceGutter: ['GtkSourceGutter'],
|
|
71
|
-
GtkSourceGutterRendererPixbuf: ['GtkSourceGutterRendererPixbuf', 'GtkSourceGutterRenderer'],
|
|
72
|
-
GtkSourceGutterRendererText: ['GtkSourceGutterRendererText', 'GtkSourceGutterRenderer'],
|
|
73
|
-
GtkSourceLanguage: ['GtkSourceLanguage'],
|
|
74
|
-
GtkSourceLanguageManager: ['GtkSourceLanguageManager'],
|
|
75
|
-
GtkSourceMark: ['GtkSourceMark', 'GtkTextMark'],
|
|
76
|
-
GtkSourceMarkAttributes: ['GtkSourceMarkAttributes'],
|
|
77
|
-
GtkSourcePrintCompositor: ['GtkSourcePrintCompositor'],
|
|
78
|
-
GtkSourceRegion: ['GtkSourceRegion'],
|
|
79
|
-
GtkSourceSearchContext: ['GtkSourceSearchContext'],
|
|
80
|
-
GtkSourceSearchSettings: ['GtkSourceSearchSettings'],
|
|
81
|
-
GtkSourceSpaceDrawer: ['GtkSourceSpaceDrawer'],
|
|
82
|
-
GtkSourceStyleScheme: ['GtkSourceStyleScheme'],
|
|
83
|
-
GtkSourceStyleSchemeManager: ['GtkSourceStyleSchemeManager'],
|
|
84
|
-
GtkSourceTag: ['GtkSourceTag', 'GtkTextTag'],
|
|
85
|
-
GtkSourceView: ['GtkSourceView', 'GtkTextView', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkScrollable'],
|
|
64
|
+
GtkSourceBuffer: ['GtkSourceBuffer', 'GtkTextBuffer', 'GObject'],
|
|
65
|
+
GtkSourceCompletion: ['GtkSourceCompletion', 'GObject'],
|
|
66
|
+
GtkSourceCompletionContext: ['GtkSourceCompletionContext', 'GInitiallyUnowned', 'GObject'],
|
|
67
|
+
GtkSourceCompletionInfo: ['GtkSourceCompletionInfo', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable'],
|
|
68
|
+
GtkSourceCompletionItem: ['GtkSourceCompletionItem', 'GObject', 'GtkSourceCompletionProposal'],
|
|
69
|
+
GtkSourceFile: ['GtkSourceFile', 'GObject'],
|
|
70
|
+
GtkSourceFileLoader: ['GtkSourceFileLoader', 'GObject'],
|
|
71
|
+
GtkSourceFileSaver: ['GtkSourceFileSaver', 'GObject'],
|
|
72
|
+
GtkSourceGutter: ['GtkSourceGutter', 'GObject'],
|
|
73
|
+
GtkSourceGutterRendererPixbuf: ['GtkSourceGutterRendererPixbuf', 'GtkSourceGutterRenderer', 'GInitiallyUnowned', 'GObject'],
|
|
74
|
+
GtkSourceGutterRendererText: ['GtkSourceGutterRendererText', 'GtkSourceGutterRenderer', 'GInitiallyUnowned', 'GObject'],
|
|
75
|
+
GtkSourceLanguage: ['GtkSourceLanguage', 'GObject'],
|
|
76
|
+
GtkSourceLanguageManager: ['GtkSourceLanguageManager', 'GObject'],
|
|
77
|
+
GtkSourceMark: ['GtkSourceMark', 'GtkTextMark', 'GObject'],
|
|
78
|
+
GtkSourceMarkAttributes: ['GtkSourceMarkAttributes', 'GObject'],
|
|
79
|
+
GtkSourcePrintCompositor: ['GtkSourcePrintCompositor', 'GObject'],
|
|
80
|
+
GtkSourceRegion: ['GtkSourceRegion', 'GObject'],
|
|
81
|
+
GtkSourceSearchContext: ['GtkSourceSearchContext', 'GObject'],
|
|
82
|
+
GtkSourceSearchSettings: ['GtkSourceSearchSettings', 'GObject'],
|
|
83
|
+
GtkSourceSpaceDrawer: ['GtkSourceSpaceDrawer', 'GObject'],
|
|
84
|
+
GtkSourceStyleScheme: ['GtkSourceStyleScheme', 'GObject'],
|
|
85
|
+
GtkSourceStyleSchemeManager: ['GtkSourceStyleSchemeManager', 'GObject'],
|
|
86
|
+
GtkSourceTag: ['GtkSourceTag', 'GtkTextTag', 'GObject'],
|
|
87
|
+
GtkSourceView: ['GtkSourceView', 'GtkTextView', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkScrollable'],
|
|
86
88
|
};
|
|
87
89
|
|
|
88
90
|
// The GTypes above that ARE widgets are the `Widgets` map in the sibling `.d.ts`; these
|
|
@@ -102,6 +104,8 @@ export const ENUM_NICKS = {
|
|
|
102
104
|
GtkSourceSmartHomeEndType: ['disabled', 'before', 'after', 'always'],
|
|
103
105
|
GtkSourceStyleSchemeKind: ['light', 'dark', 'light-only', 'dark-only'],
|
|
104
106
|
GtkSourceViewGutterPosition: ['lines', 'marks'],
|
|
107
|
+
GtkTextWindowType: ['private', 'widget', 'text', 'left', 'right', 'top', 'bottom'],
|
|
108
|
+
GtkWrapMode: ['none', 'char', 'word', 'word-char'],
|
|
105
109
|
};
|
|
106
110
|
|
|
107
111
|
// The number behind each of those nicks, read from GIR's own `value` attribute.
|
|
@@ -147,6 +151,17 @@ export const ENUM_VALUES = {
|
|
|
147
151
|
'GtkSourceStyleSchemeKind.light-only': 2,
|
|
148
152
|
'GtkSourceViewGutterPosition.lines': -30,
|
|
149
153
|
'GtkSourceViewGutterPosition.marks': -20,
|
|
154
|
+
'GtkTextWindowType.bottom': 6,
|
|
155
|
+
'GtkTextWindowType.left': 3,
|
|
156
|
+
'GtkTextWindowType.private': 0,
|
|
157
|
+
'GtkTextWindowType.right': 4,
|
|
158
|
+
'GtkTextWindowType.text': 2,
|
|
159
|
+
'GtkTextWindowType.top': 5,
|
|
160
|
+
'GtkTextWindowType.widget': 1,
|
|
161
|
+
'GtkWrapMode.char': 1,
|
|
162
|
+
'GtkWrapMode.none': 0,
|
|
163
|
+
'GtkWrapMode.word': 2,
|
|
164
|
+
'GtkWrapMode.word-char': 3,
|
|
150
165
|
};
|
|
151
166
|
|
|
152
167
|
// The nicks GIR marks `deprecated="1"`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gtksource-300",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for GtkSource-300",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gtksource-300.js",
|
|
@@ -36,20 +36,20 @@
|
|
|
36
36
|
"test": "tsc --project tsconfig.json"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@girs/gjs": "^5.
|
|
40
|
-
"@girs/gtk-3.0": "^5.
|
|
41
|
-
"@girs/xlib-2.0": "^5.
|
|
42
|
-
"@girs/gdk-3.0": "^5.
|
|
43
|
-
"@girs/cairo-1.0": "^5.
|
|
44
|
-
"@girs/gobject-2.0": "^5.
|
|
45
|
-
"@girs/glib-2.0": "^5.
|
|
46
|
-
"@girs/pango-1.0": "^5.
|
|
47
|
-
"@girs/harfbuzz-0.0": "^5.
|
|
48
|
-
"@girs/freetype2-2.0": "^5.
|
|
49
|
-
"@girs/gio-2.0": "^5.
|
|
50
|
-
"@girs/gmodule-2.0": "^5.
|
|
51
|
-
"@girs/gdkpixbuf-2.0": "^5.
|
|
52
|
-
"@girs/atk-1.0": "^5.
|
|
39
|
+
"@girs/gjs": "^5.3.0",
|
|
40
|
+
"@girs/gtk-3.0": "^5.3.0",
|
|
41
|
+
"@girs/xlib-2.0": "^5.3.0",
|
|
42
|
+
"@girs/gdk-3.0": "^5.3.0",
|
|
43
|
+
"@girs/cairo-1.0": "^5.3.0",
|
|
44
|
+
"@girs/gobject-2.0": "^5.3.0",
|
|
45
|
+
"@girs/glib-2.0": "^5.3.0",
|
|
46
|
+
"@girs/pango-1.0": "^5.3.0",
|
|
47
|
+
"@girs/harfbuzz-0.0": "^5.3.0",
|
|
48
|
+
"@girs/freetype2-2.0": "^5.3.0",
|
|
49
|
+
"@girs/gio-2.0": "^5.3.0",
|
|
50
|
+
"@girs/gmodule-2.0": "^5.3.0",
|
|
51
|
+
"@girs/gdkpixbuf-2.0": "^5.3.0",
|
|
52
|
+
"@girs/atk-1.0": "^5.3.0" },
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"typescript": "*"
|
|
55
55
|
},
|