@girs/gtksource-5 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 CHANGED
@@ -4,7 +4,7 @@
4
4
  ![version](https://img.shields.io/npm/v/@girs/gtksource-5)
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gtksource-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.1.0.
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 — dropped empty base(s): GObject.InitiallyUnowned GObject.Object
4
+ * GENERATED — do not edit. Provenance: GtkSource-5 — library 5.21.0
5
5
  *
6
- * 10 concrete widgets, 12 declarations, 11 enum nick unions, 2 slot candidates.
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
@@ -24,13 +24,17 @@
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';
27
28
  import type Gdk from '@girs/gdk-4.0';
28
29
  import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
29
30
  import type Gio from '@girs/gio-2.0';
30
31
  import type Gtk from '@girs/gtk-4.0';
31
32
  import type GtkSource from './gtksource-5.js';
32
33
  import type Pango from '@girs/pango-1.0';
33
- import type { GtkAccessibleConstructOnly, GtkAccessibleProps, GtkAccessibleTextConstructOnly, GtkAccessibleTextProps, GtkActionableConstructOnly, GtkActionableProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkButtonConstructOnly, GtkButtonProps, GtkConstraintTargetConstructOnly, GtkConstraintTargetProps, GtkScrollableConstructOnly, GtkScrollableProps, GtkTextViewConstructOnly, GtkTextViewProps, GtkTextWindowTypeNick, GtkWidgetConstructOnly, GtkWidgetProps } from '@girs/gtk-4.0/vocabulary';
34
+ import type { GListModelConstructOnly, GListModelProps } from '@girs/gio-2.0/vocabulary';
35
+ import type { GInitiallyUnownedConstructOnly, GInitiallyUnownedProps, GObjectConstructOnly, GObjectProps } from '@girs/gobject-2.0/vocabulary';
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';
34
38
 
35
39
  // ---------------------------------------------------------------------------
36
40
  // Enum nicks — the string vocabulary GObject registered, from GIR's `glib:nick`.
@@ -64,6 +68,76 @@ export type GtkSourceViewGutterPositionNick = 'lines' | 'marks';
64
68
  // GIR keeps them once, on the interface.
65
69
  // ---------------------------------------------------------------------------
66
70
 
71
+ /** Represents an annotation added to [class@View], it has a [property@Annotation:line] property, [property@Annotation:description], icon and a style. */
72
+ export interface GtkSourceAnnotationProps extends GObjectProps {
73
+ }
74
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
75
+ export type GtkSourceAnnotationConstructOnly = GObjectConstructOnly;
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. */
78
+ export interface GtkSourceAnnotationProviderProps extends GObjectProps {
79
+ }
80
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
81
+ export type GtkSourceAnnotationProviderConstructOnly = GObjectConstructOnly;
82
+
83
+ /** Use this object to manage [class@Annotation]s. */
84
+ export interface GtkSourceAnnotationsProps extends GObjectProps {
85
+ }
86
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
87
+ export type GtkSourceAnnotationsConstructOnly = GObjectConstructOnly;
88
+
89
+ /** Subclass of [class@Gtk.TextBuffer]. */
90
+ export interface GtkSourceBufferProps extends GtkTextBufferProps {
91
+ /**
92
+ * Whether to highlight matching brackets in the buffer.
93
+ * @default TRUE
94
+ */
95
+ 'highlight-matching-brackets'?: boolean;
96
+ /**
97
+ * Whether to highlight syntax in the buffer.
98
+ * @default TRUE
99
+ */
100
+ 'highlight-syntax'?: boolean;
101
+ /**
102
+ * Whether the buffer has an implicit trailing newline.
103
+ * @default TRUE
104
+ */
105
+ 'implicit-trailing-newline'?: boolean;
106
+ language?: GtkSource.Language | null;
107
+ /** Style scheme. */
108
+ 'style-scheme'?: GtkSource.StyleScheme | null;
109
+ }
110
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
111
+ export type GtkSourceBufferConstructOnly = GtkTextBufferConstructOnly;
112
+
113
+ /** Main Completion Object. */
114
+ export interface GtkSourceCompletionProps extends GObjectProps {
115
+ /**
116
+ * The number of rows to display to the user before scrolling.
117
+ * @default 5
118
+ */
119
+ 'page-size'?: number;
120
+ /**
121
+ * Determines whether the visibility of the info window should be saved when the completion is hidden, and restored when the completion is shown again.
122
+ * @default FALSE
123
+ */
124
+ 'remember-info-visibility'?: boolean;
125
+ /**
126
+ * Determines whether the first proposal should be selected when the completion is first shown.
127
+ * @default FALSE
128
+ */
129
+ 'select-on-show'?: boolean;
130
+ /**
131
+ * The "show-icons" property denotes if icons should be displayed within the list of completions presented to the user.
132
+ * @default TRUE
133
+ */
134
+ 'show-icons'?: boolean;
135
+ /** The "view" property is the #GtkTextView for which this #GtkSourceCompletion is providing completion features. */
136
+ view?: GtkSource.View;
137
+ }
138
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
139
+ export type GtkSourceCompletionConstructOnly = GObjectConstructOnly | 'view';
140
+
67
141
  /** Widget for single cell of completion proposal. */
68
142
  export interface GtkSourceCompletionCellProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
69
143
  /** @default GTK_SOURCE_COMPLETION_COLUMN_TYPED_TEXT */
@@ -78,6 +152,103 @@ export interface GtkSourceCompletionCellProps extends GtkWidgetProps, GtkAccessi
78
152
  /** Settable only at construction — a renderer must REBUILD, not patch. */
79
153
  export type GtkSourceCompletionCellConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly | 'column';
80
154
 
155
+ /** The context of a completion. */
156
+ export interface GtkSourceCompletionContextProps extends GObjectProps, GListModelProps {
157
+ /** The "completion" is the #GtkSourceCompletion that was used to create the context. */
158
+ completion?: GtkSource.Completion | null;
159
+ }
160
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
161
+ export type GtkSourceCompletionContextConstructOnly = GObjectConstructOnly | GListModelConstructOnly | 'completion';
162
+
163
+ /** Completion provider interface. */
164
+ export interface GtkSourceCompletionProviderProps extends GObjectProps {
165
+ }
166
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
167
+ export type GtkSourceCompletionProviderConstructOnly = GObjectConstructOnly;
168
+
169
+ /** A [iface@CompletionProvider] for the completion of snippets. */
170
+ export interface GtkSourceCompletionSnippetsProps extends GObjectProps, GtkSourceCompletionProviderProps {
171
+ /** @default 0 */
172
+ priority?: number;
173
+ /** @default NULL */
174
+ title?: string;
175
+ }
176
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
177
+ export type GtkSourceCompletionSnippetsConstructOnly = GObjectConstructOnly | GtkSourceCompletionProviderConstructOnly;
178
+
179
+ /** A [iface@CompletionProvider] for the completion of words. */
180
+ export interface GtkSourceCompletionWordsProps extends GObjectProps, GtkSourceCompletionProviderProps {
181
+ /** @default 2 */
182
+ 'minimum-word-size'?: number;
183
+ /** @default 0 */
184
+ priority?: number;
185
+ /** @default 300 */
186
+ 'proposals-batch-size'?: number;
187
+ /** @default 50 */
188
+ 'scan-batch-size'?: number;
189
+ /** @default NULL */
190
+ title?: string;
191
+ }
192
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
193
+ export type GtkSourceCompletionWordsConstructOnly = GObjectConstructOnly | GtkSourceCompletionProviderConstructOnly;
194
+
195
+ /** On-disk representation of a [class@Buffer]. */
196
+ export interface GtkSourceFileProps extends GObjectProps {
197
+ /** The location. */
198
+ location?: Gio.File | null;
199
+ }
200
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
201
+ export type GtkSourceFileConstructOnly = GObjectConstructOnly;
202
+
203
+ /** Load a file into a GtkSourceBuffer. */
204
+ export interface GtkSourceFileLoaderProps extends GObjectProps {
205
+ /** The #GtkSourceBuffer to load the contents into. */
206
+ buffer?: GtkSource.Buffer;
207
+ /** The #GtkSourceFile. */
208
+ file?: GtkSource.File;
209
+ /** The #GInputStream to load. */
210
+ 'input-stream'?: Gio.InputStream | null;
211
+ /** The #GFile to load. */
212
+ location?: Gio.File | null;
213
+ /**
214
+ * The maximum expanded size, in bytes, that the loader will insert into the buffer.
215
+ * @since 5.22
216
+ * @default 1073741824
217
+ */
218
+ 'max-size'?: bigint | number;
219
+ }
220
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
221
+ export type GtkSourceFileLoaderConstructOnly = GObjectConstructOnly | 'buffer' | 'file' | 'input-stream' | 'location';
222
+
223
+ /** Save a [class@Buffer] into a file. */
224
+ export interface GtkSourceFileSaverProps extends GObjectProps {
225
+ /** The #GtkSourceBuffer to save. */
226
+ buffer?: GtkSource.Buffer;
227
+ /**
228
+ * The compression type.
229
+ * @default GTK_SOURCE_COMPRESSION_TYPE_NONE
230
+ */
231
+ 'compression-type'?: GtkSourceCompressionTypeNick | GtkSource.CompressionType;
232
+ /** The file's encoding. */
233
+ encoding?: GtkSource.Encoding;
234
+ /** The #GtkSourceFile. */
235
+ file?: GtkSource.File;
236
+ /**
237
+ * File saving flags.
238
+ * @default GTK_SOURCE_FILE_SAVER_FLAGS_NONE
239
+ */
240
+ flags?: number;
241
+ /** The #GFile where to save the buffer. */
242
+ location?: Gio.File;
243
+ /**
244
+ * The newline type.
245
+ * @default GTK_SOURCE_NEWLINE_TYPE_LF
246
+ */
247
+ 'newline-type'?: GtkSourceNewlineTypeNick | GtkSource.NewlineType;
248
+ }
249
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
250
+ export type GtkSourceFileSaverConstructOnly = GObjectConstructOnly | 'buffer' | 'file' | 'location';
251
+
81
252
  /** Gutter object for [class@View]. */
82
253
  export interface GtkSourceGutterProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
83
254
  /** The #GtkSourceView of the gutter. */
@@ -91,6 +262,12 @@ export interface GtkSourceGutterProps extends GtkWidgetProps, GtkAccessibleProps
91
262
  /** Settable only at construction — a renderer must REBUILD, not patch. */
92
263
  export type GtkSourceGutterConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly | 'view' | 'window-type';
93
264
 
265
+ /** Collected information about visible lines. */
266
+ export interface GtkSourceGutterLinesProps extends GObjectProps {
267
+ }
268
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
269
+ export type GtkSourceGutterLinesConstructOnly = GObjectConstructOnly;
270
+
94
271
  /** Gutter cell renderer. */
95
272
  export interface GtkSourceGutterRendererProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
96
273
  /**
@@ -143,12 +320,42 @@ export interface GtkSourceGutterRendererTextProps extends GtkSourceGutterRendere
143
320
  /** Settable only at construction — a renderer must REBUILD, not patch. */
144
321
  export type GtkSourceGutterRendererTextConstructOnly = GtkSourceGutterRendererConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly;
145
322
 
323
+ /** Interactive tooltips. */
324
+ export interface GtkSourceHoverProps extends GObjectProps {
325
+ /**
326
+ * Contains the number of milliseconds to delay before showing the hover assistant.
327
+ * @default 500
328
+ */
329
+ 'hover-delay'?: number;
330
+ }
331
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
332
+ export type GtkSourceHoverConstructOnly = GObjectConstructOnly;
333
+
334
+ /** Context for populating [class@HoverDisplay] contents. */
335
+ export interface GtkSourceHoverContextProps extends GObjectProps {
336
+ }
337
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
338
+ export type GtkSourceHoverContextConstructOnly = GObjectConstructOnly;
339
+
146
340
  /** Display for interactive tooltips. */
147
341
  export interface GtkSourceHoverDisplayProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
148
342
  }
