@girs/gtksource-5 4.3.0 → 4.5.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/gtksource-5.d.ts CHANGED
@@ -48,19 +48,19 @@ export namespace GtkSource {
48
48
  /**
49
49
  * same color as drawn spaces
50
50
  */
51
- NONE,
51
+ NONE = 0,
52
52
  /**
53
53
  * same as the diff:changed-line foreground color
54
54
  */
55
- WARNING,
55
+ WARNING = 1,
56
56
  /**
57
57
  * same as the diff:removed-line foreground color
58
58
  */
59
- ERROR,
59
+ ERROR = 2,
60
60
  /**
61
61
  * same as the diff:added-line foreground color
62
62
  */
63
- ACCENT,
63
+ ACCENT = 3,
64
64
  }
65
65
 
66
66
 
@@ -78,11 +78,11 @@ export namespace GtkSource {
78
78
  /**
79
79
  * no pattern
80
80
  */
81
- NONE,
81
+ NONE = 0,
82
82
  /**
83
83
  * grid pattern
84
84
  */
85
- GRID,
85
+ GRID = 1,
86
86
  }
87
87
 
88
88
 
@@ -100,20 +100,20 @@ export namespace GtkSource {
100
100
  /**
101
101
  * there is no bracket to match.
102
102
  */
103
- NONE,
103
+ NONE = 0,
104
104
  /**
105
105
  * matching a bracket
106
106
  * failed because the maximum range was reached.
107
107
  */
108
- OUT_OF_RANGE,
108
+ OUT_OF_RANGE = 1,
109
109
  /**
110
110
  * a matching bracket was not found.
111
111
  */
112
- NOT_FOUND,
112
+ NOT_FOUND = 2,
113
113
  /**
114
114
  * a matching bracket was found.
115
115
  */
116
- FOUND,
116
+ FOUND = 3,
117
117
  }
118
118
 
119
119
 
@@ -131,19 +131,19 @@ export namespace GtkSource {
131
131
  /**
132
132
  * change case to lowercase.
133
133
  */
134
- LOWER,
134
+ LOWER = 0,
135
135
  /**
136
136
  * change case to uppercase.
137
137
  */
138
- UPPER,
138
+ UPPER = 1,
139
139
  /**
140
140
  * toggle case of each character.
141
141
  */
142
- TOGGLE,
142
+ TOGGLE = 2,
143
143
  /**
144
144
  * capitalize each word.
145
145
  */
146
- TITLE,
146
+ TITLE = 3,
147
147
  }
148
148
 
149
149
 