149
343
  /** Settable only at construction — a renderer must REBUILD, not patch. */
150
344
  export type GtkSourceHoverDisplayConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly;
151
345
 
346
+ /** Represents a syntax highlighted language. */
347
+ export interface GtkSourceLanguageProps extends GObjectProps {
348
+ }
349
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
350
+ export type GtkSourceLanguageConstructOnly = GObjectConstructOnly;
351
+
352
+ /** Provides access to [class@Language]s. */
353
+ export interface GtkSourceLanguageManagerProps extends GObjectProps {
354
+ 'search-path'?: string[];
355
+ }
356
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
357
+ export type GtkSourceLanguageManagerConstructOnly = GObjectConstructOnly;
358
+
152
359
  /** Widget that displays a map for a specific [class@View]. */
153
360
  export interface GtkSourceMapProps extends GtkSourceViewProps, GtkAccessibleProps, GtkAccessibleTextProps, GtkBuildableProps, GtkConstraintTargetProps, GtkScrollableProps {
154
361
  'font-desc'?: Pango.FontDescription;
@@ -157,13 +364,276 @@ export interface GtkSourceMapProps extends GtkSourceViewProps, GtkAccessibleProp
157
364
  /** Settable only at construction — a renderer must REBUILD, not patch. */
158
365
  export type GtkSourceMapConstructOnly = GtkSourceViewConstructOnly | GtkAccessibleConstructOnly | GtkAccessibleTextConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly | GtkScrollableConstructOnly;
159
366
 
367
+ /** Mark object for [class@Buffer]. */
368
+ export interface GtkSourceMarkProps extends GtkTextMarkProps {
369
+ /**
370
+ * The category of the `GtkSourceMark`, classifies the mark and controls which pixbuf is used and with which priority it is drawn.
371
+ * @default NULL
372
+ */
373
+ category?: string;
374
+ }
375
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
376
+ export type GtkSourceMarkConstructOnly = GtkTextMarkConstructOnly | 'category';
377
+
378
+ /** The source mark attributes object. */
379
+ export interface GtkSourceMarkAttributesProps extends GObjectProps {
380
+ /** A color used for background of a line. */
381
+ background?: Gdk.RGBA;
382
+ /** A #GIcon that may be a base of a rendered icon. */
383
+ gicon?: Gio.Icon;
384
+ /**
385
+ * An icon name that may be a base of a rendered icon.
386
+ * @default NULL
387
+ */
388
+ 'icon-name'?: string;
389
+ /** A #GdkPixbuf that may be a base of a rendered icon. */
390
+ pixbuf?: GdkPixbuf.Pixbuf;
391
+ }
392
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
393
+ export type GtkSourceMarkAttributesConstructOnly = GObjectConstructOnly;
394
+
395
+ /** Compose a [class@Buffer] for printing. */
396
+ export interface GtkSourcePrintCompositorProps extends GObjectProps {
397
+ /**
398
+ * Name of the font used for the text body.
399
+ * @default NULL
400
+ */
401
+ 'body-font-name'?: string;
402
+ /** The [class@Buffer] object to print. */
403
+ buffer?: GtkSource.Buffer;
404
+ /**
405
+ * Name of the font used to print page footer.
406
+ * @default NULL
407
+ */
408
+ 'footer-font-name'?: string;
409
+ /**
410
+ * Name of the font used to print page header.
411
+ * @default NULL
412
+ */
413
+ 'header-font-name'?: string;
414
+ /**
415
+ * Whether to print the document with highlighted syntax.
416
+ * @default TRUE
417
+ */
418
+ 'highlight-syntax'?: boolean;
419
+ /**
420
+ * Name of the font used to print line numbers on the left margin.
421
+ * @default NULL
422
+ */
423
+ 'line-numbers-font-name'?: string;
424
+ /**
425
+ * Whether to print a footer in each page.
426
+ * @default FALSE
427
+ */
428
+ 'print-footer'?: boolean;
429
+ /**
430
+ * Whether to print a header in each page.
431
+ * @default FALSE
432
+ */
433
+ 'print-header'?: boolean;
434
+ /**
435
+ * Interval of printed line numbers.
436
+ * @default 1
437
+ */
438
+ 'print-line-numbers'?: number;
439
+ /**
440
+ * Width of a tab character expressed in spaces.
441
+ * @default 8
442
+ */
443
+ 'tab-width'?: number;
444
+ /**
445
+ * Whether to wrap lines never, at word boundaries, or at character boundaries.
446
+ * @default GTK_WRAP_NONE
447
+ */
448
+ 'wrap-mode'?: GtkWrapModeNick | Gtk.WrapMode;
449
+ }
450
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
451
+ export type GtkSourcePrintCompositorConstructOnly = GObjectConstructOnly | 'buffer';
452
+
453
+ /** Region utility. */
454
+ export interface GtkSourceRegionProps extends GObjectProps {
455
+ /** The [class@Gtk.TextBuffer]. */
456
+ buffer?: Gtk.TextBuffer | null;
457
+ }
458
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
459
+ export type GtkSourceRegionConstructOnly = GObjectConstructOnly | 'buffer';
460
+
461
+ /** Search context. */
462
+ export interface GtkSourceSearchContextProps extends GObjectProps {
463
+ /** The [class@Buffer] associated to the search context. */
464
+ buffer?: GtkSource.Buffer;
465
+ /**
466
+ * Highlight the search occurrences.
467
+ * @default TRUE
468
+ */
469
+ highlight?: boolean;
470
+ /** A [class@Style], or %NULL for theme's scheme default style. */
471
+ 'match-style'?: GtkSource.Style | null;
472
+ /** The [class@SearchSettings] associated to the search context. */
473
+ settings?: GtkSource.SearchSettings;
474
+ }
475
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
476
+ export type GtkSourceSearchContextConstructOnly = GObjectConstructOnly | 'buffer' | 'settings';
477
+
478
+ /** Search settings. */
479
+ export interface GtkSourceSearchSettingsProps extends GObjectProps {
480
+ /**
481
+ * If %TRUE, a search match must start and end a word.
482
+ * @default FALSE
483
+ */
484
+ 'at-word-boundaries'?: boolean;
485
+ /**
486
+ * Whether the search is case sensitive.
487
+ * @default FALSE
488
+ */
489
+ 'case-sensitive'?: boolean;
490
+ /**
491
+ * Search by regular expressions with [property@SearchSettings:search-text] as the pattern.
492
+ * @default FALSE
493
+ */
494
+ 'regex-enabled'?: boolean;
495
+ /**
496
+ * A search string, or %NULL if the search is disabled.
497
+ * @default NULL
498
+ */
499
+ 'search-text'?: string | null;
500
+ /**
501
+ * Exclude invisible text from the search.
502
+ * @since 5.12
503
+ * @default TRUE
504
+ */
505
+ 'visible-only'?: boolean;
506
+ /**
507
+ * For a forward search, continue at the beginning of the buffer if no search occurrence is found.
508
+ * @default FALSE
509
+ */
510
+ 'wrap-around'?: boolean;
511
+ }
512
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
513
+ export type GtkSourceSearchSettingsConstructOnly = GObjectConstructOnly;
514
+
515
+ /** Quick insertion code snippets. */
516
+ export interface GtkSourceSnippetProps extends GObjectProps {
517
+ /** @default NULL */
518
+ description?: string;
519
+ /** @default NULL */
520
+ 'language-id'?: string;
521
+ /** @default NULL */
522
+ name?: string;
523
+ /** @default NULL */
524
+ trigger?: string | null;
525
+ }
526
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
527
+ export type GtkSourceSnippetConstructOnly = GObjectConstructOnly;
528
+
529
+ /** A chunk of text within the source snippet. */
530
+ export interface GtkSourceSnippetChunkProps extends GInitiallyUnownedProps {
531
+ context?: GtkSource.SnippetContext;
532
+ /** @default -1 */
533
+ 'focus-position'?: number;
534
+ /** @default NULL */
535
+ spec?: string | null;
536
+ /** @default NULL */
537
+ text?: string;
538
+ /** @default FALSE */
539
+ 'text-set'?: boolean;
540
+ /** @default NULL */
541
+ 'tooltip-text'?: string;
542
+ }
543
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
544
+ export type GtkSourceSnippetChunkConstructOnly = GInitiallyUnownedConstructOnly;
545
+
546
+ /** Context for expanding [class@SnippetChunk]. */
547
+ export interface GtkSourceSnippetContextProps extends GObjectProps {
548
+ }
549
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
550
+ export type GtkSourceSnippetContextConstructOnly = GObjectConstructOnly;
551
+
552
+ /** Provides access to [class@Snippet]. */
553
+ export interface GtkSourceSnippetManagerProps extends GObjectProps {
554
+ /** Contains a list of directories to search for files containing snippets (*.snippets). */
555
+ 'search-path'?: string[];
556
+ }
557
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
558
+ export type GtkSourceSnippetManagerConstructOnly = GObjectConstructOnly;
559
+
560
+ /** Represent white space characters with symbols. */
561
+ export interface GtkSourceSpaceDrawerProps extends GObjectProps {
562
+ /**
563
+ * Whether the [property@SpaceDrawer:matrix] property is enabled.
564
+ * @default FALSE
565
+ */
566
+ 'enable-matrix'?: boolean;
567
+ /** The property is a [struct@GLib.Variant] property to specify where and what kind of white spaces to draw. */
568
+ matrix?: GLib.Variant;
569
+ }
570
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
571
+ export type GtkSourceSpaceDrawerConstructOnly = GObjectConstructOnly;
572
+
573
+ /** Represents a style. */
574
+ export interface GtkSourceStyleProps extends GObjectProps {
575
+ /** @default NULL */
576
+ background?: string;
577
+ /** @default FALSE */
578
+ 'background-set'?: boolean;
579
+ /** @default FALSE */
580
+ bold?: boolean;
581
+ /** @default FALSE */
582
+ 'bold-set'?: boolean;
583
+ /** @default NULL */
584
+ foreground?: string;
585
+ /** @default FALSE */
586
+ 'foreground-set'?: boolean;
587
+ /** @default FALSE */
588
+ italic?: boolean;
589
+ /** @default FALSE */
590
+ 'italic-set'?: boolean;
591
+ /** @default NULL */
592
+ 'line-background'?: string;
593
+ /** @default FALSE */
594
+ 'line-background-set'?: boolean;
595
+ /** @default PANGO_UNDERLINE_NONE */
596
+ 'pango-underline'?: PangoUnderlineNick | Pango.Underline;
597
+ /** @default NULL */
598
+ scale?: string;
599
+ /** @default FALSE */
600
+ 'scale-set'?: boolean;
601
+ /** @default FALSE */
602
+ strikethrough?: boolean;
603
+ /** @default FALSE */
604
+ 'strikethrough-set'?: boolean;
605
+ /** @default NULL */
606
+ 'underline-color'?: string;
607
+ /** @default FALSE */
608
+ 'underline-color-set'?: boolean;
609
+ /** @default FALSE */
610
+ 'underline-set'?: boolean;
611
+ /** @default PANGO_WEIGHT_NORMAL */
612
+ weight?: PangoWeightNick | Pango.Weight;
613
+ /** @default FALSE */
614
+ 'weight-set'?: boolean;
615
+ }
616
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
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';
618
+
619
+ /** Controls the appearance of [class@View]. */
620
+ export interface GtkSourceStyleSchemeProps extends GObjectProps {
621
+ /**
622
+ * Style scheme id, a unique string used to identify the style scheme in [class@StyleSchemeManager].
623
+ * @default NULL
624
+ */
625
+ id?: string;
626
+ }
627
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
628
+ export type GtkSourceStyleSchemeConstructOnly = GObjectConstructOnly | 'id';
629
+
160
630
  /** Interface implemented by widgets for choosing style schemes. */
161
- export interface GtkSourceStyleSchemeChooserProps {
631
+ export interface GtkSourceStyleSchemeChooserProps extends GObjectProps {
162
632
  /** Contains the currently selected style scheme. */
163
633
  'style-scheme'?: GtkSource.StyleScheme;
164
634
  }
165
635
  /** Settable only at construction — a renderer must REBUILD, not patch. */
166
- export type GtkSourceStyleSchemeChooserConstructOnly = never;
636
+ export type GtkSourceStyleSchemeChooserConstructOnly = GObjectConstructOnly;
167
637
 
168
638
  /** A button to launch a style scheme selection dialog. */
169
639
  export interface GtkSourceStyleSchemeChooserButtonProps extends GtkButtonProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps, GtkSourceStyleSchemeChooserProps {
@@ -177,6 +647,13 @@ export interface GtkSourceStyleSchemeChooserWidgetProps extends GtkWidgetProps,
177
647
  /** Settable only at construction — a renderer must REBUILD, not patch. */
178
648
  export type GtkSourceStyleSchemeChooserWidgetConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly | GtkSourceStyleSchemeChooserConstructOnly;
179
649
 
650
+ /** Provides access to [class@StyleScheme]s. */
651
+ export interface GtkSourceStyleSchemeManagerProps extends GObjectProps {
652
+ 'search-path'?: string[];
653
+ }
654
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
655
+ export type GtkSourceStyleSchemeManagerConstructOnly = GObjectConstructOnly;
656
+
180
657
  /** A preview widget for [class@StyleScheme]. */
181
658
  export interface GtkSourceStyleSchemePreviewProps extends GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
182
659
  scheme?: GtkSource.StyleScheme;
@@ -186,6 +663,22 @@ export interface GtkSourceStyleSchemePreviewProps extends GtkWidgetProps, GtkAcc
186
663
  /** Settable only at construction — a renderer must REBUILD, not patch. */
187
664
  export type GtkSourceStyleSchemePreviewConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkActionableConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly | 'scheme';
188
665
 
666
+ /** A tag that can be applied to text in a [class@Buffer]. */
667
+ export interface GtkSourceTagProps extends GtkTextTagProps {
668
+ /**
669
+ * Whether to draw white spaces.
670
+ * @default FALSE
671
+ */
672
+ 'draw-spaces'?: boolean;
673
+ /**
674
+ * Whether the [property@Tag:draw-spaces] property is set and must be taken into account.
675
+ * @default FALSE
676
+ */
677
+ 'draw-spaces-set'?: boolean;
678
+ }
679
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
680
+ export type GtkSourceTagConstructOnly = GtkTextTagConstructOnly;
681
+
189
682
  /** Subclass of [class@Gtk.TextView]. */
190
683
  export interface GtkSourceViewProps extends GtkTextViewProps, GtkAccessibleProps, GtkAccessibleTextProps, GtkBuildableProps, GtkConstraintTargetProps, GtkScrollableProps {
191
684
  /** @default FALSE */
@@ -252,6 +745,12 @@ export interface GtkSourceViewProps extends GtkTextViewProps, GtkAccessibleProps
252
745
  /** Settable only at construction — a renderer must REBUILD, not patch. */
253
746
  export type GtkSourceViewConstructOnly = GtkTextViewConstructOnly | GtkAccessibleConstructOnly | GtkAccessibleTextConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly | GtkScrollableConstructOnly;
254
747
 
748
+ /** Vim emulation. */
749
+ export interface GtkSourceVimIMContextProps extends GtkIMContextProps {
750
+ }
751
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
752
+ export type GtkSourceVimIMContextConstructOnly = GtkIMContextConstructOnly;
753
+
255
754
  // ---------------------------------------------------------------------------
256
755
  // The GType-keyed widget map.
257
756
  //
@@ -344,7 +843,11 @@ export interface Widgets {
344
843
  };
345
844
  }
346
845
 
347
- /** Every GType this namespace can create. A consumer derives its own tag map. */
846
+ /**
847
+ * Every GType this namespace can create AND put on screen. A consumer derives its own
848
+ * tag map. For everything a UI file can instantiate — layout managers, event
849
+ * controllers, cell renderers, `GtkSizeGroup` — read `DECLS` below.
850
+ */
348
851
  export type WidgetGType = keyof Widgets;
349
852
 
350
853
  // ---------------------------------------------------------------------------
@@ -396,7 +899,38 @@ export const PROVENANCE: {
396
899
  readonly childHolders: number;
397
900
  readonly droppedBases: readonly string[];
398
901
  readonly inlinedBases: readonly string[];
902
+ /** `<decl>.<prop>` for every property printed `never` because TypeScript has no value for it. */
399
903
  readonly unsettableProps: readonly string[];
904
+ /**
905
+ * `<decl>.<prop>: <Ns>.<Name>` for every property printed `never` because the model
906
+ * could not resolve its type across a namespace boundary — two independently released
907
+ * GIRs disagreeing, which is what the main emitter answers `never` for as well.
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[];
400
934
  };
401
935
 
402
936
  /** Declaration GType -> its own settable properties, as GObject registered them. */
@@ -410,7 +944,17 @@ export const OWN_PROPS: Readonly<Record<string, readonly string[]>>;
410
944
  */
411
945
  export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
412
946
 
413
- /** Widget GType -> every declaration its members come from, self first. */
947
+ /**
948
+ * Instantiable GType -> every declaration its members come from, self first.
949
+ *
950
+ * The key set is what a UI description file can NAME: every registered, non-abstract
951
+ * class this namespace declares. GtkBuilder resolves a `<object class="…">` through
952
+ * `g_type_from_name`, which knows nothing about widgets, so this is wider than
953
+ * `Widgets` by design — `GtkSizeGroup`, `GtkTextTag`, every `GtkEventController`
954
+ * and every `GtkCellRenderer` are here and are not widgets.
955
+ *
956
+ * `Widgets` and `CHILD_HOLDERS` are the narrower questions and answer them unchanged.
957
+ */
414
958
  export const DECLS: Readonly<Record<string, readonly string[]>>;
415
959
 
416
960
  /** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
@@ -422,8 +966,8 @@ export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
422
966
  /**
423
967
  * `<enum GType>.<nick>` -> the integer GObject registers for it, from GIR's `value`.
424
968
  *
425
- * Position in `ENUM_NICKS` is NOT this number. Counting is wrong on 6 of the 129 enums a
426
- * GTK 4 vocabulary carries -- 104 in Gtk-4.0 and 25 in Adw-1: `GtkResponseType` runs -1 to -11, `GtkTextWindowType` starts
969
+ * Position in `ENUM_NICKS` is NOT this number. Counting is wrong on 6 of the 137 enums a
970
+ * GTK 4 vocabulary carries -- 112 in Gtk-4.0 and 25 in Adw-1: `GtkResponseType` runs -1 to -11, `GtkTextWindowType` starts
427
971
  * at 1, `GtkOrdering` and `GtkConstraintRelation` are -1/0/1, `GtkAlign` has two names
428
972
  * on one value, and `GtkConstraintStrength.required` is 1001001000 where counting says 0.
429
973
  *
@@ -461,10 +1005,11 @@ export const ENUM_VALUES_UNREADABLE: Readonly<Record<string, string>>;
461
1005
  *
462
1006
  * `ENUM_NICKS` carries no bitfield, because GObject cannot resolve a nick SET; that says
463
1007
  * nothing about a single member's number, and the number is what a host without GI needs.
464
- * 21 writable widget properties in Gtk-4.0 and Adw-1 are bitfield-typed and are declared
465
- * bare `number` -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`, `AdwTabView:shortcuts`
466
- * among them. Counting is worst here: 95 of 121 Gtk-4.0 bitfield members disagree with their
467
- * position, against 29 of 685 enumeration members.
1008
+ * 23 settable properties in Gtk-4.0 and Adw-1 are bitfield-typed and are declared bare
1009
+ * `number` -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`, `AdwTabView:shortcuts`,
1010
+ * `GtkDropTarget:actions` among them. Counting is worst here: 119 of the 156 Gtk-4.0
1011
+ * bitfield members this vocabulary carries disagree with their declaration position,
1012
+ * against 29 of 672 enumeration members.
468
1013
  *
469
1014
  * Combine with `|` as GObject does. There is no nick table to pair this with, so a name
470
1015
  * here is resolvable and a SET still is not.
@@ -488,7 +1033,7 @@ export const FLAG_VALUES_UNREADABLE: Readonly<Record<string, string>>;
488
1033
  *
489
1034
  * The GType named here is not always one THIS module gives numbers for. A nick vocabulary is
490
1035
  * emitted once, by the namespace that owns the enum, so `AdwComboRow.search-match-mode` names
491
- * `GtkStringFilterMatchMode` and its rows are in `@girs/gtk-4.0/vocabulary` — 57 of the 438
1036
+ * `GtkStringFilterMatchMode` and its rows are in `@girs/gtk-4.0/vocabulary` — 83 of the 909
492
1037
  * entries in a full run resolve only with the owner's vocabulary loaded beside this one. An
493
1038
  * owner with no vocabulary of its own (Gdk, Pango) is inlined here instead, so every entry
494
1039
  * resolves against SOME module.
@@ -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 — dropped empty base(s): GObject.InitiallyUnowned GObject.Object
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,46 +11,121 @@ export const PROVENANCE = {
11
11
  version: '5',
12
12
  libraryVersion: '5.21.0',
13
13
  childHolders: 0,
14
- droppedBases: ['GObject.InitiallyUnowned', 'GObject.Object'],
14
+ droppedBases: [],
15
15
  inlinedBases: [],
16
16
  unsettableProps: [],
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'],
17
20
  };
18
21
 
19
22
  export const OWN_PROPS = {
23
+ GtkSourceBuffer: ['highlight-matching-brackets', 'highlight-syntax', 'implicit-trailing-newline', 'language', 'style-scheme'],
24
+ GtkSourceCompletion: ['page-size', 'remember-info-visibility', 'select-on-show', 'show-icons', 'view'],
20
25
  GtkSourceCompletionCell: ['column', 'markup', 'paintable', 'text', 'widget'],
26
+ GtkSourceCompletionContext: ['completion'],
27
+ GtkSourceCompletionSnippets: ['priority', 'title'],
28
+ GtkSourceCompletionWords: ['minimum-word-size', 'priority', 'proposals-batch-size', 'scan-batch-size', 'title'],
29
+ GtkSourceFile: ['location'],
30
+ GtkSourceFileLoader: ['buffer', 'file', 'input-stream', 'location', 'max-size'],
31
+ GtkSourceFileSaver: ['buffer', 'compression-type', 'encoding', 'file', 'flags', 'location', 'newline-type'],
21
32
  GtkSourceGutter: ['view', 'window-type'],
22
33
  GtkSourceGutterRenderer: ['alignment-mode', 'xalign', 'xpad', 'yalign', 'ypad'],
23
34
  GtkSourceGutterRendererPixbuf: ['gicon', 'icon-name', 'paintable', 'pixbuf'],
24
35
  GtkSourceGutterRendererText: ['markup', 'text'],
36
+ GtkSourceHover: ['hover-delay'],
37
+ GtkSourceLanguageManager: ['search-path'],
25
38
  GtkSourceMap: ['font-desc', 'view'],
39
+ GtkSourceMark: ['category'],
40
+ GtkSourceMarkAttributes: ['background', 'gicon', 'icon-name', 'pixbuf'],
41
+ 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'],
42
+ GtkSourceRegion: ['buffer'],
43
+ GtkSourceSearchContext: ['buffer', 'highlight', 'match-style', 'settings'],
44
+ GtkSourceSearchSettings: ['at-word-boundaries', 'case-sensitive', 'regex-enabled', 'search-text', 'visible-only', 'wrap-around'],
45
+ GtkSourceSnippet: ['description', 'language-id', 'name', 'trigger'],
46
+ GtkSourceSnippetChunk: ['context', 'focus-position', 'spec', 'text', 'text-set', 'tooltip-text'],
47
+ GtkSourceSnippetManager: ['search-path'],
48
+ GtkSourceSpaceDrawer: ['enable-matrix', 'matrix'],
49
+ 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', 'weight', 'weight-set'],
50
+ GtkSourceStyleScheme: ['id'],
26
51
  GtkSourceStyleSchemeChooser: ['style-scheme'],
52
+ GtkSourceStyleSchemeManager: ['search-path'],
27
53
  GtkSourceStyleSchemePreview: ['scheme', 'selected'],
54
+ GtkSourceTag: ['draw-spaces', 'draw-spaces-set'],
28
55
  GtkSourceView: ['auto-indent', 'background-pattern', 'enable-snippets', 'highlight-current-line', 'indent-on-tab', 'indent-width', 'indenter', 'insert-spaces-instead-of-tabs', 'right-margin-position', 'show-line-marks', 'show-line-numbers', 'show-right-margin', 'smart-backspace', 'smart-home-end', 'tab-width'],
29
56
  };
30
57
 
31
58
  export const OWN_SIGNALS = {
59
+ GtkSourceAnnotationProvider: ['changed'],
60
+ GtkSourceAnnotations: ['changed'],
61
+ GtkSourceBuffer: ['bracket-matched', 'cursor-moved', 'highlight-updated', 'source-mark-updated'],
62
+ GtkSourceCompletion: ['hide', 'provider-added', 'provider-removed', 'show'],
63
+ GtkSourceCompletionContext: ['provider-model-changed'],
32
64
  GtkSourceGutterRenderer: ['activate', 'query-activatable', 'query-data'],
65
+ GtkSourceMarkAttributes: ['query-tooltip-markup', 'query-tooltip-text'],
66
+ GtkSourceSnippetContext: ['changed'],
33
67
  GtkSourceStyleSchemePreview: ['activate'],
34
68
  GtkSourceView: ['change-case', 'change-number', 'join-lines', 'line-mark-activated', 'move-lines', 'move-to-matching-bracket', 'move-words', 'push-snippet', 'show-completion', 'smart-home-end'],
69
+ GtkSourceVimIMContext: ['edit', 'execute-command', 'format-text', 'write'],
35
70
  };
36
71
 
72
+ // Every GType this namespace can INSTANTIATE -> the declarations its members come from.
73
+ //
74
+ // The key set is what a UI description file can name: a registered, non-abstract class.
75
+ // Not "every widget" — GtkBuilder resolves a name through `g_type_from_name`, which knows
76
+ // nothing about widgets, and a `.ui` file is full of `GtkSizeGroup`, `GtkTextTag`,
77
+ // `GtkEventController*` and `GtkCellRenderer*`. Use `Widgets` and `CHILD_HOLDERS`
78
+ // below for the narrower questions; they did not move.
37
79
  export const DECLS = {
38
- GtkSourceCompletionCell: ['GtkSourceCompletionCell', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
39
- GtkSourceGutter: ['GtkSourceGutter', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
40
- GtkSourceGutterRendererPixbuf: ['GtkSourceGutterRendererPixbuf', 'GtkSourceGutterRenderer', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
41
- GtkSourceGutterRendererText: ['GtkSourceGutterRendererText', 'GtkSourceGutterRenderer', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
42
- GtkSourceHoverDisplay: ['GtkSourceHoverDisplay', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
43
- GtkSourceMap: ['GtkSourceMap', 'GtkSourceView', 'GtkTextView', 'GtkWidget', 'GtkAccessible', 'GtkAccessibleText', 'GtkBuildable', 'GtkConstraintTarget', 'GtkScrollable'],
44
- GtkSourceStyleSchemeChooserButton: ['GtkSourceStyleSchemeChooserButton', 'GtkButton', 'GtkWidget', 'GtkAccessible', 'GtkActionable', 'GtkBuildable', 'GtkConstraintTarget', 'GtkSourceStyleSchemeChooser'],
45
- GtkSourceStyleSchemeChooserWidget: ['GtkSourceStyleSchemeChooserWidget', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget', 'GtkSourceStyleSchemeChooser'],
46
- GtkSourceStyleSchemePreview: ['GtkSourceStyleSchemePreview', 'GtkWidget', 'GtkAccessible', 'GtkActionable', 'GtkBuildable', 'GtkConstraintTarget'],
47
- GtkSourceView: ['GtkSourceView', 'GtkTextView', 'GtkWidget', 'GtkAccessible', 'GtkAccessibleText', 'GtkBuildable', 'GtkConstraintTarget', 'GtkScrollable'],
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'],
48
122
  };
49
123
 
50
- // The GTypes above that are NOT widgets: they hold one through `set_child`/`get_child`
51
- // and descend from `GObject.Object`. A renderer places them like a container; a check
52
- // asking "is this a widget" must not count them. Derived from the accessor pair, never
53
- // from a list — the count is in the provenance line above.
124
+ // The GTypes above that ARE widgets are the `Widgets` map in the sibling `.d.ts`; these
125
+ // are the ones that merely HOLD one, through `set_child`/`get_child`, descending from
126
+ // `GObject.Object`. A renderer places them like a container; a check asking "is this a
127
+ // widget" must not count them. Derived from the accessor pair, never from a list — the
128
+ // count is in the provenance line above.
54
129
  export const CHILD_HOLDERS = [];
55
130
 
56
131
  export const ENUM_NICKS = {
@@ -65,6 +140,10 @@ export const ENUM_NICKS = {
65
140
  GtkSourceNewlineType: ['lf', 'cr', 'cr-lf'],
66
141
  GtkSourceSmartHomeEndType: ['disabled', 'before', 'after', 'always'],
67
142
  GtkSourceViewGutterPosition: ['lines', 'marks'],
143
+ GtkTextWindowType: ['widget', 'text', 'left', 'right', 'top', 'bottom'],
144
+ GtkWrapMode: ['none', 'char', 'word', 'word-char'],
145
+ PangoUnderline: ['none', 'single', 'double', 'low', 'error', 'single-line', 'double-line', 'error-line'],
146
+ PangoWeight: ['thin', 'ultralight', 'light', 'semilight', 'book', 'normal', 'medium', 'semibold', 'bold', 'ultrabold', 'heavy', 'ultraheavy'],
68
147
  };
69
148
 
70
149
  // The number behind each of those nicks, read from GIR's own `value` attribute.
@@ -72,7 +151,7 @@ export const ENUM_NICKS = {
72
151
  // It ships because position in `ENUM_NICKS` is not the value and a consumer with no
73
152
  // typelib has no other way to learn it: a surface without GI still has to hand GObject an
74
153
  // integer. The alternative a consumer reaches for first is counting, and counting is wrong
75
- // on 6 of the 129 enums a GTK 4 vocabulary carries (104 in Gtk-4.0, 25 in Adw-1) --
154
+ // on 6 of the 137 enums a GTK 4 vocabulary carries (112 in Gtk-4.0, 25 in Adw-1) --
76
155
  // `GtkResponseType` runs -1 down to
77
156
  // -11, `GtkTextWindowType` starts at 1, and `GtkConstraintStrength.required` is
78
157
  // 1001001000 where counting answers 0.
@@ -119,6 +198,36 @@ export const ENUM_VALUES = {
119
198
  'GtkSourceSmartHomeEndType.disabled': 0,
120
199
  'GtkSourceViewGutterPosition.lines': -30,
121
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,
211
+ 'PangoUnderline.double': 2,
212
+ 'PangoUnderline.double-line': 6,
213
+ 'PangoUnderline.error': 4,
214
+ 'PangoUnderline.error-line': 7,
215
+ 'PangoUnderline.low': 3,
216
+ 'PangoUnderline.none': 0,
217
+ 'PangoUnderline.single': 1,
218
+ 'PangoUnderline.single-line': 5,
219
+ 'PangoWeight.bold': 700,
220
+ 'PangoWeight.book': 380,
221
+ 'PangoWeight.heavy': 900,
222
+ 'PangoWeight.light': 300,
223
+ 'PangoWeight.medium': 500,
224
+ 'PangoWeight.normal': 400,
225
+ 'PangoWeight.semibold': 600,
226
+ 'PangoWeight.semilight': 350,
227
+ 'PangoWeight.thin': 100,
228
+ 'PangoWeight.ultrabold': 800,
229
+ 'PangoWeight.ultraheavy': 1000,
230
+ 'PangoWeight.ultralight': 200,
122
231
  };
123
232
 
124
233
  // The nicks GIR marks `deprecated="1"`.
@@ -147,11 +256,12 @@ export const ENUM_VALUES_UNREADABLE = {};
147
256
  // The number behind each member of a registered BITFIELD, keyed the same way.
148
257
  //
149
258
  // `ENUM_NICKS` refuses a bitfield because GObject cannot resolve a nick SET, and that
150
- // reason says nothing about one member's number. 21 writable widget properties in Gtk-4.0
151
- // and Adw-1 are bitfield-typed -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`,
152
- // `AdwTabView:shortcuts`, ... -- and they are typed bare `number`, so a host without GI
153
- // has nothing to compute one from. Counting is worst exactly here: 95 of 121 Gtk-4.0
154
- // bitfield members disagree with their position, against 29 of 685 enumeration members.
259
+ // reason says nothing about one member's number. 23 settable properties in Gtk-4.0 and
260
+ // Adw-1 are bitfield-typed -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`,
261
+ // `AdwTabView:shortcuts`, `GtkDropTarget:actions`, ... -- and they are typed bare
262
+ // `number`, so a host without GI has nothing to compute one from. Counting is worst
263
+ // exactly here: 119 of the 156 Gtk-4.0 bitfield members this vocabulary carries disagree
264
+ // with their declaration position, against 29 of 672 enumeration members.
155
265
  //
156
266
  // A table of its own rather than more rows in `ENUM_VALUES`, so that "every nick in
157
267
  // `ENUM_NICKS` has a number or a declared reason" stays a claim about one set.
@@ -195,12 +305,18 @@ export const FLAG_VALUES_UNREADABLE = {};
195
305
  // one are both entries a consumer would resolve wrongly, so neither is written.
196
306
  //
197
307
  // A GType named here has numbers in SOME vocabulary, not necessarily this one: the namespace
198
- // that OWNS an enum publishes it, so 57 of the 438 entries a full run emits want the owner's
308
+ // that OWNS an enum publishes it, so 83 of the 909 entries a full run emits want the owner's
199
309
  // vocabulary loaded too. Owners that emit none (Gdk, Pango) are inlined into the tables above.
200
310
  export const PROP_ENUMS = {
201
311
  'GtkSourceCompletionCell.column': 'GtkSourceCompletionColumn',
312
+ 'GtkSourceFileSaver.compression-type': 'GtkSourceCompressionType',
313
+ 'GtkSourceFileSaver.flags': 'GtkSourceFileSaverFlags',
314
+ 'GtkSourceFileSaver.newline-type': 'GtkSourceNewlineType',
202
315
  'GtkSourceGutter.window-type': 'GtkTextWindowType',
203
316
  'GtkSourceGutterRenderer.alignment-mode': 'GtkSourceGutterRendererAlignmentMode',
317
+ 'GtkSourcePrintCompositor.wrap-mode': 'GtkWrapMode',
318
+ 'GtkSourceStyle.pango-underline': 'PangoUnderline',
319
+ 'GtkSourceStyle.weight': 'PangoWeight',
204
320
  'GtkSourceView.background-pattern': 'GtkSourceBackgroundPatternType',
205
321
  'GtkSourceView.smart-home-end': 'GtkSourceSmartHomeEndType',
206
322
  };
@@ -240,5 +356,17 @@ export const SLOT_CANDIDATES = {
240
356
  };
241
357
 
242
358
  export const SINCE = {
359
+ 'GtkSourceAnnotation': '5.18',
360
+ 'GtkSourceAnnotationProvider': '5.18',
361
+ 'GtkSourceAnnotationProvider::changed': '5.18',
362
+ 'GtkSourceAnnotations': '5.18',
363
+ 'GtkSourceCompletionContext::provider-model-changed': '5.6',
364
+ 'GtkSourceFileLoader.max-size': '5.22',
365
+ 'GtkSourceSearchSettings.visible-only': '5.12',
243
366
  'GtkSourceStyleSchemePreview': '5.4',
367
+ 'GtkSourceVimIMContext': '5.4',
368
+ 'GtkSourceVimIMContext::edit': '5.4',
369
+ 'GtkSourceVimIMContext::execute-command': '5.4',
370
+ 'GtkSourceVimIMContext::format-text': '5.4',
371
+ 'GtkSourceVimIMContext::write': '5.4',
244
372
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gtksource-5",
3
- "version": "5.1.0",
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.1.0",
41
- "@girs/gtk-4.0": "^5.1.0",
42
- "@girs/gsk-4.0": "^5.1.0",
43
- "@girs/graphene-1.0": "^5.1.0",
44
- "@girs/gobject-2.0": "^5.1.0",
45
- "@girs/glib-2.0": "^5.1.0",
46
- "@girs/gdk-4.0": "^5.1.0",
47
- "@girs/cairo-1.0": "^5.1.0",
48
- "@girs/pangocairo-1.0": "^5.1.0",
49
- "@girs/pango-1.0": "^5.1.0",
50
- "@girs/harfbuzz-0.0": "^5.1.0",
51
- "@girs/freetype2-2.0": "^5.1.0",
52
- "@girs/gio-2.0": "^5.1.0",
53
- "@girs/gmodule-2.0": "^5.1.0",
54
- "@girs/gdkpixbuf-2.0": "^5.1.0" },
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
  },