@@ -158,9 +158,9 @@ export namespace GtkSource {
158
158
  * @gir-type Enum
159
159
  */
160
160
  enum CompletionActivation {
161
- NONE,
162
- INTERACTIVE,
163
- USER_REQUESTED,
161
+ NONE = 0,
162
+ INTERACTIVE = 1,
163
+ USER_REQUESTED = 2,
164
164
  }
165
165
 
166
166
 
@@ -175,12 +175,12 @@ export namespace GtkSource {
175
175
  * @gir-type Enum
176
176
  */
177
177
  enum CompletionColumn {
178
- ICON,
179
- BEFORE,
180
- TYPED_TEXT,
181
- AFTER,
182
- COMMENT,
183
- DETAILS,
178
+ ICON = 0,
179
+ BEFORE = 1,
180
+ TYPED_TEXT = 2,
181
+ AFTER = 3,
182
+ COMMENT = 4,
183
+ DETAILS = 5,
184
184
  }
185
185
 
186
186
 
@@ -198,11 +198,11 @@ export namespace GtkSource {
198
198
  /**
199
199
  * plain text.
200
200
  */
201
- NONE,
201
+ NONE = 0,
202
202
  /**
203
203
  * gzip compression.
204
204
  */
205
- GZIP,
205
+ GZIP = 1,
206
206
  }
207
207
 
208
208
 
@@ -283,15 +283,15 @@ export namespace GtkSource {
283
283
  /**
284
284
  * The full cell.
285
285
  */
286
- CELL,
286
+ CELL = 0,
287
287
  /**
288
288
  * The first line.
289
289
  */
290
- FIRST,
290
+ FIRST = 1,
291
291
  /**
292
292
  * The last line.
293
293
  */
294
- LAST,
294
+ LAST = 2,
295
295
  }
296
296
 
297
297
 
@@ -309,16 +309,16 @@ export namespace GtkSource {
309
309
  /**
310
310
  * line feed, used on UNIX.
311
311
  */
312
- LF,
312
+ LF = 0,
313
313
  /**
314
314
  * carriage return, used on Mac.
315
315
  */
316
- CR,
316
+ CR = 1,
317
317
  /**
318
318
  * carriage return followed by a line feed, used
319
319
  * on Windows.
320
320
  */
321
- CR_LF,
321
+ CR_LF = 2,
322
322
  }
323
323
 
324
324
 
@@ -336,24 +336,24 @@ export namespace GtkSource {
336
336
  /**
337
337
  * smart-home-end disabled.
338
338
  */
339
- DISABLED,
339
+ DISABLED = 0,
340
340
  /**
341
341
  * move to the first/last
342
342
  * non-whitespace character on the first press of the HOME/END keys and
343
343
  * to the beginning/end of the line on the second press.
344
344
  */
345
- BEFORE,
345
+ BEFORE = 1,
346
346
  /**
347
347
  * move to the beginning/end of the
348
348
  * line on the first press of the HOME/END keys and to the first/last
349
349
  * non-whitespace character on the second press.
350
350
  */
351
- AFTER,
351
+ AFTER = 2,
352
352
  /**
353
353
  * always move to the first/last
354
354
  * non-whitespace character when the HOME/END keys are pressed.
355
355
  */
356
- ALWAYS,
356
+ ALWAYS = 3,
357
357
  }
358
358
 
359
359
 
@@ -372,12 +372,12 @@ export namespace GtkSource {
372
372
  * the gutter position of the lines
373
373
  * renderer
374
374
  */
375
- LINES,
375
+ LINES = -30,
376
376
  /**
377
377
  * the gutter position of the marks
378
378
  * renderer
379
379
  */
380
- MARKS,
380
+ MARKS = -20,
381
381
  }
382
382
 
383
383
 
@@ -385,6 +385,7 @@ export namespace GtkSource {
385
385
  * Like `gtk_source_get_major_version()`, but from the headers used at
386
386
  * application compile time, rather than from the library linked
387
387
  * against at application run time.
388
+ * @default 5
388
389
  */
389
390
  const MAJOR_VERSION: number;
390
391
 
@@ -392,6 +393,7 @@ export namespace GtkSource {
392
393
  * Like `gtk_source_get_micro_version()`, but from the headers used at
393
394
  * application compile time, rather than from the library linked
394
395
  * against at application run time.
396
+ * @default 0
395
397
  */
396
398
  const MICRO_VERSION: number;
397
399
 
@@ -399,6 +401,7 @@ export namespace GtkSource {
399
401
  * Like `gtk_source_get_minor_version()`, but from the headers used at
400
402
  * application compile time, rather than from the library linked
401
403
  * against at application run time.
404
+ * @default 21
402
405
  */
403
406
  const MINOR_VERSION: number;
404
407
 
@@ -595,19 +598,19 @@ export namespace GtkSource {
595
598
  /**
596
599
  * No flags.
597
600
  */
598
- NONE,
601
+ NONE = 0,
599
602
  /**
600
603
  * Ignore invalid characters.
601
604
  */
602
- IGNORE_INVALID_CHARS,
605
+ IGNORE_INVALID_CHARS = 1,
603
606
  /**
604
607
  * Save file despite external modifications.
605
608
  */
606
- IGNORE_MODIFICATION_TIME,
609
+ IGNORE_MODIFICATION_TIME = 2,
607
610
  /**
608
611
  * Create a backup before saving the file.
609
612
  */
610
- CREATE_BACKUP,
613
+ CREATE_BACKUP = 4,
611
614
  }
612
615
 
613
616
 
@@ -625,25 +628,26 @@ export namespace GtkSource {
625
628
  /**
626
629
  * no flags specified
627
630
  */
628
- NONE,
631
+ NONE = 0,
629
632
  /**
630
633
  * case sensitive sort
631
634
  */
632
- CASE_SENSITIVE,
635
+ CASE_SENSITIVE = 1,
633
636
  /**
634
637
  * sort in reverse order
635
638
  */
636
- REVERSE_ORDER,
639
+ REVERSE_ORDER = 2,
637
640
  /**
638
641
  * remove duplicates
639
642
  */
640
- REMOVE_DUPLICATES,
643
+ REMOVE_DUPLICATES = 4,
641
644
  /**
642
645
  * improved sorting for filenames.
643
646
  *
644
647
  * see {@link GLib.utf8_collate_key_for_filename}
648
+ * @since 5.16
645
649
  */
646
- FILENAME,
650
+ FILENAME = 8,
647
651
  }
648
652
 
649
653
 
@@ -665,24 +669,24 @@ export namespace GtkSource {
665
669
  /**
666
670
  * No flags.
667
671
  */
668
- NONE,
672
+ NONE = 0,
669
673
  /**
670
674
  * Leading white spaces on a line, i.e. the
671
675
  * indentation.
672
676
  */
673
- LEADING,
677
+ LEADING = 1,
674
678
  /**
675
679
  * White spaces inside a line of text.
676
680
  */
677
- INSIDE_TEXT,
681
+ INSIDE_TEXT = 2,
678
682
  /**
679
683
  * Trailing white spaces on a line.
680
684
  */
681
- TRAILING,
685
+ TRAILING = 4,
682
686
  /**
683
687
  * White spaces anywhere.
684
688
  */
685
- ALL,
689
+ ALL = 7,
686
690
  }
687
691
 
688
692
 
@@ -701,29 +705,29 @@ export namespace GtkSource {
701
705
  /**
702
706
  * No flags.
703
707
  */
704
- NONE,
708
+ NONE = 0,
705
709
  /**
706
710
  * Space character.
707
711
  */
708
- SPACE,
712
+ SPACE = 1,
709
713
  /**
710
714
  * Tab character.
711
715
  */
712
- TAB,
716
+ TAB = 2,
713
717
  /**
714
718
  * Line break character. If the
715
719
  * {@link GtkSource.Buffer.implicit_trailing_newline} property is `true`,
716
720
  * {@link GtkSource.SpaceDrawer} also draws a line break at the end of the buffer.
717
721
  */
718
- NEWLINE,
722
+ NEWLINE = 4,
719
723
  /**
720
724
  * Non-breaking space character.
721
725
  */
722
- NBSP,
726
+ NBSP = 8,
723
727
  /**
724
728
  * All white spaces.
725
729
  */
726
- ALL,
730
+ ALL = 15,
727
731
  }
728
732
 
729
733
 
@@ -909,6 +913,7 @@ export namespace GtkSource {
909
913
  * @param display a {@link GtkSource.HoverDisplay} to populate
910
914
  * @param cancellable
911
915
  * @param callback
916
+ * @since 5.18
912
917
  * @virtual
913
918
  */
914
919
  vfunc_populate_hover_async(annotation: Annotation, display: HoverDisplay, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
@@ -916,6 +921,7 @@ export namespace GtkSource {
916
921
  /**
917
922
  * Finishes populating the {@link HoverDisplay} asynchronously.
918
923
  * @param result
924
+ * @since 5.18
919
925
  * @virtual
920
926
  */
921
927
  vfunc_populate_hover_finish(result: Gio.AsyncResult): boolean;
@@ -924,6 +930,7 @@ export namespace GtkSource {
924
930
  /**
925
931
  * Add an annotation to the provider.
926
932
  * @param annotation
933
+ * @since 5.18
927
934
  */
928
935
  add_annotation(annotation: Annotation): void;
929
936
 
@@ -933,6 +940,7 @@ export namespace GtkSource {
933
940
  * @param annotation a {@link GtkSource.Annotation}
934
941
  * @param display a {@link GtkSource.HoverDisplay} to populate
935
942
  * @param cancellable
943
+ * @since 5.18
936
944
  */
937
945
  populate_hover_async(annotation: Annotation, display: HoverDisplay, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>;
938
946
 
@@ -943,6 +951,7 @@ export namespace GtkSource {
943
951
  * @param display a {@link GtkSource.HoverDisplay} to populate
944
952
  * @param cancellable
945
953
  * @param callback
954
+ * @since 5.18
946
955
  */
947
956
  populate_hover_async(annotation: Annotation, display: HoverDisplay, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
948
957
 
@@ -953,6 +962,7 @@ export namespace GtkSource {
953
962
  * @param display a {@link GtkSource.HoverDisplay} to populate
954
963
  * @param cancellable
955
964
  * @param callback
965
+ * @since 5.18
956
966
  */
957
967
  populate_hover_async(annotation: Annotation, display: HoverDisplay, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
958
968
 
@@ -960,11 +970,14 @@ export namespace GtkSource {
960
970
  * Finishes populating the {@link HoverDisplay} asynchronously.
961
971
  * @param result
962
972
  * @returns `true` if successful; otherwise `false` and `error` is set.
973
+ * @since 5.18
974
+ * @throws GLib.Error
963
975
  */
964
976
  populate_hover_finish(result: Gio.AsyncResult): boolean;
965
977
 
966
978
  /**
967
979
  * Removes all annotations from the provider.
980
+ * @since 5.18
968
981
  */
969
982
  remove_all(): void;
970
983
 
@@ -972,6 +985,7 @@ export namespace GtkSource {
972
985
  * Remove an annotation from the provider.
973
986
  * @param annotation
974
987
  * @returns `true` if the annotation was found and removed
988
+ * @since 5.18
975
989
  */
976
990
  remove_annotation(annotation: Annotation): boolean;
977
991
  }
@@ -1061,7 +1075,7 @@ export namespace GtkSource {
1061
1075
  * @signal
1062
1076
  * @run-last
1063
1077
  */
1064
- "bracket-matched": (arg0: Gtk.TextIter | null, arg1: BracketMatchType) => void;
1078
+ "bracket-matched": (iter: Gtk.TextIter | null, state: BracketMatchType) => void;
1065
1079
  /**
1066
1080
  * The "cursor-moved" signal is emitted when then insertion mark has moved.
1067
1081
  * @signal
@@ -1075,14 +1089,14 @@ export namespace GtkSource {
1075
1089
  * @signal
1076
1090
  * @run-last
1077
1091
  */
1078
- "highlight-updated": (arg0: Gtk.TextIter, arg1: Gtk.TextIter) => void;
1092
+ "highlight-updated": (start: Gtk.TextIter, end: Gtk.TextIter) => void;
1079
1093
  /**
1080
1094
  * The ::source-mark-updated signal is emitted each time
1081
1095
  * a mark is added to, moved or removed from the `buffer`.
1082
1096
  * @signal
1083
1097
  * @run-last
1084
1098
  */
1085
- "source-mark-updated": (arg0: Gtk.TextMark) => void;
1099
+ "source-mark-updated": (mark: Gtk.TextMark) => void;
1086
1100
  "notify::highlight-matching-brackets": (pspec: GObject.ParamSpec) => void;
1087
1101
  "notify::highlight-syntax": (pspec: GObject.ParamSpec) => void;
1088
1102
  "notify::implicit-trailing-newline": (pspec: GObject.ParamSpec) => void;
@@ -1426,6 +1440,7 @@ export namespace GtkSource {
1426
1440
  * @param start start of range as a {@link Gtk.TextIter}
1427
1441
  * @param end end of range as a {@link Gtk.TextIter}
1428
1442
  * @returns a newly-allocated string containing the text with Pango markup, or `null` if `start` and `end` are invalid.
1443
+ * @since 5.18
1429
1444
  */
1430
1445
  get_markup(start: Gtk.TextIter, end: Gtk.TextIter): string;
1431
1446
 
@@ -1616,14 +1631,14 @@ export namespace GtkSource {
1616
1631
  * @signal
1617
1632
  * @run-last
1618
1633
  */
1619
- "provider-added": (arg0: CompletionProvider) => void;
1634
+ "provider-added": (provider: CompletionProvider) => void;
1620
1635
  /**
1621
1636
  * The "provided-removed" signal is emitted when a provider has
1622
1637
  * been removed from the completion.
1623
1638
  * @signal
1624
1639
  * @run-last
1625
1640
  */
1626
- "provider-removed": (arg0: CompletionProvider) => void;
1641
+ "provider-removed": (provider: CompletionProvider) => void;
1627
1642
  /**
1628
1643
  * The "show" signal is emitted when the completion window should
1629
1644
  * be shown.
@@ -2080,6 +2095,7 @@ export namespace GtkSource {
2080
2095
  * does not interrupts the user's current screen reader output.
2081
2096
  * @param message the string to announce
2082
2097
  * @param priority the priority of the announcement
2098
+ * @since 4.14
2083
2099
  */
2084
2100
  announce(message: string, priority: Gtk.AccessibleAnnouncementPriority): void;
2085
2101
 
@@ -2092,6 +2108,7 @@ export namespace GtkSource {
2092
2108
  * It is left to the accessible implementation to define the scope
2093
2109
  * and uniqueness of the identifier.
2094
2110
  * @returns the accessible identifier
2111
+ * @since 4.22
2095
2112
  */
2096
2113
  get_accessible_id(): string | null;
2097
2114
 
@@ -2100,6 +2117,7 @@ export namespace GtkSource {
2100
2117
  *
2101
2118
  * This function returns `NULL` for top level widgets.
2102
2119
  * @returns the accessible parent
2120
+ * @since 4.10
2103
2121
  */
2104
2122
  get_accessible_parent(): Gtk.Accessible | null;
2105
2123
 
@@ -2112,6 +2130,7 @@ export namespace GtkSource {
2112
2130
  /**
2113
2131
  * Retrieves the implementation for the given accessible object.
2114
2132
  * @returns the accessible implementation object
2133
+ * @since 4.10
2115
2134
  */
2116
2135
  get_at_context(): Gtk.ATContext;
2117
2136
 
@@ -2122,18 +2141,21 @@ export namespace GtkSource {
2122
2141
  * implementations, e.g. to get the bounds from an ignored
2123
2142
  * child widget.
2124
2143
  * @returns true if the bounds are valid, and false otherwise
2144
+ * @since 4.10
2125
2145
  */
2126
2146
  get_bounds(): [boolean, number, number, number, number];
2127
2147
 
2128
2148
  /**
2129
2149
  * Retrieves the first accessible child of an accessible object.
2130
2150
  * @returns the first accessible child
2151
+ * @since 4.10
2131
2152
  */
2132
2153
  get_first_accessible_child(): Gtk.Accessible | null;
2133
2154
 
2134
2155
  /**
2135
2156
  * Retrieves the next accessible sibling of an accessible object
2136
2157
  * @returns the next accessible sibling
2158
+ * @since 4.10
2137
2159
  */
2138
2160
  get_next_accessible_sibling(): Gtk.Accessible | null;
2139
2161
 
@@ -2145,6 +2167,7 @@ export namespace GtkSource {
2145
2167
  * child widget, as is the case for {@link Gtk.Text} wrappers.
2146
2168
  * @param state platform state to query
2147
2169
  * @returns the value of state for the accessible
2170
+ * @since 4.10
2148
2171
  */
2149
2172
  get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
2150
2173
 
@@ -2178,6 +2201,7 @@ export namespace GtkSource {
2178
2201
  * object is the container widget.
2179
2202
  * @param parent the parent accessible object
2180
2203
  * @param next_sibling the sibling accessible object
2204
+ * @since 4.10
2181
2205
  */
2182
2206
  set_accessible_parent(parent: Gtk.Accessible | null, next_sibling: Gtk.Accessible | null): void;
2183
2207
 
@@ -2187,6 +2211,7 @@ export namespace GtkSource {
2187
2211
  * That might be useful when a new child of a custom accessible
2188
2212
  * is created, and it needs to be linked to a previous child.
2189
2213
  * @param new_sibling the new next accessible sibling to set
2214
+ * @since 4.10
2190
2215
  */
2191
2216
  update_next_accessible_sibling(new_sibling: Gtk.Accessible | null): void;
2192
2217
 
@@ -2197,6 +2222,7 @@ export namespace GtkSource {
2197
2222
  * have a platform state but are not widgets. Widgets handle platform
2198
2223
  * states automatically.
2199
2224
  * @param state the platform state to update
2225
+ * @since 4.18
2200
2226
  */
2201
2227
  update_platform_state(state: Gtk.AccessiblePlatformState): void;
2202
2228
 
@@ -2244,6 +2270,7 @@ export namespace GtkSource {
2244
2270
  *
2245
2271
  * It is left to the accessible implementation to define the scope
2246
2272
  * and uniqueness of the identifier.
2273
+ * @since 4.22
2247
2274
  * @virtual
2248
2275
  */
2249
2276
  vfunc_get_accessible_id(): string | null;
@@ -2252,12 +2279,14 @@ export namespace GtkSource {
2252
2279
  * Retrieves the accessible parent for an accessible object.
2253
2280
  *
2254
2281
  * This function returns `NULL` for top level widgets.
2282
+ * @since 4.10
2255
2283
  * @virtual
2256
2284
  */
2257
2285
  vfunc_get_accessible_parent(): Gtk.Accessible | null;
2258
2286
 
2259
2287
  /**
2260
2288
  * Retrieves the implementation for the given accessible object.
2289
+ * @since 4.10
2261
2290
  * @virtual
2262
2291
  */
2263
2292
  vfunc_get_at_context(): Gtk.ATContext | null;
@@ -2268,18 +2297,21 @@ export namespace GtkSource {
2268
2297
  * This functionality can be overridden by {@link Gtk.Accessible}
2269
2298
  * implementations, e.g. to get the bounds from an ignored
2270
2299
  * child widget.
2300
+ * @since 4.10
2271
2301
  * @virtual
2272
2302
  */
2273
2303
  vfunc_get_bounds(): [boolean, number, number, number, number];
2274
2304
 
2275
2305
  /**
2276
2306
  * Retrieves the first accessible child of an accessible object.
2307
+ * @since 4.10
2277
2308
  * @virtual
2278
2309
  */
2279
2310
  vfunc_get_first_accessible_child(): Gtk.Accessible | null;
2280
2311
 
2281
2312
  /**
2282
2313
  * Retrieves the next accessible sibling of an accessible object
2314
+ * @since 4.10
2283
2315
  * @virtual
2284
2316
  */
2285
2317
  vfunc_get_next_accessible_sibling(): Gtk.Accessible | null;
@@ -2291,6 +2323,7 @@ export namespace GtkSource {
2291
2323
  * implementations, e.g. to get platform state from an ignored
2292
2324
  * child widget, as is the case for {@link Gtk.Text} wrappers.
2293
2325
  * @param state platform state to query
2326
+ * @since 4.10
2294
2327
  * @virtual
2295
2328
  */
2296
2329
  vfunc_get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
@@ -2408,7 +2441,7 @@ export namespace GtkSource {
2408
2441
  * @since 5.6
2409
2442
  * @run-last
2410
2443
  */
2411
- "provider-model-changed": (arg0: CompletionProvider, arg1: Gio.ListModel | null) => void;
2444
+ "provider-model-changed": (provider: CompletionProvider, model: Gio.ListModel | null) => void;
2412
2445
  "notify::busy": (pspec: GObject.ParamSpec) => void;
2413
2446
  "notify::completion": (pspec: GObject.ParamSpec) => void;
2414
2447
  "notify::empty": (pspec: GObject.ParamSpec) => void;
@@ -2560,6 +2593,7 @@ export namespace GtkSource {
2560
2593
  * notifications about when the model has been replaced by a new model.
2561
2594
  * @param provider a {@link GtkSource.CompletionProvider}
2562
2595
  * @returns a {@link Gio.ListModel} or `null`
2596
+ * @since 5.6
2563
2597
  */
2564
2598
  get_proposals_for_provider(provider: CompletionProvider): Gio.ListModel | null;
2565
2599
 
@@ -2578,6 +2612,7 @@ export namespace GtkSource {
2578
2612
  /**
2579
2613
  * Gets the providers that are associated with the context.
2580
2614
  * @returns a {@link Gio.ListModel} of {@link GtkSource.CompletionProvider}
2615
+ * @since 5.6
2581
2616
  */
2582
2617
  list_providers(): Gio.ListModel;
2583
2618
 
@@ -2603,6 +2638,7 @@ export namespace GtkSource {
2603
2638
  * The item type of a {@link Gio.ListModel} can not change during the life of the
2604
2639
  * model.
2605
2640
  * @returns the {@link GObject.GType} of the items contained in `list`.
2641
+ * @since 2.44
2606
2642
  */
2607
2643
  get_item_type(): GObject.GType;
2608
2644
 
@@ -2613,6 +2649,7 @@ export namespace GtkSource {
2613
2649
  * less efficient than iterating the list with increasing values for
2614
2650
  * `position` until `g_list_model_get_item()` returns `null`.
2615
2651
  * @returns the number of items in `list`.
2652
+ * @since 2.44
2616
2653
  */
2617
2654
  get_n_items(): number;
2618
2655
 
@@ -2631,6 +2668,7 @@ export namespace GtkSource {
2631
2668
  * See also: `g_list_model_get_n_items()`
2632
2669
  * @param position the position of the item to fetch
2633
2670
  * @returns the object at `position`.
2671
+ * @since 2.44
2634
2672
  */
2635
2673
  get_item(position: number): A | null;
2636
2674
 
@@ -2658,6 +2696,7 @@ export namespace GtkSource {
2658
2696
  * @param position the position at which `list` changed
2659
2697
  * @param removed the number of items removed
2660
2698
  * @param added the number of items added
2699
+ * @since 2.44
2661
2700
  */
2662
2701
  items_changed(position: number, removed: number, added: number): void;
2663
2702
 
@@ -2670,6 +2709,7 @@ export namespace GtkSource {
2670
2709
  *
2671
2710
  * The same {@link GObject.Object} instance may not appear more than once in a {@link Gio.ListModel}.
2672
2711
  * @param position the position of the item to fetch
2712
+ * @since 2.44
2673
2713
  * @virtual
2674
2714
  */
2675
2715
  vfunc_get_item(position: number): A | null;
@@ -2683,6 +2723,7 @@ export namespace GtkSource {
2683
2723
  *
2684
2724
  * The item type of a {@link Gio.ListModel} can not change during the life of the
2685
2725
  * model.
2726
+ * @since 2.44
2686
2727
  * @virtual
2687
2728
  */
2688
2729
  vfunc_get_item_type(): GObject.GType;
@@ -2693,6 +2734,7 @@ export namespace GtkSource {
2693
2734
  * Depending on the model implementation, calling this function may be
2694
2735
  * less efficient than iterating the list with increasing values for
2695
2736
  * `position` until `g_list_model_get_item()` returns `null`.
2737
+ * @since 2.44
2696
2738
  * @virtual
2697
2739
  */
2698
2740
  vfunc_get_n_items(): number;
@@ -2902,6 +2944,7 @@ export namespace GtkSource {
2902
2944
  * Completes an asynchronous operation to populate a completion provider.
2903
2945
  * @param result a {@link Gio.AsyncResult} provided to callback
2904
2946
  * @returns a {@link Gio.ListModel} of {@link GtkSource.CompletionProposal}
2947
+ * @throws GLib.Error
2905
2948
  */
2906
2949
  populate_finish(result: Gio.AsyncResult): Gio.ListModel;
2907
2950
 
@@ -3311,6 +3354,7 @@ export namespace GtkSource {
3311
3354
  * Completes an asynchronous operation to populate a completion provider.
3312
3355
  * @param result a {@link Gio.AsyncResult} provided to callback
3313
3356
  * @returns a {@link Gio.ListModel} of {@link GtkSource.CompletionProposal}
3357
+ * @throws GLib.Error
3314
3358
  */
3315
3359
  populate_finish(result: Gio.AsyncResult): Gio.ListModel;
3316
3360
 
@@ -3831,6 +3875,7 @@ export namespace GtkSource {
3831
3875
  /**
3832
3876
  * Gets the maximum expanded size that `loader` will insert into the buffer.
3833
3877
  * @returns the maximum expanded size in bytes, or 0 if the limit is disabled.
3878
+ * @since 5.22
3834
3879
  */
3835
3880
  get_max_size(): number;
3836
3881
 
@@ -3882,6 +3927,7 @@ export namespace GtkSource {
3882
3927
  * type.
3883
3928
  * @param result a {@link Gio.AsyncResult}.
3884
3929
  * @returns whether the contents has been loaded successfully.
3930
+ * @throws GLib.Error
3885
3931
  */
3886
3932
  load_finish(result: Gio.AsyncResult): boolean;
3887
3933
 
@@ -3907,6 +3953,7 @@ export namespace GtkSource {
3907
3953
  * The limit is checked after decompression, so compressed files are limited by
3908
3954
  * the size of their uncompressed contents rather than their on-disk size.
3909
3955
  * @param max_size maximum expanded size in bytes, or 0 to disable the limit.
3956
+ * @since 5.22
3910
3957
  */
3911
3958
  set_max_size(max_size: bigint | number): void;
3912
3959
  }
@@ -4125,6 +4172,7 @@ export namespace GtkSource {
4125
4172
  * if the file has been saved successfully.
4126
4173
  * @param result a {@link Gio.AsyncResult}.
4127
4174
  * @returns whether the file was saved successfully.
4175
+ * @throws GLib.Error
4128
4176
  */
4129
4177
  save_finish(result: Gio.AsyncResult): boolean;
4130
4178
 
@@ -4339,6 +4387,7 @@ export namespace GtkSource {
4339
4387
  * does not interrupts the user's current screen reader output.
4340
4388
  * @param message the string to announce
4341
4389
  * @param priority the priority of the announcement
4390
+ * @since 4.14
4342
4391
  */
4343
4392
  announce(message: string, priority: Gtk.AccessibleAnnouncementPriority): void;
4344
4393
 
@@ -4351,6 +4400,7 @@ export namespace GtkSource {
4351
4400
  * It is left to the accessible implementation to define the scope
4352
4401
  * and uniqueness of the identifier.
4353
4402
  * @returns the accessible identifier
4403
+ * @since 4.22
4354
4404
  */
4355
4405
  get_accessible_id(): string | null;
4356
4406
 
@@ -4359,6 +4409,7 @@ export namespace GtkSource {
4359
4409
  *
4360
4410
  * This function returns `NULL` for top level widgets.
4361
4411
  * @returns the accessible parent
4412
+ * @since 4.10
4362
4413
  */
4363
4414
  get_accessible_parent(): Gtk.Accessible | null;
4364
4415
 
@@ -4371,6 +4422,7 @@ export namespace GtkSource {
4371
4422
  /**
4372
4423
  * Retrieves the implementation for the given accessible object.
4373
4424
  * @returns the accessible implementation object
4425
+ * @since 4.10
4374
4426
  */
4375
4427
  get_at_context(): Gtk.ATContext;
4376
4428
 
@@ -4381,18 +4433,21 @@ export namespace GtkSource {
4381
4433
  * implementations, e.g. to get the bounds from an ignored
4382
4434
  * child widget.
4383
4435
  * @returns true if the bounds are valid, and false otherwise
4436
+ * @since 4.10
4384
4437
  */
4385
4438
  get_bounds(): [boolean, number, number, number, number];
4386
4439
 
4387
4440
  /**
4388
4441
  * Retrieves the first accessible child of an accessible object.
4389
4442
  * @returns the first accessible child
4443
+ * @since 4.10
4390
4444
  */
4391
4445
  get_first_accessible_child(): Gtk.Accessible | null;
4392
4446
 
4393
4447
  /**
4394
4448
  * Retrieves the next accessible sibling of an accessible object
4395
4449
  * @returns the next accessible sibling
4450
+ * @since 4.10
4396
4451
  */
4397
4452
  get_next_accessible_sibling(): Gtk.Accessible | null;
4398
4453
 
@@ -4404,6 +4459,7 @@ export namespace GtkSource {
4404
4459
  * child widget, as is the case for {@link Gtk.Text} wrappers.
4405
4460
  * @param state platform state to query
4406
4461
  * @returns the value of state for the accessible
4462
+ * @since 4.10
4407
4463
  */
4408
4464
  get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
4409
4465
 
@@ -4437,6 +4493,7 @@ export namespace GtkSource {
4437
4493
  * object is the container widget.
4438
4494
  * @param parent the parent accessible object
4439
4495
  * @param next_sibling the sibling accessible object
4496
+ * @since 4.10
4440
4497
  */
4441
4498
  set_accessible_parent(parent: Gtk.Accessible | null, next_sibling: Gtk.Accessible | null): void;
4442
4499
 
@@ -4446,6 +4503,7 @@ export namespace GtkSource {
4446
4503
  * That might be useful when a new child of a custom accessible
4447
4504
  * is created, and it needs to be linked to a previous child.
4448
4505
  * @param new_sibling the new next accessible sibling to set
4506
+ * @since 4.10
4449
4507
  */
4450
4508
  update_next_accessible_sibling(new_sibling: Gtk.Accessible | null): void;
4451
4509
 
@@ -4456,6 +4514,7 @@ export namespace GtkSource {
4456
4514
  * have a platform state but are not widgets. Widgets handle platform
4457
4515
  * states automatically.
4458
4516
  * @param state the platform state to update
4517
+ * @since 4.18
4459
4518
  */
4460
4519
  update_platform_state(state: Gtk.AccessiblePlatformState): void;
4461
4520
 
@@ -4503,6 +4562,7 @@ export namespace GtkSource {
4503
4562
  *
4504
4563
  * It is left to the accessible implementation to define the scope
4505
4564
  * and uniqueness of the identifier.
4565
+ * @since 4.22
4506
4566
  * @virtual
4507
4567
  */
4508
4568
  vfunc_get_accessible_id(): string | null;
@@ -4511,12 +4571,14 @@ export namespace GtkSource {
4511
4571
  * Retrieves the accessible parent for an accessible object.
4512
4572
  *
4513
4573
  * This function returns `NULL` for top level widgets.
4574
+ * @since 4.10
4514
4575
  * @virtual
4515
4576
  */
4516
4577
  vfunc_get_accessible_parent(): Gtk.Accessible | null;
4517
4578
 
4518
4579
  /**
4519
4580
  * Retrieves the implementation for the given accessible object.
4581
+ * @since 4.10
4520
4582
  * @virtual
4521
4583
  */
4522
4584
  vfunc_get_at_context(): Gtk.ATContext | null;
@@ -4527,18 +4589,21 @@ export namespace GtkSource {
4527
4589
  * This functionality can be overridden by {@link Gtk.Accessible}
4528
4590
  * implementations, e.g. to get the bounds from an ignored
4529
4591
  * child widget.
4592
+ * @since 4.10
4530
4593
  * @virtual
4531
4594
  */
4532
4595
  vfunc_get_bounds(): [boolean, number, number, number, number];
4533
4596
 
4534
4597
  /**
4535
4598
  * Retrieves the first accessible child of an accessible object.
4599
+ * @since 4.10
4536
4600
  * @virtual
4537
4601
  */
4538
4602
  vfunc_get_first_accessible_child(): Gtk.Accessible | null;
4539
4603
 
4540
4604
  /**
4541
4605
  * Retrieves the next accessible sibling of an accessible object
4606
+ * @since 4.10
4542
4607
  * @virtual
4543
4608
  */
4544
4609
  vfunc_get_next_accessible_sibling(): Gtk.Accessible | null;
@@ -4550,6 +4615,7 @@ export namespace GtkSource {
4550
4615
  * implementations, e.g. to get platform state from an ignored
4551
4616
  * child widget, as is the case for {@link Gtk.Text} wrappers.
4552
4617
  * @param state platform state to query
4618
+ * @since 4.10
4553
4619
  * @virtual
4554
4620
  */
4555
4621
  vfunc_get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
@@ -4762,6 +4828,7 @@ export namespace GtkSource {
4762
4828
  * The value for `y` is relative to the renderers widget coordinates.
4763
4829
  * @param line a line number starting from zero
4764
4830
  * @param mode a {@link GtkSource.GutterRendererAlignmentMode}
4831
+ * @since 5.18
4765
4832
  */
4766
4833
  get_line_extent(line: number, mode: GutterRendererAlignmentMode): [number, number];
4767
4834
 
@@ -4786,6 +4853,7 @@ export namespace GtkSource {
4786
4853
  * been set on the class.
4787
4854
  * @param line a line contained within `lines`
4788
4855
  * @returns `true` if any quark was set for the line
4856
+ * @since 5.6
4789
4857
  */
4790
4858
  has_any_class(line: number): boolean;
4791
4859
 
@@ -4863,18 +4931,18 @@ export namespace GtkSource {
4863
4931
  * @signal
4864
4932
  * @run-last
4865
4933
  */
4866
- activate: (arg0: Gtk.TextIter, arg1: Gdk.Rectangle, arg2: number, arg3: Gdk.ModifierType, arg4: number) => void;
4934
+ activate: (iter: Gtk.TextIter, area: Gdk.Rectangle, button: number, state: Gdk.ModifierType, n_presses: number) => void;
4867
4935
  /**
4868
4936
  * The signal is emitted when the renderer can possibly be activated.
4869
4937
  * @signal
4870
4938
  * @run-last
4871
4939
  */
4872
- "query-activatable": (arg0: Gtk.TextIter, arg1: Gdk.Rectangle) => boolean | void;
4940
+ "query-activatable": (iter: Gtk.TextIter, area: Gdk.Rectangle) => boolean | void;
4873
4941
  /**
4874
4942
  * @signal
4875
4943
  * @run-last
4876
4944
  */
4877
- "query-data": (arg0: GObject.Object, arg1: number) => void;
4945
+ "query-data": (object: GObject.Object, p0: number) => void;
4878
4946
  "notify::alignment-mode": (pspec: GObject.ParamSpec) => void;
4879
4947
  "notify::lines": (pspec: GObject.ParamSpec) => void;
4880
4948
  "notify::view": (pspec: GObject.ParamSpec) => void;
@@ -5295,6 +5363,7 @@ export namespace GtkSource {
5295
5363
  * does not interrupts the user's current screen reader output.
5296
5364
  * @param message the string to announce
5297
5365
  * @param priority the priority of the announcement
5366
+ * @since 4.14
5298
5367
  */
5299
5368
  announce(message: string, priority: Gtk.AccessibleAnnouncementPriority): void;
5300
5369
 
@@ -5307,6 +5376,7 @@ export namespace GtkSource {
5307
5376
  * It is left to the accessible implementation to define the scope
5308
5377
  * and uniqueness of the identifier.
5309
5378
  * @returns the accessible identifier
5379
+ * @since 4.22
5310
5380
  */
5311
5381
  get_accessible_id(): string | null;
5312
5382
 
@@ -5315,6 +5385,7 @@ export namespace GtkSource {
5315
5385
  *
5316
5386
  * This function returns `NULL` for top level widgets.
5317
5387
  * @returns the accessible parent
5388
+ * @since 4.10
5318
5389
  */
5319
5390
  get_accessible_parent(): Gtk.Accessible | null;
5320
5391
 
@@ -5327,6 +5398,7 @@ export namespace GtkSource {
5327
5398
  /**
5328
5399
  * Retrieves the implementation for the given accessible object.
5329
5400
  * @returns the accessible implementation object
5401
+ * @since 4.10
5330
5402
  */
5331
5403
  get_at_context(): Gtk.ATContext;
5332
5404
 
@@ -5337,18 +5409,21 @@ export namespace GtkSource {
5337
5409
  * implementations, e.g. to get the bounds from an ignored
5338
5410
  * child widget.
5339
5411
  * @returns true if the bounds are valid, and false otherwise
5412
+ * @since 4.10
5340
5413
  */
5341
5414
  get_bounds(): [boolean, number, number, number, number];
5342
5415
 
5343
5416
  /**
5344
5417
  * Retrieves the first accessible child of an accessible object.
5345
5418
  * @returns the first accessible child
5419
+ * @since 4.10
5346
5420
  */
5347
5421
  get_first_accessible_child(): Gtk.Accessible | null;
5348
5422
 
5349
5423
  /**
5350
5424
  * Retrieves the next accessible sibling of an accessible object
5351
5425
  * @returns the next accessible sibling
5426
+ * @since 4.10
5352
5427
  */
5353
5428
  get_next_accessible_sibling(): Gtk.Accessible | null;
5354
5429
 
@@ -5360,6 +5435,7 @@ export namespace GtkSource {
5360
5435
  * child widget, as is the case for {@link Gtk.Text} wrappers.
5361
5436
  * @param state platform state to query
5362
5437
  * @returns the value of state for the accessible
5438
+ * @since 4.10
5363
5439
  */
5364
5440
  get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
5365
5441
 
@@ -5393,6 +5469,7 @@ export namespace GtkSource {
5393
5469
  * object is the container widget.
5394
5470
  * @param parent the parent accessible object
5395
5471
  * @param next_sibling the sibling accessible object
5472
+ * @since 4.10
5396
5473
  */
5397
5474
  set_accessible_parent(parent: Gtk.Accessible | null, next_sibling: Gtk.Accessible | null): void;
5398
5475
 
@@ -5402,6 +5479,7 @@ export namespace GtkSource {
5402
5479
  * That might be useful when a new child of a custom accessible
5403
5480
  * is created, and it needs to be linked to a previous child.
5404
5481
  * @param new_sibling the new next accessible sibling to set
5482
+ * @since 4.10
5405
5483
  */
5406
5484
  update_next_accessible_sibling(new_sibling: Gtk.Accessible | null): void;
5407
5485
 
@@ -5412,6 +5490,7 @@ export namespace GtkSource {
5412
5490
  * have a platform state but are not widgets. Widgets handle platform
5413
5491
  * states automatically.
5414
5492
  * @param state the platform state to update
5493
+ * @since 4.18
5415
5494
  */
5416
5495
  update_platform_state(state: Gtk.AccessiblePlatformState): void;
5417
5496
 
@@ -5459,6 +5538,7 @@ export namespace GtkSource {
5459
5538
  *
5460
5539
  * It is left to the accessible implementation to define the scope
5461
5540
  * and uniqueness of the identifier.
5541
+ * @since 4.22
5462
5542
  * @virtual
5463
5543
  */
5464
5544
  vfunc_get_accessible_id(): string | null;
@@ -5467,12 +5547,14 @@ export namespace GtkSource {
5467
5547
  * Retrieves the accessible parent for an accessible object.
5468
5548
  *
5469
5549
  * This function returns `NULL` for top level widgets.
5550
+ * @since 4.10
5470
5551
  * @virtual
5471
5552
  */
5472
5553
  vfunc_get_accessible_parent(): Gtk.Accessible | null;
5473
5554
 
5474
5555
  /**
5475
5556
  * Retrieves the implementation for the given accessible object.
5557
+ * @since 4.10
5476
5558
  * @virtual
5477
5559
  */
5478
5560
  vfunc_get_at_context(): Gtk.ATContext | null;
@@ -5483,18 +5565,21 @@ export namespace GtkSource {
5483
5565
  * This functionality can be overridden by {@link Gtk.Accessible}
5484
5566
  * implementations, e.g. to get the bounds from an ignored
5485
5567
  * child widget.
5568
+ * @since 4.10
5486
5569
  * @virtual
5487
5570
  */
5488
5571
  vfunc_get_bounds(): [boolean, number, number, number, number];
5489
5572
 
5490
5573
  /**
5491
5574
  * Retrieves the first accessible child of an accessible object.
5575
+ * @since 4.10
5492
5576
  * @virtual
5493
5577
  */
5494
5578
  vfunc_get_first_accessible_child(): Gtk.Accessible | null;
5495
5579
 
5496
5580
  /**
5497
5581
  * Retrieves the next accessible sibling of an accessible object
5582
+ * @since 4.10
5498
5583
  * @virtual
5499
5584
  */
5500
5585
  vfunc_get_next_accessible_sibling(): Gtk.Accessible | null;
@@ -5506,6 +5591,7 @@ export namespace GtkSource {
5506
5591
  * implementations, e.g. to get platform state from an ignored
5507
5592
  * child widget, as is the case for {@link Gtk.Text} wrappers.
5508
5593
  * @param state platform state to query
5594
+ * @since 4.10
5509
5595
  * @virtual
5510
5596
  */
5511
5597
  vfunc_get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
@@ -6244,6 +6330,7 @@ export namespace GtkSource {
6244
6330
  * does not interrupts the user's current screen reader output.
6245
6331
  * @param message the string to announce
6246
6332
  * @param priority the priority of the announcement
6333
+ * @since 4.14
6247
6334
  */
6248
6335
  announce(message: string, priority: Gtk.AccessibleAnnouncementPriority): void;
6249
6336
 
@@ -6256,6 +6343,7 @@ export namespace GtkSource {
6256
6343
  * It is left to the accessible implementation to define the scope
6257
6344
  * and uniqueness of the identifier.
6258
6345
  * @returns the accessible identifier
6346
+ * @since 4.22
6259
6347
  */
6260
6348
  get_accessible_id(): string | null;
6261
6349
 
@@ -6264,6 +6352,7 @@ export namespace GtkSource {
6264
6352
  *
6265
6353
  * This function returns `NULL` for top level widgets.
6266
6354
  * @returns the accessible parent
6355
+ * @since 4.10
6267
6356
  */
6268
6357
  get_accessible_parent(): Gtk.Accessible | null;
6269
6358
 
@@ -6276,6 +6365,7 @@ export namespace GtkSource {
6276
6365
  /**
6277
6366
  * Retrieves the implementation for the given accessible object.
6278
6367
  * @returns the accessible implementation object
6368
+ * @since 4.10
6279
6369
  */
6280
6370
  get_at_context(): Gtk.ATContext;
6281
6371
 
@@ -6286,18 +6376,21 @@ export namespace GtkSource {
6286
6376
  * implementations, e.g. to get the bounds from an ignored
6287
6377
  * child widget.
6288
6378
  * @returns true if the bounds are valid, and false otherwise
6379
+ * @since 4.10
6289
6380
  */
6290
6381
  get_bounds(): [boolean, number, number, number, number];
6291
6382
 
6292
6383
  /**
6293
6384
  * Retrieves the first accessible child of an accessible object.
6294
6385
  * @returns the first accessible child
6386
+ * @since 4.10
6295
6387
  */
6296
6388
  get_first_accessible_child(): Gtk.Accessible | null;
6297
6389
 
6298
6390
  /**
6299
6391
  * Retrieves the next accessible sibling of an accessible object
6300
6392
  * @returns the next accessible sibling
6393
+ * @since 4.10
6301
6394
  */
6302
6395
  get_next_accessible_sibling(): Gtk.Accessible | null;
6303
6396
 
@@ -6309,6 +6402,7 @@ export namespace GtkSource {
6309
6402
  * child widget, as is the case for {@link Gtk.Text} wrappers.
6310
6403
  * @param state platform state to query
6311
6404
  * @returns the value of state for the accessible
6405
+ * @since 4.10
6312
6406
  */
6313
6407
  get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
6314
6408
 
@@ -6342,6 +6436,7 @@ export namespace GtkSource {
6342
6436
  * object is the container widget.
6343
6437
  * @param parent the parent accessible object
6344
6438
  * @param next_sibling the sibling accessible object
6439
+ * @since 4.10
6345
6440
  */
6346
6441
  set_accessible_parent(parent: Gtk.Accessible | null, next_sibling: Gtk.Accessible | null): void;
6347
6442
 
@@ -6351,6 +6446,7 @@ export namespace GtkSource {
6351
6446
  * That might be useful when a new child of a custom accessible
6352
6447
  * is created, and it needs to be linked to a previous child.
6353
6448
  * @param new_sibling the new next accessible sibling to set
6449
+ * @since 4.10
6354
6450
  */
6355
6451
  update_next_accessible_sibling(new_sibling: Gtk.Accessible | null): void;
6356
6452
 
@@ -6361,6 +6457,7 @@ export namespace GtkSource {
6361
6457
  * have a platform state but are not widgets. Widgets handle platform
6362
6458
  * states automatically.
6363
6459
  * @param state the platform state to update
6460
+ * @since 4.18
6364
6461
  */
6365
6462
  update_platform_state(state: Gtk.AccessiblePlatformState): void;
6366
6463
 
@@ -6408,6 +6505,7 @@ export namespace GtkSource {
6408
6505
  *
6409
6506
  * It is left to the accessible implementation to define the scope
6410
6507
  * and uniqueness of the identifier.
6508
+ * @since 4.22
6411
6509
  * @virtual
6412
6510
  */
6413
6511
  vfunc_get_accessible_id(): string | null;
@@ -6416,12 +6514,14 @@ export namespace GtkSource {
6416
6514
  * Retrieves the accessible parent for an accessible object.
6417
6515
  *
6418
6516
  * This function returns `NULL` for top level widgets.
6517
+ * @since 4.10
6419
6518
  * @virtual
6420
6519
  */
6421
6520
  vfunc_get_accessible_parent(): Gtk.Accessible | null;
6422
6521
 
6423
6522
  /**
6424
6523
  * Retrieves the implementation for the given accessible object.
6524
+ * @since 4.10
6425
6525
  * @virtual
6426
6526
  */
6427
6527
  vfunc_get_at_context(): Gtk.ATContext | null;
@@ -6432,18 +6532,21 @@ export namespace GtkSource {
6432
6532
  * This functionality can be overridden by {@link Gtk.Accessible}
6433
6533
  * implementations, e.g. to get the bounds from an ignored
6434
6534
  * child widget.
6535
+ * @since 4.10
6435
6536
  * @virtual
6436
6537
  */
6437
6538
  vfunc_get_bounds(): [boolean, number, number, number, number];
6438
6539
 
6439
6540
  /**
6440
6541
  * Retrieves the first accessible child of an accessible object.
6542
+ * @since 4.10
6441
6543
  * @virtual
6442
6544
  */
6443
6545
  vfunc_get_first_accessible_child(): Gtk.Accessible | null;
6444
6546
 
6445
6547
  /**
6446
6548
  * Retrieves the next accessible sibling of an accessible object
6549
+ * @since 4.10
6447
6550
  * @virtual
6448
6551
  */
6449
6552
  vfunc_get_next_accessible_sibling(): Gtk.Accessible | null;
@@ -6455,6 +6558,7 @@ export namespace GtkSource {
6455
6558
  * implementations, e.g. to get platform state from an ignored
6456
6559
  * child widget, as is the case for {@link Gtk.Text} wrappers.
6457
6560
  * @param state platform state to query
6561
+ * @since 4.10
6458
6562
  * @virtual
6459
6563
  */
6460
6564
  vfunc_get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
@@ -6817,6 +6921,7 @@ export namespace GtkSource {
6817
6921
  *
6818
6922
  * See {@link LanguageManager.set_search_path} for details.
6819
6923
  * @param path a directory or a filename.
6924
+ * @since 5.4
6820
6925
  */
6821
6926
  append_search_path(path: string): void;
6822
6927
 
@@ -6904,6 +7009,7 @@ export namespace GtkSource {
6904
7009
  *
6905
7010
  * See {@link LanguageManager.set_search_path} for details.
6906
7011
  * @param path a directory or a filename.
7012
+ * @since 5.4
6907
7013
  */
6908
7014
  prepend_search_path(path: string): void;
6909
7015
 
@@ -7215,14 +7321,14 @@ export namespace GtkSource {
7215
7321
  * @signal
7216
7322
  * @run-last
7217
7323
  */
7218
- "query-tooltip-markup": (arg0: Mark) => string;
7324
+ "query-tooltip-markup": (mark: Mark) => string;
7219
7325
  /**
7220
7326
  * The code should connect to this signal to provide a tooltip for given
7221
7327
  * `mark`. The tooltip should be just a plain text.
7222
7328
  * @signal
7223
7329
  * @run-last
7224
7330
  */
7225
- "query-tooltip-text": (arg0: Mark) => string;
7331
+ "query-tooltip-text": (mark: Mark) => string;
7226
7332
  "notify::background": (pspec: GObject.ParamSpec) => void;
7227
7333
  "notify::gicon": (pspec: GObject.ParamSpec) => void;
7228
7334
  "notify::icon-name": (pspec: GObject.ParamSpec) => void;
@@ -7986,6 +8092,7 @@ export namespace GtkSource {
7986
8092
  * Specifies a tag whose style should be ignored when compositing the
7987
8093
  * document to the printable page.
7988
8094
  * @param tag a {@link Gtk.TextTag}
8095
+ * @since 5.2
7989
8096
  */
7990
8097
  ignore_tag(tag: Gtk.TextTag): void;
7991
8098
 
@@ -8740,6 +8847,7 @@ export namespace GtkSource {
8740
8847
  * details.
8741
8848
  * @param result a {@link Gio.AsyncResult}.
8742
8849
  * @returns whether a match was found.
8850
+ * @throws GLib.Error
8743
8851
  */
8744
8852
  backward_finish(result: Gio.AsyncResult): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
8745
8853
 
@@ -8808,6 +8916,7 @@ export namespace GtkSource {
8808
8916
  * details.
8809
8917
  * @param result a {@link Gio.AsyncResult}.
8810
8918
  * @returns whether a match was found.
8919
+ * @throws GLib.Error
8811
8920
  */
8812
8921
  forward_finish(result: Gio.AsyncResult): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
8813
8922
 
@@ -8879,6 +8988,7 @@ export namespace GtkSource {
8879
8988
  * @param replace the replacement text.
8880
8989
  * @param replace_length the length of `replace` in bytes, or -1.
8881
8990
  * @returns whether the match has been replaced.
8991
+ * @throws GLib.Error
8882
8992
  */
8883
8993
  replace(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string, replace_length: number): boolean;
8884
8994
 
@@ -8893,6 +9003,7 @@ export namespace GtkSource {
8893
9003
  * @param replace the replacement text.
8894
9004
  * @param replace_length the length of `replace` in bytes, or -1.
8895
9005
  * @returns the number of replaced matches.
9006
+ * @throws GLib.Error
8896
9007
  */
8897
9008
  replace_all(replace: string, replace_length: number): number;
8898
9009
 
@@ -9113,6 +9224,7 @@ export namespace GtkSource {
9113
9224
 
9114
9225
  /**
9115
9226
  * @returns whether to exclude invisible text from the search.
9227
+ * @since 5.12
9116
9228
  */
9117
9229
  get_visible_only(): boolean;
9118
9230
 
@@ -9168,6 +9280,7 @@ export namespace GtkSource {
9168
9280
  * If enabled, only visible text will be searched.
9169
9281
  * A search match may have invisible text interspersed.
9170
9282
  * @param visible_only the setting.
9283
+ * @since 5.12
9171
9284
  */
9172
9285
  set_visible_only(visible_only: boolean): void;
9173
9286
 
@@ -9854,6 +9967,7 @@ export namespace GtkSource {
9854
9967
  * This can be used to get an unfiltered list of all of the snippets
9855
9968
  * known to the snippet manager.
9856
9969
  * @returns a {@link Gio.ListModel} of {@link GtkSource.Snippet}
9970
+ * @since 5.6
9857
9971
  */
9858
9972
  list_all(): Gio.ListModel;
9859
9973
 
@@ -10560,6 +10674,7 @@ export namespace GtkSource {
10560
10674
  * Gets a metadata property from the style scheme.
10561
10675
  * @param name metadata property name.
10562
10676
  * @returns value of property `name` stored in the metadata of `scheme` or `null` if `scheme` does not contain the specified metadata property.
10677
+ * @since 5.4
10563
10678
  */
10564
10679
  get_metadata(name: string): string | null;
10565
10680
 
@@ -11007,6 +11122,7 @@ export namespace GtkSource {
11007
11122
  * does not interrupts the user's current screen reader output.
11008
11123
  * @param message the string to announce
11009
11124
  * @param priority the priority of the announcement
11125
+ * @since 4.14
11010
11126
  */
11011
11127
  announce(message: string, priority: Gtk.AccessibleAnnouncementPriority): void;
11012
11128
 
@@ -11019,6 +11135,7 @@ export namespace GtkSource {
11019
11135
  * It is left to the accessible implementation to define the scope
11020
11136
  * and uniqueness of the identifier.
11021
11137
  * @returns the accessible identifier
11138
+ * @since 4.22
11022
11139
  */
11023
11140
  get_accessible_id(): string | null;
11024
11141
 
@@ -11027,6 +11144,7 @@ export namespace GtkSource {
11027
11144
  *
11028
11145
  * This function returns `NULL` for top level widgets.
11029
11146
  * @returns the accessible parent
11147
+ * @since 4.10
11030
11148
  */
11031
11149
  get_accessible_parent(): Gtk.Accessible | null;
11032
11150
 
@@ -11039,6 +11157,7 @@ export namespace GtkSource {
11039
11157
  /**
11040
11158
  * Retrieves the implementation for the given accessible object.
11041
11159
  * @returns the accessible implementation object
11160
+ * @since 4.10
11042
11161
  */
11043
11162
  get_at_context(): Gtk.ATContext;
11044
11163
 
@@ -11049,18 +11168,21 @@ export namespace GtkSource {
11049
11168
  * implementations, e.g. to get the bounds from an ignored
11050
11169
  * child widget.
11051
11170
  * @returns true if the bounds are valid, and false otherwise
11171
+ * @since 4.10
11052
11172
  */
11053
11173
  get_bounds(): [boolean, number, number, number, number];
11054
11174
 
11055
11175
  /**
11056
11176
  * Retrieves the first accessible child of an accessible object.
11057
11177
  * @returns the first accessible child
11178
+ * @since 4.10
11058
11179
  */
11059
11180
  get_first_accessible_child(): Gtk.Accessible | null;
11060
11181
 
11061
11182
  /**
11062
11183
  * Retrieves the next accessible sibling of an accessible object
11063
11184
  * @returns the next accessible sibling
11185
+ * @since 4.10
11064
11186
  */
11065
11187
  get_next_accessible_sibling(): Gtk.Accessible | null;
11066
11188
 
@@ -11072,6 +11194,7 @@ export namespace GtkSource {
11072
11194
  * child widget, as is the case for {@link Gtk.Text} wrappers.
11073
11195
  * @param state platform state to query
11074
11196
  * @returns the value of state for the accessible
11197
+ * @since 4.10
11075
11198
  */
11076
11199
  get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
11077
11200
 
@@ -11105,6 +11228,7 @@ export namespace GtkSource {
11105
11228
  * object is the container widget.
11106
11229
  * @param parent the parent accessible object
11107
11230
  * @param next_sibling the sibling accessible object
11231
+ * @since 4.10
11108
11232
  */
11109
11233
  set_accessible_parent(parent: Gtk.Accessible | null, next_sibling: Gtk.Accessible | null): void;
11110
11234
 
@@ -11114,6 +11238,7 @@ export namespace GtkSource {
11114
11238
  * That might be useful when a new child of a custom accessible
11115
11239
  * is created, and it needs to be linked to a previous child.
11116
11240
  * @param new_sibling the new next accessible sibling to set
11241
+ * @since 4.10
11117
11242
  */
11118
11243
  update_next_accessible_sibling(new_sibling: Gtk.Accessible | null): void;
11119
11244
 
@@ -11124,6 +11249,7 @@ export namespace GtkSource {
11124
11249
  * have a platform state but are not widgets. Widgets handle platform
11125
11250
  * states automatically.
11126
11251
  * @param state the platform state to update
11252
+ * @since 4.18
11127
11253
  */
11128
11254
  update_platform_state(state: Gtk.AccessiblePlatformState): void;
11129
11255
 
@@ -11171,6 +11297,7 @@ export namespace GtkSource {
11171
11297
  *
11172
11298
  * It is left to the accessible implementation to define the scope
11173
11299
  * and uniqueness of the identifier.
11300
+ * @since 4.22
11174
11301
  * @virtual
11175
11302
  */
11176
11303
  vfunc_get_accessible_id(): string | null;
@@ -11179,12 +11306,14 @@ export namespace GtkSource {
11179
11306
  * Retrieves the accessible parent for an accessible object.
11180
11307
  *
11181
11308
  * This function returns `NULL` for top level widgets.
11309
+ * @since 4.10
11182
11310
  * @virtual
11183
11311
  */
11184
11312
  vfunc_get_accessible_parent(): Gtk.Accessible | null;
11185
11313
 
11186
11314
  /**
11187
11315
  * Retrieves the implementation for the given accessible object.
11316
+ * @since 4.10
11188
11317
  * @virtual
11189
11318
  */
11190
11319
  vfunc_get_at_context(): Gtk.ATContext | null;
@@ -11195,18 +11324,21 @@ export namespace GtkSource {
11195
11324
  * This functionality can be overridden by {@link Gtk.Accessible}
11196
11325
  * implementations, e.g. to get the bounds from an ignored
11197
11326
  * child widget.
11327
+ * @since 4.10
11198
11328
  * @virtual
11199
11329
  */
11200
11330
  vfunc_get_bounds(): [boolean, number, number, number, number];
11201
11331
 
11202
11332
  /**
11203
11333
  * Retrieves the first accessible child of an accessible object.
11334
+ * @since 4.10
11204
11335
  * @virtual
11205
11336
  */
11206
11337
  vfunc_get_first_accessible_child(): Gtk.Accessible | null;
11207
11338
 
11208
11339
  /**
11209
11340
  * Retrieves the next accessible sibling of an accessible object
11341
+ * @since 4.10
11210
11342
  * @virtual
11211
11343
  */
11212
11344
  vfunc_get_next_accessible_sibling(): Gtk.Accessible | null;
@@ -11218,6 +11350,7 @@ export namespace GtkSource {
11218
11350
  * implementations, e.g. to get platform state from an ignored
11219
11351
  * child widget, as is the case for {@link Gtk.Text} wrappers.
11220
11352
  * @param state platform state to query
11353
+ * @since 4.10
11221
11354
  * @virtual
11222
11355
  */
11223
11356
  vfunc_get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
@@ -11600,6 +11733,7 @@ export namespace GtkSource {
11600
11733
  /**
11601
11734
  * Gets the {@link GtkSource.StyleScheme} previewed by the widget.
11602
11735
  * @returns a {@link GtkSource.StyleScheme}
11736
+ * @since 5.4
11603
11737
  */
11604
11738
  get_scheme(): StyleScheme;
11605
11739
 
@@ -11672,6 +11806,7 @@ export namespace GtkSource {
11672
11806
  * does not interrupts the user's current screen reader output.
11673
11807
  * @param message the string to announce
11674
11808
  * @param priority the priority of the announcement
11809
+ * @since 4.14
11675
11810
  */
11676
11811
  announce(message: string, priority: Gtk.AccessibleAnnouncementPriority): void;
11677
11812
 
@@ -11684,6 +11819,7 @@ export namespace GtkSource {
11684
11819
  * It is left to the accessible implementation to define the scope
11685
11820
  * and uniqueness of the identifier.
11686
11821
  * @returns the accessible identifier
11822
+ * @since 4.22
11687
11823
  */
11688
11824
  get_accessible_id(): string | null;
11689
11825
 
@@ -11692,6 +11828,7 @@ export namespace GtkSource {
11692
11828
  *
11693
11829
  * This function returns `NULL` for top level widgets.
11694
11830
  * @returns the accessible parent
11831
+ * @since 4.10
11695
11832
  */
11696
11833
  get_accessible_parent(): Gtk.Accessible | null;
11697
11834
 
@@ -11704,6 +11841,7 @@ export namespace GtkSource {
11704
11841
  /**
11705
11842
  * Retrieves the implementation for the given accessible object.
11706
11843
  * @returns the accessible implementation object
11844
+ * @since 4.10
11707
11845
  */
11708
11846
  get_at_context(): Gtk.ATContext;
11709
11847
 
@@ -11714,18 +11852,21 @@ export namespace GtkSource {
11714
11852
  * implementations, e.g. to get the bounds from an ignored
11715
11853
  * child widget.
11716
11854
  * @returns true if the bounds are valid, and false otherwise
11855
+ * @since 4.10
11717
11856
  */
11718
11857
  get_bounds(): [boolean, number, number, number, number];
11719
11858
 
11720
11859
  /**
11721
11860
  * Retrieves the first accessible child of an accessible object.
11722
11861
  * @returns the first accessible child
11862
+ * @since 4.10
11723
11863
  */
11724
11864
  get_first_accessible_child(): Gtk.Accessible | null;
11725
11865
 
11726
11866
  /**
11727
11867
  * Retrieves the next accessible sibling of an accessible object
11728
11868
  * @returns the next accessible sibling
11869
+ * @since 4.10
11729
11870
  */
11730
11871
  get_next_accessible_sibling(): Gtk.Accessible | null;
11731
11872
 
@@ -11737,6 +11878,7 @@ export namespace GtkSource {
11737
11878
  * child widget, as is the case for {@link Gtk.Text} wrappers.
11738
11879
  * @param state platform state to query
11739
11880
  * @returns the value of state for the accessible
11881
+ * @since 4.10
11740
11882
  */
11741
11883
  get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
11742
11884
 
@@ -11770,6 +11912,7 @@ export namespace GtkSource {
11770
11912
  * object is the container widget.
11771
11913
  * @param parent the parent accessible object
11772
11914
  * @param next_sibling the sibling accessible object
11915
+ * @since 4.10
11773
11916
  */
11774
11917
  set_accessible_parent(parent: Gtk.Accessible | null, next_sibling: Gtk.Accessible | null): void;
11775
11918
 
@@ -11779,6 +11922,7 @@ export namespace GtkSource {
11779
11922
  * That might be useful when a new child of a custom accessible
11780
11923
  * is created, and it needs to be linked to a previous child.
11781
11924
  * @param new_sibling the new next accessible sibling to set
11925
+ * @since 4.10
11782
11926
  */
11783
11927
  update_next_accessible_sibling(new_sibling: Gtk.Accessible | null): void;
11784
11928
 
@@ -11789,6 +11933,7 @@ export namespace GtkSource {
11789
11933
  * have a platform state but are not widgets. Widgets handle platform
11790
11934
  * states automatically.
11791
11935
  * @param state the platform state to update
11936
+ * @since 4.18
11792
11937
  */
11793
11938
  update_platform_state(state: Gtk.AccessiblePlatformState): void;
11794
11939
 
@@ -11836,6 +11981,7 @@ export namespace GtkSource {
11836
11981
  *
11837
11982
  * It is left to the accessible implementation to define the scope
11838
11983
  * and uniqueness of the identifier.
11984
+ * @since 4.22
11839
11985
  * @virtual
11840
11986
  */
11841
11987
  vfunc_get_accessible_id(): string | null;
@@ -11844,12 +11990,14 @@ export namespace GtkSource {
11844
11990
  * Retrieves the accessible parent for an accessible object.
11845
11991
  *
11846
11992
  * This function returns `NULL` for top level widgets.
11993
+ * @since 4.10
11847
11994
  * @virtual
11848
11995
  */
11849
11996
  vfunc_get_accessible_parent(): Gtk.Accessible | null;
11850
11997
 
11851
11998
  /**
11852
11999
  * Retrieves the implementation for the given accessible object.
12000
+ * @since 4.10
11853
12001
  * @virtual
11854
12002
  */
11855
12003
  vfunc_get_at_context(): Gtk.ATContext | null;
@@ -11860,18 +12008,21 @@ export namespace GtkSource {
11860
12008
  * This functionality can be overridden by {@link Gtk.Accessible}
11861
12009
  * implementations, e.g. to get the bounds from an ignored
11862
12010
  * child widget.
12011
+ * @since 4.10
11863
12012
  * @virtual
11864
12013
  */
11865
12014
  vfunc_get_bounds(): [boolean, number, number, number, number];
11866
12015
 
11867
12016
  /**
11868
12017
  * Retrieves the first accessible child of an accessible object.
12018
+ * @since 4.10
11869
12019
  * @virtual
11870
12020
  */
11871
12021
  vfunc_get_first_accessible_child(): Gtk.Accessible | null;
11872
12022
 
11873
12023
  /**
11874
12024
  * Retrieves the next accessible sibling of an accessible object
12025
+ * @since 4.10
11875
12026
  * @virtual
11876
12027
  */
11877
12028
  vfunc_get_next_accessible_sibling(): Gtk.Accessible | null;
@@ -11883,6 +12034,7 @@ export namespace GtkSource {
11883
12034
  * implementations, e.g. to get platform state from an ignored
11884
12035
  * child widget, as is the case for {@link Gtk.Text} wrappers.
11885
12036
  * @param state platform state to query
12037
+ * @since 4.10
11886
12038
  * @virtual
11887
12039
  */
11888
12040
  vfunc_get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
@@ -12306,14 +12458,14 @@ export namespace GtkSource {
12306
12458
  * @action
12307
12459
  * @run-last
12308
12460
  */
12309
- "change-case": (arg0: ChangeCaseType) => void;
12461
+ "change-case": (case_type: ChangeCaseType) => void;
12310
12462
  /**
12311
12463
  * Keybinding signal to edit a number at the current cursor position.
12312
12464
  * @signal
12313
12465
  * @action
12314
12466
  * @run-last
12315
12467
  */
12316
- "change-number": (arg0: number) => void;
12468
+ "change-number": (count: number) => void;
12317
12469
  /**
12318
12470
  * Keybinding signal to join the lines currently selected.
12319
12471
  * @signal
@@ -12329,7 +12481,7 @@ export namespace GtkSource {
12329
12481
  * @signal
12330
12482
  * @run-last
12331
12483
  */
12332
- "line-mark-activated": (arg0: Gtk.TextIter, arg1: number, arg2: Gdk.ModifierType, arg3: number) => void;
12484
+ "line-mark-activated": (iter: Gtk.TextIter, button: number, state: Gdk.ModifierType, n_presses: number) => void;
12333
12485
  /**
12334
12486
  * The signal is a keybinding which gets emitted when the user initiates moving a line.
12335
12487
  *
@@ -12339,14 +12491,14 @@ export namespace GtkSource {
12339
12491
  * @action
12340
12492
  * @run-last
12341
12493
  */
12342
- "move-lines": (arg0: boolean) => void;
12494
+ "move-lines": (down: boolean) => void;
12343
12495
  /**
12344
12496
  * Keybinding signal to move the cursor to the matching bracket.
12345
12497
  * @signal
12346
12498
  * @action
12347
12499
  * @run-last
12348
12500
  */
12349
- "move-to-matching-bracket": (arg0: boolean) => void;
12501
+ "move-to-matching-bracket": (extend_selection: boolean) => void;
12350
12502
  /**
12351
12503
  * The signal is a keybinding which gets emitted when the user initiates moving a word.
12352
12504
  *
@@ -12356,7 +12508,7 @@ export namespace GtkSource {
12356
12508
  * @action
12357
12509
  * @run-last
12358
12510
  */
12359
- "move-words": (arg0: number) => void;
12511
+ "move-words": (count: number) => void;
12360
12512
  /**
12361
12513
  * The signal is emitted to insert a new snippet into the view.
12362
12514
  *
@@ -12366,7 +12518,7 @@ export namespace GtkSource {
12366
12518
  * @signal
12367
12519
  * @run-last
12368
12520
  */
12369
- "push-snippet": (arg0: Snippet, arg1: Gtk.TextIter) => void;
12521
+ "push-snippet": (snippet: Snippet, location: Gtk.TextIter) => void;
12370
12522
  /**
12371
12523
  * The signal is a key binding signal which gets
12372
12524
  * emitted when the user requests a completion, by pressing
@@ -12393,7 +12545,7 @@ export namespace GtkSource {
12393
12545
  * @signal
12394
12546
  * @run-last
12395
12547
  */
12396
- "smart-home-end": (arg0: Gtk.TextIter, arg1: number) => void;
12548
+ "smart-home-end": (iter: Gtk.TextIter, count: number) => void;
12397
12549
  "notify::annotations": (pspec: GObject.ParamSpec) => void;
12398
12550
  "notify::auto-indent": (pspec: GObject.ParamSpec) => void;
12399
12551
  "notify::background-pattern": (pspec: GObject.ParamSpec) => void;
@@ -12890,6 +13042,7 @@ export namespace GtkSource {
12890
13042
  * The returned object is guaranteed to be the same for the lifetime of `view`.
12891
13043
  * Each {@link View} object has a different {@link Annotations}.
12892
13044
  * @returns the {@link GtkSource.Annotations} associated with `view`.
13045
+ * @since 5.18
12893
13046
  */
12894
13047
  get_annotations(): Annotations;
12895
13048
 
@@ -13277,6 +13430,7 @@ export namespace GtkSource {
13277
13430
  * Implementations of the {@link Gtk.AccessibleText} interface should call this
13278
13431
  * function every time the caret has moved, in order to notify assistive
13279
13432
  * technologies.
13433
+ * @since 4.14
13280
13434
  */
13281
13435
  update_caret_position(): void;
13282
13436
 
@@ -13293,6 +13447,7 @@ export namespace GtkSource {
13293
13447
  * @param change the type of change in the contents
13294
13448
  * @param start the starting offset of the change, in characters
13295
13449
  * @param end the end offset of the change, in characters
13450
+ * @since 4.14
13296
13451
  */
13297
13452
  update_contents(change: Gtk.AccessibleTextContentChange, start: number, end: number): void;
13298
13453
 
@@ -13302,6 +13457,7 @@ export namespace GtkSource {
13302
13457
  * Implementations of the {@link Gtk.AccessibleText} interface should call this
13303
13458
  * function every time the selection has moved, in order to notify assistive
13304
13459
  * technologies.
13460
+ * @since 4.14
13305
13461
  */
13306
13462
  update_selection_bound(): void;
13307
13463
 
@@ -13324,12 +13480,14 @@ export namespace GtkSource {
13324
13480
  * greater than or equal to one, `ranges` will be set to a newly
13325
13481
  * allocated array of [struct#Gtk.AccessibleTextRange].
13326
13482
  * @param offset the offset, in characters
13483
+ * @since 4.14
13327
13484
  * @virtual
13328
13485
  */
13329
13486
  vfunc_get_attributes(offset: number): [boolean, Gtk.AccessibleTextRange[] | null, string[] | null, string[] | null];
13330
13487
 
13331
13488
  /**
13332
13489
  * Retrieves the position of the caret inside the accessible object.
13490
+ * @since 4.14
13333
13491
  * @virtual
13334
13492
  */
13335
13493
  vfunc_get_caret_position(): number;
@@ -13342,6 +13500,7 @@ export namespace GtkSource {
13342
13500
  * of the accessible object.
13343
13501
  * @param start the beginning of the range, in characters
13344
13502
  * @param end the end of the range, in characters
13503
+ * @since 4.14
13345
13504
  * @virtual
13346
13505
  */
13347
13506
  vfunc_get_contents(start: number, end: number): GLib.Bytes | Uint8Array;
@@ -13353,6 +13512,7 @@ export namespace GtkSource {
13353
13512
  * The `start` and `end` values contain the boundaries of the text.
13354
13513
  * @param offset the offset, in characters
13355
13514
  * @param granularity the granularity of the query
13515
+ * @since 4.14
13356
13516
  * @virtual
13357
13517
  */
13358
13518
  vfunc_get_contents_at(offset: number, granularity: Gtk.AccessibleTextGranularity): [GLib.Bytes | Uint8Array, number, number];
@@ -13370,6 +13530,7 @@ export namespace GtkSource {
13370
13530
  *
13371
13531
  * GTK provides support for various text attribute names and values, but
13372
13532
  * implementations of this interface are free to add their own attributes.
13533
+ * @since 4.14
13373
13534
  * @virtual
13374
13535
  */
13375
13536
  vfunc_get_default_attributes(): [string[] | null, string[] | null];
@@ -13379,6 +13540,7 @@ export namespace GtkSource {
13379
13540
  * @param start the start offset, in characters
13380
13541
  * @param end the end offset, in characters, `extents` (out caller-allocates): return location for the extents
13381
13542
  * @param extents
13543
+ * @since 4.16
13382
13544
  * @virtual
13383
13545
  */
13384
13546
  vfunc_get_extents(start: number, end: number, extents: Graphene.Rect): boolean;
@@ -13386,6 +13548,7 @@ export namespace GtkSource {
13386
13548
  /**
13387
13549
  * Gets the text offset at a given point.
13388
13550
  * @param point a point in widget coordinates of `self`
13551
+ * @since 4.16
13389
13552
  * @virtual
13390
13553
  */
13391
13554
  vfunc_get_offset(point: Graphene.Point): [boolean, number];
@@ -13396,6 +13559,7 @@ export namespace GtkSource {
13396
13559
  * If this function returns true, `n_ranges` will be set to a value
13397
13560
  * greater than or equal to one, and `ranges` will be set to a newly
13398
13561
  * allocated array of [struct#Gtk.AccessibleTextRange].
13562
+ * @since 4.14
13399
13563
  * @virtual
13400
13564
  */
13401
13565
  vfunc_get_selection(): [boolean, Gtk.AccessibleTextRange[] | null];
@@ -13403,6 +13567,7 @@ export namespace GtkSource {
13403
13567
  /**
13404
13568
  * Sets the caret position.
13405
13569
  * @param offset the text offset in characters
13570
+ * @since 4.22
13406
13571
  * @virtual
13407
13572
  */
13408
13573
  vfunc_set_caret_position(offset: number): boolean;
@@ -13411,6 +13576,7 @@ export namespace GtkSource {
13411
13576
  * Sets the caret position.
13412
13577
  * @param i the selection to set
13413
13578
  * @param range the range to set the selection to
13579
+ * @since 4.22
13414
13580
  * @virtual
13415
13581
  */
13416
13582
  vfunc_set_selection(i: number, range: Gtk.AccessibleTextRange): boolean;
@@ -13507,7 +13673,7 @@ export namespace GtkSource {
13507
13673
  * @since 5.4
13508
13674
  * @run-last
13509
13675
  */
13510
- edit: (arg0: View, arg1: string | null) => void;
13676
+ edit: (view: View, path: string | null) => void;
13511
13677
  /**
13512
13678
  * The signal is emitted when a command should be
13513
13679
  * executed. This might be something like `:wq` or `:e <path>`.
@@ -13518,7 +13684,7 @@ export namespace GtkSource {
13518
13684
  * @since 5.4
13519
13685
  * @run-last
13520
13686
  */
13521
- "execute-command": (arg0: string) => boolean | void;
13687
+ "execute-command": (command: string) => boolean | void;
13522
13688
  /**
13523
13689
  * Requests that the application format the text between
13524
13690
  * `begin` and `end`.
@@ -13526,7 +13692,7 @@ export namespace GtkSource {
13526
13692
  * @since 5.4
13527
13693
  * @run-last
13528
13694
  */
13529
- "format-text": (arg0: Gtk.TextIter, arg1: Gtk.TextIter) => void;
13695
+ "format-text": (begin: Gtk.TextIter, end: Gtk.TextIter) => void;
13530
13696
  /**
13531
13697
  * Requests the application save the file.
13532
13698
  *
@@ -13536,7 +13702,7 @@ export namespace GtkSource {
13536
13702
  * @since 5.4
13537
13703
  * @run-last
13538
13704
  */
13539
- write: (arg0: View, arg1: string | null) => void;
13705
+ write: (view: View, path: string | null) => void;
13540
13706
  "notify::command-bar-text": (pspec: GObject.ParamSpec) => void;
13541
13707
  "notify::command-text": (pspec: GObject.ParamSpec) => void;
13542
13708
  "notify::input-hints": (pspec: GObject.ParamSpec) => void;
@@ -13690,18 +13856,21 @@ export namespace GtkSource {
13690
13856
  * user except that this does not emit the
13691
13857
  * `GtkSource.VimIMContext::execute-command` signal.
13692
13858
  * @param command the command text
13859
+ * @since 5.4
13693
13860
  */
13694
13861
  execute_command(command: string): void;
13695
13862
 
13696
13863
  /**
13697
13864
  * Gets the current command-bar text as it is entered by the user.
13698
13865
  * @returns A string containing the command-bar text
13866
+ * @since 5.4
13699
13867
  */
13700
13868
  get_command_bar_text(): string;
13701
13869
 
13702
13870
  /**
13703
13871
  * Gets the current command text as it is entered by the user.
13704
13872
  * @returns A string containing the command text
13873
+ * @since 5.4
13705
13874
  */
13706
13875
  get_command_text(): string;
13707
13876
  }
@@ -14068,6 +14237,7 @@ export namespace GtkSource {
14068
14237
  *
14069
14238
  * Implementing this virtual-function is optional, but can be useful to allow
14070
14239
  * external tooling to compare results.
14240
+ * @since 5.6
14071
14241
  * @virtual
14072
14242
  */
14073
14243
  vfunc_get_typed_text(): string | null;
@@ -14103,6 +14273,7 @@ export namespace GtkSource {
14103
14273
  * Implementing this virtual-function is optional, but can be useful to allow
14104
14274
  * external tooling to compare results.
14105
14275
  * @returns a newly allocated string, or `null`
14276
+ * @since 5.6
14106
14277
  */
14107
14278
  get_typed_text(): string | null;
14108
14279
  }
@@ -14410,6 +14581,7 @@ export namespace GtkSource {
14410
14581
  * Completes an asynchronous operation to populate a completion provider.
14411
14582
  * @param result a {@link Gio.AsyncResult} provided to callback
14412
14583
  * @returns a {@link Gio.ListModel} of {@link GtkSource.CompletionProposal}
14584
+ * @throws GLib.Error
14413
14585
  */
14414
14586
  populate_finish(result: Gio.AsyncResult): Gio.ListModel;
14415
14587
 
@@ -14512,6 +14684,7 @@ export namespace GtkSource {
14512
14684
 
14513
14685
  /**
14514
14686
  * @param result
14687
+ * @throws GLib.Error
14515
14688
  */
14516
14689
  populate_finish(result: Gio.AsyncResult): boolean;
14517
14690
  }