@girs/gtksource-300 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.
@@ -46,20 +46,20 @@ export namespace GtkSource {
46
46
  /**
47
47
  * there is no bracket to match.
48
48
  */
49
- NONE,
49
+ NONE = 0,
50
50
  /**
51
51
  * matching a bracket
52
52
  * failed because the maximum range was reached.
53
53
  */
54
- OUT_OF_RANGE,
54
+ OUT_OF_RANGE = 1,
55
55
  /**
56
56
  * a matching bracket was not found.
57
57
  */
58
- NOT_FOUND,
58
+ NOT_FOUND = 2,
59
59
  /**
60
60
  * a matching bracket was found.
61
61
  */
62
- FOUND,
62
+ FOUND = 3,
63
63
  }
64
64
 
65
65
 
@@ -78,19 +78,19 @@ export namespace GtkSource {
78
78
  /**
79
79
  * change case to lowercase.
80
80
  */
81
- LOWER,
81
+ LOWER = 0,
82
82
  /**
83
83
  * change case to uppercase.
84
84
  */
85
- UPPER,
85
+ UPPER = 1,
86
86
  /**
87
87
  * toggle case of each character.
88
88
  */
89
- TOGGLE,
89
+ TOGGLE = 2,
90
90
  /**
91
91
  * capitalize each word.
92
92
  */
93
- TITLE,
93
+ TITLE = 3,
94
94
  }
95
95
 
96
96
 
@@ -138,11 +138,11 @@ export namespace GtkSource {
138
138
  /**
139
139
  * Plain text.
140
140
  */
141
- NONE,
141
+ NONE = 0,
142
142
  /**
143
143
  * Gzip compression.
144
144
  */
145
- GZIP,
145
+ GZIP = 1,
146
146
  }
147
147
 
148
148
 
@@ -163,11 +163,11 @@ export namespace GtkSource {
163
163
  /**
164
164
  * Keep the first occurrence.
165
165
  */
166
- FIRST,
166
+ FIRST = 0,
167
167
  /**
168
168
  * Keep the last occurrence.
169
169
  */
170
- LAST,
170
+ LAST = 1,
171
171
  }
172
172
 
173
173
 
@@ -248,15 +248,15 @@ export namespace GtkSource {
248
248
  /**
249
249
  * The full cell.
250
250
  */
251
- CELL,
251
+ CELL = 0,
252
252
  /**
253
253
  * The first line.
254
254
  */
255
- FIRST,
255
+ FIRST = 1,
256
256
  /**
257
257
  * The last line.
258
258
  */
259
- LAST,
259
+ LAST = 2,
260
260
  }
261
261
 
262
262
 
@@ -275,16 +275,16 @@ export namespace GtkSource {
275
275
  /**
276
276
  * Line feed, used on UNIX.
277
277
  */
278
- LF,
278
+ LF = 0,
279
279
  /**
280
280
  * Carriage return, used on macOS.
281
281
  */
282
- CR,
282
+ CR = 1,
283
283
  /**
284
284
  * Carriage return followed by a line feed, used
285
285
  * on Windows.
286
286
  */
287
- CR_LF,
287
+ CR_LF = 2,
288
288
  }
289
289
 
290
290
 
@@ -302,24 +302,24 @@ export namespace GtkSource {
302
302
  /**
303
303
  * smart-home-end disabled.
304
304
  */
305
- DISABLED,
305
+ DISABLED = 0,
306
306
  /**
307
307
  * move to the first/last
308
308
  * non-whitespace character on the first press of the HOME/END keys and
309
309
  * to the beginning/end of the line on the second press.
310
310
  */
311
- BEFORE,
311
+ BEFORE = 1,
312
312
  /**
313
313
  * move to the beginning/end of the
314
314
  * line on the first press of the HOME/END keys and to the first/last
315
315
  * non-whitespace character on the second press.
316
316
  */
317
- AFTER,
317
+ AFTER = 2,
318
318
  /**
319
319
  * always move to the first/last
320
320
  * non-whitespace character when the HOME/END keys are pressed.
321
321
  */
322
- ALWAYS,
322
+ ALWAYS = 3,
323
323
  }
324
324
 
325
325
 
@@ -339,21 +339,21 @@ export namespace GtkSource {
339
339
  /**
340
340
  * Light style.
341
341
  */
342
- LIGHT,
342
+ LIGHT = 0,
343
343
  /**
344
344
  * Dark style.
345
345
  */
346
- DARK,
346
+ DARK = 1,
347
347
  /**
348
348
  * Light style. Supports only a light
349
349
  * GTK theme.
350
350
  */
351
- LIGHT_ONLY,
351
+ LIGHT_ONLY = 2,
352
352
  /**
353
353
  * Dark style. Supports only a dark GTK
354
354
  * theme.
355
355
  */
356
- DARK_ONLY,
356
+ DARK_ONLY = 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
 
@@ -570,19 +570,19 @@ export namespace GtkSource {
570
570
  /**
571
571
  * None.
572
572
  */
573
- NONE,
573
+ NONE = 0,
574
574
  /**
575
575
  * Interactive activation. By
576
576
  * default, it occurs on each insertion in the {@link Gtk.TextBuffer}. This can be
577
577
  * blocked temporarily with `gtk_source_completion_block_interactive()`.
578
578
  */
579
- INTERACTIVE,
579
+ INTERACTIVE = 1,
580
580
  /**
581
581
  * User requested activation.
582
582
  * By default, it occurs when the user presses
583
583
  * <keycombo><keycap>Control</keycap><keycap>space</keycap></keycombo>.
584
584
  */
585
- USER_REQUESTED,
585
+ USER_REQUESTED = 2,
586
586
  }
587
587
 
588
588
 
@@ -602,19 +602,19 @@ export namespace GtkSource {
602
602
  /**
603
603
  * No flags.
604
604
  */
605
- NONE,
605
+ NONE = 0,
606
606
  /**
607
607
  * Ignore invalid characters.
608
608
  */
609
- IGNORE_INVALID_CHARS,
609
+ IGNORE_INVALID_CHARS = 1,
610
610
  /**
611
611
  * Save file despite external modifications.
612
612
  */
613
- IGNORE_MODIFICATION_TIME,
613
+ IGNORE_MODIFICATION_TIME = 2,
614
614
  /**
615
615
  * Create a backup before saving the file.
616
616
  */
617
- CREATE_BACKUP,
617
+ CREATE_BACKUP = 4,
618
618
  }
619
619
 
620
620
 
@@ -632,22 +632,22 @@ export namespace GtkSource {
632
632
  /**
633
633
  * normal state
634
634
  */
635
- NORMAL,
635
+ NORMAL = 0,
636
636
  /**
637
637
  * area in the renderer represents the
638
638
  * line on which the insert cursor is currently positioned
639
639
  */
640
- CURSOR,
640
+ CURSOR = 1,
641
641
  /**
642
642
  * the mouse pointer is currently
643
643
  * over the activatable area of the renderer
644
644
  */
645
- PRELIT,
645
+ PRELIT = 2,
646
646
  /**
647
647
  * area in the renderer represents
648
648
  * a line in the buffer which contains part of the selection
649
649
  */
650
- SELECTED,
650
+ SELECTED = 4,
651
651
  }
652
652
 
653
653
 
@@ -666,19 +666,19 @@ export namespace GtkSource {
666
666
  /**
667
667
  * no flags specified
668
668
  */
669
- NONE,
669
+ NONE = 0,
670
670
  /**
671
671
  * case sensitive sort
672
672
  */
673
- CASE_SENSITIVE,
673
+ CASE_SENSITIVE = 1,
674
674
  /**
675
675
  * sort in reverse order
676
676
  */
677
- REVERSE_ORDER,
677
+ REVERSE_ORDER = 2,
678
678
  /**
679
679
  * remove duplicates
680
680
  */
681
- REMOVE_DUPLICATES,
681
+ REMOVE_DUPLICATES = 4,
682
682
  }
683
683
 
684
684
 
@@ -701,24 +701,24 @@ export namespace GtkSource {
701
701
  /**
702
702
  * No flags.
703
703
  */
704
- NONE,
704
+ NONE = 0,
705
705
  /**
706
706
  * Leading white spaces on a line, i.e. the
707
707
  * indentation.
708
708
  */
709
- LEADING,
709
+ LEADING = 1,
710
710
  /**
711
711
  * White spaces inside a line of text.
712
712
  */
713
- INSIDE_TEXT,
713
+ INSIDE_TEXT = 2,
714
714
  /**
715
715
  * Trailing white spaces on a line.
716
716
  */
717
- TRAILING,
717
+ TRAILING = 4,
718
718
  /**
719
719
  * White spaces anywhere.
720
720
  */
721
- ALL,
721
+ ALL = 7,
722
722
  }
723
723
 
724
724
 
@@ -738,29 +738,29 @@ export namespace GtkSource {
738
738
  /**
739
739
  * No flags.
740
740
  */
741
- NONE,
741
+ NONE = 0,
742
742
  /**
743
743
  * Space character.
744
744
  */
745
- SPACE,
745
+ SPACE = 1,
746
746
  /**
747
747
  * Tab character.
748
748
  */
749
- TAB,
749
+ TAB = 2,
750
750
  /**
751
751
  * Line break character. If the
752
752
  * {@link GtkSource.Buffer.implicit_trailing_newline} property is `true`,
753
753
  * {@link GtkSource.SpaceDrawer} also draws a line break at the end of the buffer.
754
754
  */
755
- NEWLINE,
755
+ NEWLINE = 4,
756
756
  /**
757
757
  * Non-breaking space character.
758
758
  */
759
- NBSP,
759
+ NBSP = 8,
760
760
  /**
761
761
  * All white spaces.
762
762
  */
763
- ALL,
763
+ ALL = 15,
764
764
  }
765
765
 
766
766
 
@@ -781,7 +781,7 @@ export namespace GtkSource {
781
781
  * @since 2.12
782
782
  * @run-last
783
783
  */
784
- "bracket-matched": (arg0: Gtk.TextIter, arg1: BracketMatchType) => void;
784
+ "bracket-matched": (iter: Gtk.TextIter, state: BracketMatchType) => void;
785
785
  /**
786
786
  * The ::highlight-updated signal is emitted when the syntax
787
787
  * highlighting and [context classes][context-classes] are updated in a
@@ -789,7 +789,7 @@ export namespace GtkSource {
789
789
  * @signal
790
790
  * @run-last
791
791
  */
792
- "highlight-updated": (arg0: Gtk.TextIter, arg1: Gtk.TextIter) => void;
792
+ "highlight-updated": (start: Gtk.TextIter, end: Gtk.TextIter) => void;
793
793
  /**
794
794
  * The ::redo signal is emitted to redo the last undo operation.
795
795
  * @signal
@@ -802,7 +802,7 @@ export namespace GtkSource {
802
802
  * @signal
803
803
  * @run-last
804
804
  */
805
- "source-mark-updated": (arg0: Gtk.TextMark) => void;
805
+ "source-mark-updated": (mark: Gtk.TextMark) => void;
806
806
  /**
807
807
  * The ::undo signal is emitted to undo the last user action which
808
808
  * modified the buffer.
@@ -1002,6 +1002,7 @@ export namespace GtkSource {
1002
1002
  /**
1003
1003
  * Removes one trailing newline of `buffer` if it contains at least one.
1004
1004
  * @param buffer a {@link Gtk.TextBuffer}.
1005
+ * @since 299.7
1005
1006
  */
1006
1007
  static remove_trailing_newline(buffer: Gtk.TextBuffer): void;
1007
1008
 
@@ -1040,6 +1041,7 @@ export namespace GtkSource {
1040
1041
  * @param iter an iterator.
1041
1042
  * @param category category to search for, or `null`
1042
1043
  * @returns whether `iter` was moved.
1044
+ * @since 2.2
1043
1045
  */
1044
1046
  backward_iter_to_source_mark(iter: Gtk.TextIter, category: string | null): boolean;
1045
1047
 
@@ -1059,6 +1061,7 @@ export namespace GtkSource {
1059
1061
  * @param case_type how to change the case.
1060
1062
  * @param start a {@link Gtk.TextIter}.
1061
1063
  * @param end a {@link Gtk.TextIter}.
1064
+ * @since 3.12
1062
1065
  */
1063
1066
  change_case(case_type: ChangeCaseType, start: Gtk.TextIter, end: Gtk.TextIter): void;
1064
1067
 
@@ -1080,6 +1083,7 @@ export namespace GtkSource {
1080
1083
  * @param category a string defining the mark category.
1081
1084
  * @param where location to place the mark.
1082
1085
  * @returns a new {@link GtkSource.Mark}, owned by the buffer.
1086
+ * @since 2.2
1083
1087
  */
1084
1088
  create_source_mark(name: string | null, category: string, where: Gtk.TextIter): Mark;
1085
1089
 
@@ -1113,6 +1117,7 @@ export namespace GtkSource {
1113
1117
  * @param iter an iterator.
1114
1118
  * @param category category to search for, or `null`
1115
1119
  * @returns whether `iter` was moved.
1120
+ * @since 2.2
1116
1121
  */
1117
1122
  forward_iter_to_source_mark(iter: Gtk.TextIter, category: string | null): boolean;
1118
1123
 
@@ -1122,6 +1127,7 @@ export namespace GtkSource {
1122
1127
  * See the {@link GtkSource.Buffer} description for the list of default context classes.
1123
1128
  * @param iter a {@link Gtk.TextIter}.
1124
1129
  * @returns a new `null` terminated array of context class names. Use `g_strfreev()` to free the array if it is no longer needed.
1130
+ * @since 2.10
1125
1131
  */
1126
1132
  get_context_classes_at_iter(iter: Gtk.TextIter): string[];
1127
1133
 
@@ -1141,6 +1147,7 @@ export namespace GtkSource {
1141
1147
 
1142
1148
  /**
1143
1149
  * @returns whether the `buffer` has an implicit trailing newline.
1150
+ * @since 3.14
1144
1151
  */
1145
1152
  get_implicit_trailing_newline(): boolean;
1146
1153
 
@@ -1164,6 +1171,7 @@ export namespace GtkSource {
1164
1171
  * @param iter an iterator.
1165
1172
  * @param category category to search for, or `null`
1166
1173
  * @returns a newly allocated {@link GLib.SList}.
1174
+ * @since 2.2
1167
1175
  */
1168
1176
  get_source_marks_at_iter(iter: Gtk.TextIter, category: string | null): Mark[];
1169
1177
 
@@ -1173,6 +1181,7 @@ export namespace GtkSource {
1173
1181
  * @param line a line number.
1174
1182
  * @param category category to search for, or `null`
1175
1183
  * @returns a newly allocated {@link GLib.SList}.
1184
+ * @since 2.2
1176
1185
  */
1177
1186
  get_source_marks_at_line(line: number, category: string | null): Mark[];
1178
1187
 
@@ -1203,6 +1212,7 @@ export namespace GtkSource {
1203
1212
  * @param iter a {@link Gtk.TextIter}.
1204
1213
  * @param context_class the context class.
1205
1214
  * @returns whether we found a context class toggle before `iter`
1215
+ * @since 2.10
1206
1216
  */
1207
1217
  iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): boolean;
1208
1218
 
@@ -1217,6 +1227,7 @@ export namespace GtkSource {
1217
1227
  * @param iter a {@link Gtk.TextIter}.
1218
1228
  * @param context_class the context class.
1219
1229
  * @returns whether we found a context class toggle after `iter`
1230
+ * @since 2.10
1220
1231
  */
1221
1232
  iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): boolean;
1222
1233
 
@@ -1227,6 +1238,7 @@ export namespace GtkSource {
1227
1238
  * @param iter a {@link Gtk.TextIter}.
1228
1239
  * @param context_class class to search for.
1229
1240
  * @returns whether `iter` has the context class.
1241
+ * @since 2.10
1230
1242
  */
1231
1243
  iter_has_context_class(iter: Gtk.TextIter, context_class: string): boolean;
1232
1244
 
@@ -1234,6 +1246,7 @@ export namespace GtkSource {
1234
1246
  * Joins the lines of text between the specified iterators.
1235
1247
  * @param start a {@link Gtk.TextIter}.
1236
1248
  * @param end a {@link Gtk.TextIter}.
1249
+ * @since 3.16
1237
1250
  */
1238
1251
  join_lines(start: Gtk.TextIter, end: Gtk.TextIter): void;
1239
1252
 
@@ -1251,6 +1264,7 @@ export namespace GtkSource {
1251
1264
  * @param start a {@link Gtk.TextIter}.
1252
1265
  * @param end a {@link Gtk.TextIter}.
1253
1266
  * @param category category to search for, or `null`.
1267
+ * @since 2.2
1254
1268
  */
1255
1269
  remove_source_marks(start: Gtk.TextIter, end: Gtk.TextIter, category: string | null): void;
1256
1270
 
@@ -1294,6 +1308,7 @@ export namespace GtkSource {
1294
1308
  * content is not modified when loaded into the `buffer`, and the `buffer`'s
1295
1309
  * content is not modified when saved into a file.
1296
1310
  * @param implicit_trailing_newline the new value.
1311
+ * @since 3.14
1297
1312
  */
1298
1313
  set_implicit_trailing_newline(implicit_trailing_newline: boolean): void;
1299
1314
 
@@ -1352,6 +1367,7 @@ export namespace GtkSource {
1352
1367
  * @param end a {@link Gtk.TextIter}.
1353
1368
  * @param flags {@link GtkSource.SortFlags} specifying how the sort should behave
1354
1369
  * @param column sort considering the text starting at the given column
1370
+ * @since 3.18
1355
1371
  */
1356
1372
  sort_lines(start: Gtk.TextIter, end: Gtk.TextIter, flags: SortFlags, column: number): void;
1357
1373
 
@@ -1411,7 +1427,7 @@ export namespace GtkSource {
1411
1427
  * @action
1412
1428
  * @run-last
1413
1429
  */
1414
- "move-cursor": (arg0: Gtk.ScrollStep, arg1: number) => void;
1430
+ "move-cursor": (step: Gtk.ScrollStep, num: number) => void;
1415
1431
  /**
1416
1432
  * The {@link GtkSource.Completion.SignalSignatures.move_page | GtkSource.Completion::move-page} signal is a keybinding
1417
1433
  * signal which gets emitted when the user initiates a page
@@ -1436,7 +1452,7 @@ export namespace GtkSource {
1436
1452
  * @action
1437
1453
  * @run-last
1438
1454
  */
1439
- "move-page": (arg0: Gtk.ScrollStep, arg1: number) => void;
1455
+ "move-page": (step: Gtk.ScrollStep, num: number) => void;
1440
1456
  /**
1441
1457
  * Emitted just before starting to populate the completion with providers.
1442
1458
  * You can use this signal to add additional attributes in the context.
@@ -1444,7 +1460,7 @@ export namespace GtkSource {
1444
1460
  * @action
1445
1461
  * @run-last
1446
1462
  */
1447
- "populate-context": (arg0: CompletionContext) => void;
1463
+ "populate-context": (context: CompletionContext) => void;
1448
1464
  /**
1449
1465
  * Emitted when the completion window is shown. The default handler
1450
1466
  * will actually show the window.
@@ -1711,6 +1727,7 @@ export namespace GtkSource {
1711
1727
  * no longer need it.
1712
1728
  * @param provider a {@link GtkSource.CompletionProvider}.
1713
1729
  * @returns `true` if `provider` was successfully added, otherwise if `error` is provided, it will be set with the error and `false` is returned.
1730
+ * @throws GLib.Error
1714
1731
  */
1715
1732
  add_provider(provider: CompletionProvider): boolean;
1716
1733
 
@@ -1765,6 +1782,7 @@ export namespace GtkSource {
1765
1782
  * Remove `provider` from the completion.
1766
1783
  * @param provider a {@link GtkSource.CompletionProvider}.
1767
1784
  * @returns `true` if `provider` was successfully removed, otherwise if `error` is provided, it will be set with the error and `false` is returned.
1785
+ * @throws GLib.Error
1768
1786
  */
1769
1787
  remove_provider(provider: CompletionProvider): boolean;
1770
1788
 
@@ -2083,36 +2101,43 @@ export namespace GtkSource {
2083
2101
  // Methods
2084
2102
  /**
2085
2103
  * @param gicon the {@link Gio.Icon}, or `null`.
2104
+ * @since 3.24
2086
2105
  */
2087
2106
  set_gicon(gicon: Gio.Icon | null): void;
2088
2107
 
2089
2108
  /**
2090
2109
  * @param icon the {@link GdkPixbuf.Pixbuf}, or `null`.
2110
+ * @since 3.24
2091
2111
  */
2092
2112
  set_icon(icon: GdkPixbuf.Pixbuf | null): void;
2093
2113
 
2094
2114
  /**
2095
2115
  * @param icon_name the icon name, or `null`.
2116
+ * @since 3.24
2096
2117
  */
2097
2118
  set_icon_name(icon_name: string | null): void;
2098
2119
 
2099
2120
  /**
2100
2121
  * @param info the info, or `null`.
2122
+ * @since 3.24
2101
2123
  */
2102
2124
  set_info(info: string | null): void;
2103
2125
 
2104
2126
  /**
2105
2127
  * @param label the label, or `null`.
2128
+ * @since 3.24
2106
2129
  */
2107
2130
  set_label(label: string | null): void;
2108
2131
 
2109
2132
  /**
2110
2133
  * @param markup the markup, or `null`.
2134
+ * @since 3.24
2111
2135
  */
2112
2136
  set_markup(markup: string | null): void;
2113
2137
 
2114
2138
  /**
2115
2139
  * @param text the text, or `null`.
2140
+ * @since 3.24
2116
2141
  */
2117
2142
  set_text(text: string | null): void;
2118
2143
 
@@ -2134,6 +2159,7 @@ export namespace GtkSource {
2134
2159
 
2135
2160
  /**
2136
2161
  * @returns the {@link Gio.Icon} for the icon of `proposal`.
2162
+ * @since 3.18
2137
2163
  */
2138
2164
  get_gicon(): Gio.Icon | null;
2139
2165
 
@@ -2144,6 +2170,7 @@ export namespace GtkSource {
2144
2170
 
2145
2171
  /**
2146
2172
  * @returns the icon name of `proposal`.
2173
+ * @since 3.18
2147
2174
  */
2148
2175
  get_icon_name(): string | null;
2149
2176
 
@@ -2210,6 +2237,7 @@ export namespace GtkSource {
2210
2237
  /**
2211
2238
  * The virtual function pointer for `gtk_source_completion_proposal_get_gicon()`.
2212
2239
  * By default, `null` is returned.
2240
+ * @since 3.18
2213
2241
  * @virtual
2214
2242
  */
2215
2243
  vfunc_get_gicon(): Gio.Icon | null;
@@ -2224,6 +2252,7 @@ export namespace GtkSource {
2224
2252
  /**
2225
2253
  * The virtual function pointer for `gtk_source_completion_proposal_get_icon_name()`.
2226
2254
  * By default, `null` is returned.
2255
+ * @since 3.18
2227
2256
  * @virtual
2228
2257
  */
2229
2258
  vfunc_get_icon_name(): string | null;
@@ -2416,26 +2445,31 @@ export namespace GtkSource {
2416
2445
  *
2417
2446
  * Since this function is synchronous, it is advised to call it only on local
2418
2447
  * files. See `gtk_source_file_is_local()`.
2448
+ * @since 3.18
2419
2449
  */
2420
2450
  check_file_on_disk(): void;
2421
2451
 
2422
2452
  /**
2423
2453
  * @returns the current value of the {@link GtkSource.File.compression_type} property.
2454
+ * @since 3.14
2424
2455
  */
2425
2456
  get_compression_type(): CompressionType;
2426
2457
 
2427
2458
  /**
2428
2459
  * @returns the current value of the {@link GtkSource.File.encoding} property.
2460
+ * @since 3.14
2429
2461
  */
2430
2462
  get_encoding(): Encoding | null;
2431
2463
 
2432
2464
  /**
2433
2465
  * @returns the current value of the {@link GtkSource.File.location} property.
2466
+ * @since 3.14
2434
2467
  */
2435
2468
  get_location(): Gio.File | null;
2436
2469
 
2437
2470
  /**
2438
2471
  * @returns the current value of the {@link GtkSource.File.newline_type} property.
2472
+ * @since 3.14
2439
2473
  */
2440
2474
  get_newline_type(): NewlineType;
2441
2475
 
@@ -2446,6 +2480,7 @@ export namespace GtkSource {
2446
2480
  * To have an up-to-date value, you must first call
2447
2481
  * `gtk_source_file_check_file_on_disk()`.
2448
2482
  * @returns whether the file has been deleted.
2483
+ * @since 3.18
2449
2484
  */
2450
2485
  is_deleted(): boolean;
2451
2486
 
@@ -2456,6 +2491,7 @@ export namespace GtkSource {
2456
2491
  * To have an up-to-date value, you must first call
2457
2492
  * `gtk_source_file_check_file_on_disk()`.
2458
2493
  * @returns whether the file is externally modified.
2494
+ * @since 3.18
2459
2495
  */
2460
2496
  is_externally_modified(): boolean;
2461
2497
 
@@ -2463,17 +2499,20 @@ export namespace GtkSource {
2463
2499
  * Returns whether the file is local. If the {@link GtkSource.File.location} is `null`,
2464
2500
  * returns `false`.
2465
2501
  * @returns whether the file is local.
2502
+ * @since 3.18
2466
2503
  */
2467
2504
  is_local(): boolean;
2468
2505
 
2469
2506
  /**
2470
2507
  * @returns the current value of the {@link GtkSource.File.read_only} property.
2508
+ * @since 3.18
2471
2509
  */
2472
2510
  is_readonly(): boolean;
2473
2511
 
2474
2512
  /**
2475
2513
  * Sets the {@link GtkSource.File.location} property.
2476
2514
  * @param location the new {@link Gio.File}, or `null`.
2515
+ * @since 3.14
2477
2516
  */
2478
2517
  set_location(location: Gio.File | null): void;
2479
2518
  }
@@ -2607,41 +2646,49 @@ export namespace GtkSource {
2607
2646
  // Methods
2608
2647
  /**
2609
2648
  * @returns the value of the {@link GtkSource.FileLoader.buffer} property.
2649
+ * @since 3.14
2610
2650
  */
2611
2651
  get_buffer(): Buffer | null;
2612
2652
 
2613
2653
  /**
2614
2654
  * @returns the detected compression type.
2655
+ * @since 3.14
2615
2656
  */
2616
2657
  get_compression_type(): CompressionType;
2617
2658
 
2618
2659
  /**
2619
2660
  * @returns the detected encoding.
2661
+ * @since 3.14
2620
2662
  */
2621
2663
  get_encoding(): Encoding;
2622
2664
 
2623
2665
  /**
2624
2666
  * @returns the value of the {@link GtkSource.FileLoader.file} property.
2667
+ * @since 3.14
2625
2668
  */
2626
2669
  get_file(): File | null;
2627
2670
 
2628
2671
  /**
2629
2672
  * @returns the value of the {@link GtkSource.FileLoader.input_stream} property.
2673
+ * @since 3.14
2630
2674
  */
2631
2675
  get_input_stream(): Gio.InputStream | null;
2632
2676
 
2633
2677
  /**
2634
2678
  * @returns the value of the {@link GtkSource.FileLoader.location} property.
2679
+ * @since 3.14
2635
2680
  */
2636
2681
  get_location(): Gio.File | null;
2637
2682
 
2638
2683
  /**
2639
2684
  * @returns the value of the {@link GtkSource.FileLoader.max_size} property.
2685
+ * @since 299.6
2640
2686
  */
2641
2687
  get_max_size(): number;
2642
2688
 
2643
2689
  /**
2644
2690
  * @returns the detected newline type.
2691
+ * @since 3.14
2645
2692
  */
2646
2693
  get_newline_type(): NewlineType;
2647
2694
 
@@ -2652,6 +2699,7 @@ export namespace GtkSource {
2652
2699
  * @param io_priority the I/O priority of the request. E.g. `G_PRIORITY_LOW`, `G_PRIORITY_DEFAULT` or `G_PRIORITY_HIGH`.
2653
2700
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
2654
2701
  * @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
2702
+ * @since 3.14
2655
2703
  */
2656
2704
  load_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null): globalThis.Promise<boolean>;
2657
2705
 
@@ -2663,6 +2711,7 @@ export namespace GtkSource {
2663
2711
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
2664
2712
  * @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
2665
2713
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
2714
+ * @since 3.14
2666
2715
  */
2667
2716
  load_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback: Gio.AsyncReadyCallback<this> | null): void;
2668
2717
 
@@ -2674,6 +2723,7 @@ export namespace GtkSource {
2674
2723
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
2675
2724
  * @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
2676
2725
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
2726
+ * @since 3.14
2677
2727
  */
2678
2728
  load_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
2679
2729
 
@@ -2685,6 +2735,8 @@ export namespace GtkSource {
2685
2735
  * type.
2686
2736
  * @param result a {@link Gio.AsyncResult}.
2687
2737
  * @returns whether the contents has been loaded successfully.
2738
+ * @since 3.14
2739
+ * @throws GLib.Error
2688
2740
  */
2689
2741
  load_finish(result: Gio.AsyncResult): boolean;
2690
2742
 
@@ -2701,12 +2753,14 @@ export namespace GtkSource {
2701
2753
  * 2. Plus the default candidates as returned by
2702
2754
  * `gtk_source_encoding_get_default_candidates()`.
2703
2755
  * @param candidate_encodings a list of {@link GtkSource.Encoding}'s.
2756
+ * @since 3.14
2704
2757
  */
2705
2758
  set_candidate_encodings(candidate_encodings: Encoding[]): void;
2706
2759
 
2707
2760
  /**
2708
2761
  * Sets the {@link GtkSource.FileLoader.max_size} property.
2709
2762
  * @param max_size the new value.
2763
+ * @since 299.6
2710
2764
  */
2711
2765
  set_max_size(max_size: bigint | number): void;
2712
2766
  }
@@ -2853,36 +2907,43 @@ export namespace GtkSource {
2853
2907
  // Methods
2854
2908
  /**
2855
2909
  * @returns the {@link GtkSource.Buffer} to save.
2910
+ * @since 3.14
2856
2911
  */
2857
2912
  get_buffer(): Buffer;
2858
2913
 
2859
2914
  /**
2860
2915
  * @returns the compression type.
2916
+ * @since 3.14
2861
2917
  */
2862
2918
  get_compression_type(): CompressionType;
2863
2919
 
2864
2920
  /**
2865
2921
  * @returns the encoding.
2922
+ * @since 3.14
2866
2923
  */
2867
2924
  get_encoding(): Encoding;
2868
2925
 
2869
2926
  /**
2870
2927
  * @returns the {@link GtkSource.File}.
2928
+ * @since 3.14
2871
2929
  */
2872
2930
  get_file(): File;
2873
2931
 
2874
2932
  /**
2875
2933
  * @returns the flags.
2934
+ * @since 3.14
2876
2935
  */
2877
2936
  get_flags(): FileSaverFlags;
2878
2937
 
2879
2938
  /**
2880
2939
  * @returns the {@link Gio.File} where to save the buffer to.
2940
+ * @since 3.14
2881
2941
  */
2882
2942
  get_location(): Gio.File;
2883
2943
 
2884
2944
  /**
2885
2945
  * @returns the newline type.
2946
+ * @since 3.14
2886
2947
  */
2887
2948
  get_newline_type(): NewlineType;
2888
2949
 
@@ -2892,6 +2953,7 @@ export namespace GtkSource {
2892
2953
  * @param io_priority the I/O priority of the request. E.g. `G_PRIORITY_LOW`, `G_PRIORITY_DEFAULT` or `G_PRIORITY_HIGH`.
2893
2954
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
2894
2955
  * @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
2956
+ * @since 3.14
2895
2957
  */
2896
2958
  save_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null): globalThis.Promise<boolean>;
2897
2959
 
@@ -2902,6 +2964,7 @@ export namespace GtkSource {
2902
2964
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
2903
2965
  * @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
2904
2966
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
2967
+ * @since 3.14
2905
2968
  */
2906
2969
  save_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback: Gio.AsyncReadyCallback<this> | null): void;
2907
2970
 
@@ -2912,6 +2975,7 @@ export namespace GtkSource {
2912
2975
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
2913
2976
  * @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
2914
2977
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
2978
+ * @since 3.14
2915
2979
  */
2916
2980
  save_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
2917
2981
 
@@ -2926,6 +2990,8 @@ export namespace GtkSource {
2926
2990
  * if the file has been saved successfully.
2927
2991
  * @param result a {@link Gio.AsyncResult}.
2928
2992
  * @returns whether the file was saved successfully.
2993
+ * @since 3.14
2994
+ * @throws GLib.Error
2929
2995
  */
2930
2996
  save_finish(result: Gio.AsyncResult): boolean;
2931
2997
 
@@ -2933,6 +2999,7 @@ export namespace GtkSource {
2933
2999
  * Sets the compression type. By default the compression type is taken from the
2934
3000
  * {@link GtkSource.File}.
2935
3001
  * @param compression_type the new compression type.
3002
+ * @since 3.14
2936
3003
  */
2937
3004
  set_compression_type(compression_type: CompressionType): void;
2938
3005
 
@@ -2940,11 +3007,13 @@ export namespace GtkSource {
2940
3007
  * Sets the encoding. If `encoding` is `null`, the UTF-8 encoding will be set.
2941
3008
  * By default the encoding is taken from the {@link GtkSource.File}.
2942
3009
  * @param encoding the new encoding, or `null` for UTF-8.
3010
+ * @since 3.14
2943
3011
  */
2944
3012
  set_encoding(encoding: Encoding | null): void;
2945
3013
 
2946
3014
  /**
2947
3015
  * @param flags the new flags.
3016
+ * @since 3.14
2948
3017
  */
2949
3018
  set_flags(flags: FileSaverFlags): void;
2950
3019
 
@@ -2952,6 +3021,7 @@ export namespace GtkSource {
2952
3021
  * Sets the newline type. By default the newline type is taken from the
2953
3022
  * {@link GtkSource.File}.
2954
3023
  * @param newline_type the new newline type.
3024
+ * @since 3.14
2955
3025
  */
2956
3026
  set_newline_type(newline_type: NewlineType): void;
2957
3027
  }
@@ -3037,11 +3107,13 @@ export namespace GtkSource {
3037
3107
 
3038
3108
  /**
3039
3109
  * @returns the associated {@link GtkSource.View}.
3110
+ * @since 3.24
3040
3111
  */
3041
3112
  get_view(): View;
3042
3113
 
3043
3114
  /**
3044
3115
  * @returns the {@link Gtk.TextWindowType} of `gutter`.
3116
+ * @since 3.24
3045
3117
  */
3046
3118
  get_window_type(): Gtk.TextWindowType;
3047
3119
 
@@ -3052,18 +3124,21 @@ export namespace GtkSource {
3052
3124
  * @param renderer a gutter renderer (must inherit from {@link GtkSource.GutterRenderer}).
3053
3125
  * @param position the renderer position.
3054
3126
  * @returns `true` if operation succeeded. Otherwise `false`.
3127
+ * @since 3.0
3055
3128
  */
3056
3129
  insert(renderer: GutterRenderer, position: number): boolean;
3057
3130
 
3058
3131
  /**
3059
3132
  * Invalidates the drawable area of the gutter. You can use this to force a
3060
3133
  * redraw of the gutter if something has changed and needs to be redrawn.
3134
+ * @since 2.8
3061
3135
  */
3062
3136
  queue_draw(): void;
3063
3137
 
3064
3138
  /**
3065
3139
  * Removes `renderer` from `gutter`.
3066
3140
  * @param renderer a {@link GtkSource.GutterRenderer}.
3141
+ * @since 2.8
3067
3142
  */
3068
3143
  remove(renderer: GutterRenderer): void;
3069
3144
 
@@ -3071,6 +3146,7 @@ export namespace GtkSource {
3071
3146
  * Reorders `renderer` in `gutter` to new `position`.
3072
3147
  * @param renderer a {@link Gtk.CellRenderer}.
3073
3148
  * @param position the new renderer position.
3149
+ * @since 2.8
3074
3150
  */
3075
3151
  reorder(renderer: GutterRenderer, position: number): void;
3076
3152
  }
@@ -3085,14 +3161,14 @@ export namespace GtkSource {
3085
3161
  * @signal
3086
3162
  * @run-last
3087
3163
  */
3088
- activate: (arg0: Gtk.TextIter, arg1: Gdk.Rectangle, arg2: Gdk.Event) => void;
3164
+ activate: (iter: Gtk.TextIter, area: Gdk.Rectangle, event: Gdk.Event) => void;
3089
3165
  /**
3090
3166
  * The ::query-activatable signal is emitted when the renderer
3091
3167
  * can possibly be activated.
3092
3168
  * @signal
3093
3169
  * @run-last
3094
3170
  */
3095
- "query-activatable": (arg0: Gtk.TextIter, arg1: Gdk.Rectangle, arg2: Gdk.Event) => boolean | void;
3171
+ "query-activatable": (iter: Gtk.TextIter, area: Gdk.Rectangle, event: Gdk.Event) => boolean | void;
3096
3172
  /**
3097
3173
  * The ::query-data signal is emitted when the renderer needs
3098
3174
  * to be filled with data just before a cell is drawn. This can
@@ -3101,14 +3177,14 @@ export namespace GtkSource {
3101
3177
  * @signal
3102
3178
  * @run-last
3103
3179
  */
3104
- "query-data": (arg0: Gtk.TextIter, arg1: Gtk.TextIter, arg2: GutterRendererState) => void;
3180
+ "query-data": (start: Gtk.TextIter, end: Gtk.TextIter, state: GutterRendererState) => void;
3105
3181
  /**
3106
3182
  * The ::query-tooltip signal is emitted when the renderer can
3107
3183
  * show a tooltip.
3108
3184
  * @signal
3109
3185
  * @run-last
3110
3186
  */
3111
- "query-tooltip": (arg0: Gtk.TextIter, arg1: Gdk.Rectangle, arg2: number, arg3: number, arg4: Gtk.Tooltip) => boolean | void;
3187
+ "query-tooltip": (iter: Gtk.TextIter, area: Gdk.Rectangle, x: number, y: number, tooltip: Gtk.Tooltip) => boolean | void;
3112
3188
  /**
3113
3189
  * The ::queue-draw signal is emitted when the renderer needs
3114
3190
  * to be redrawn. Use `gtk_source_gutter_renderer_queue_draw()`
@@ -3949,6 +4025,7 @@ export namespace GtkSource {
3949
4025
  * is not present in the current style scheme.
3950
4026
  * @param style_id a style ID.
3951
4027
  * @returns the ID of the style to use if the specified `style_id` is not present in the current style scheme or `null` if the style has no fallback defined. The returned string is owned by the `language` and must not be modified.
4028
+ * @since 3.4
3952
4029
  */
3953
4030
  get_style_fallback(style_id: string): string | null;
3954
4031
 
@@ -4098,6 +4175,7 @@ export namespace GtkSource {
4098
4175
  * @param filename a filename in Glib filename encoding, or `null`.
4099
4176
  * @param content_type a content type (as in GIO API), or `null`.
4100
4177
  * @returns a {@link GtkSource.Language}, or `null` if there is no suitable language for given `filename` and/or `content_type`. Return value is owned by `lm` and should not be freed.
4178
+ * @since 2.4
4101
4179
  */
4102
4180
  guess_language(filename: string | null, content_type: string | null): Language | null;
4103
4181
 
@@ -4185,6 +4263,7 @@ export namespace GtkSource {
4185
4263
  /**
4186
4264
  * Returns the mark category.
4187
4265
  * @returns the category of the {@link GtkSource.Mark}.
4266
+ * @since 2.2
4188
4267
  */
4189
4268
  get_category(): string;
4190
4269
 
@@ -4195,6 +4274,7 @@ export namespace GtkSource {
4195
4274
  * If `category` is `null`, looks for marks of any category.
4196
4275
  * @param category a string specifying the mark category, or `null`.
4197
4276
  * @returns the next {@link GtkSource.Mark}, or `null`.
4277
+ * @since 2.2
4198
4278
  */
4199
4279
  next(category: string | null): Mark | null;
4200
4280
 
@@ -4205,6 +4285,7 @@ export namespace GtkSource {
4205
4285
  * If `category` is `null`, looks for marks of any category
4206
4286
  * @param category a string specifying the mark category, or `null`.
4207
4287
  * @returns the previous {@link GtkSource.Mark}, or `null`.
4288
+ * @since 2.2
4208
4289
  */
4209
4290
  prev(category: string): Mark | null;
4210
4291
  }
@@ -4219,14 +4300,14 @@ export namespace GtkSource {
4219
4300
  * @signal
4220
4301
  * @run-last
4221
4302
  */
4222
- "query-tooltip-markup": (arg0: Mark) => string;
4303
+ "query-tooltip-markup": (mark: Mark) => string;
4223
4304
  /**
4224
4305
  * The code should connect to this signal to provide a tooltip for given
4225
4306
  * `mark`. The tooltip should be just a plain text.
4226
4307
  * @signal
4227
4308
  * @run-last
4228
4309
  */
4229
- "query-tooltip-text": (arg0: Mark) => string;
4310
+ "query-tooltip-text": (mark: Mark) => string;
4230
4311
  "notify::background": (pspec: GObject.ParamSpec) => void;
4231
4312
  "notify::gicon": (pspec: GObject.ParamSpec) => void;
4232
4313
  "notify::icon-name": (pspec: GObject.ParamSpec) => void;
@@ -4814,6 +4895,7 @@ export namespace GtkSource {
4814
4895
  * Returns the name of the font used to print the text body. The returned string
4815
4896
  * must be freed with `g_free()`.
4816
4897
  * @returns a new string containing the name of the font used to print the text body.
4898
+ * @since 2.2
4817
4899
  */
4818
4900
  get_body_font_name(): string;
4819
4901
 
@@ -4821,6 +4903,7 @@ export namespace GtkSource {
4821
4903
  * Gets the bottom margin in units of `unit`.
4822
4904
  * @param unit the unit for the return value.
4823
4905
  * @returns the bottom margin.
4906
+ * @since 2.2
4824
4907
  */
4825
4908
  get_bottom_margin(unit: Gtk.Unit): number;
4826
4909
 
@@ -4829,6 +4912,7 @@ export namespace GtkSource {
4829
4912
  * object reference is owned by the compositor object and
4830
4913
  * should not be unreferenced.
4831
4914
  * @returns the {@link GtkSource.Buffer} associated with the compositor.
4915
+ * @since 2.2
4832
4916
  */
4833
4917
  get_buffer(): Buffer;
4834
4918
 
@@ -4836,6 +4920,7 @@ export namespace GtkSource {
4836
4920
  * Returns the name of the font used to print the page footer.
4837
4921
  * The returned string must be freed with `g_free()`.
4838
4922
  * @returns a new string containing the name of the font used to print the page footer.
4923
+ * @since 2.2
4839
4924
  */
4840
4925
  get_footer_font_name(): string;
4841
4926
 
@@ -4843,6 +4928,7 @@ export namespace GtkSource {
4843
4928
  * Returns the name of the font used to print the page header.
4844
4929
  * The returned string must be freed with `g_free()`.
4845
4930
  * @returns a new string containing the name of the font used to print the page header.
4931
+ * @since 2.2
4846
4932
  */
4847
4933
  get_header_font_name(): string;
4848
4934
 
@@ -4851,6 +4937,7 @@ export namespace GtkSource {
4851
4937
  * buffer rules. Note that highlighting will happen
4852
4938
  * only if the buffer to print has highlighting activated.
4853
4939
  * @returns `true` if the printed output will be highlighted.
4940
+ * @since 2.2
4854
4941
  */
4855
4942
  get_highlight_syntax(): boolean;
4856
4943
 
@@ -4858,6 +4945,7 @@ export namespace GtkSource {
4858
4945
  * Gets the left margin in units of `unit`.
4859
4946
  * @param unit the unit for the return value.
4860
4947
  * @returns the left margin
4948
+ * @since 2.2
4861
4949
  */
4862
4950
  get_left_margin(unit: Gtk.Unit): number;
4863
4951
 
@@ -4865,6 +4953,7 @@ export namespace GtkSource {
4865
4953
  * Returns the name of the font used to print line numbers on the left margin.
4866
4954
  * The returned string must be freed with `g_free()`.
4867
4955
  * @returns a new string containing the name of the font used to print line numbers on the left margin.
4956
+ * @since 2.2
4868
4957
  */
4869
4958
  get_line_numbers_font_name(): string;
4870
4959
 
@@ -4872,12 +4961,14 @@ export namespace GtkSource {
4872
4961
  * Returns the number of pages in the document or <code>-1</code> if the
4873
4962
  * document has not been completely paginated.
4874
4963
  * @returns the number of pages in the document or <code>-1</code> if the document has not been completely paginated.
4964
+ * @since 2.2
4875
4965
  */
4876
4966
  get_n_pages(): number;
4877
4967
 
4878
4968
  /**
4879
4969
  * Returns the current fraction of the document pagination that has been completed.
4880
4970
  * @returns a fraction from 0.0 to 1.0 inclusive.
4971
+ * @since 2.2
4881
4972
  */
4882
4973
  get_pagination_progress(): number;
4883
4974
 
@@ -4887,6 +4978,7 @@ export namespace GtkSource {
4887
4978
  * <emphasis>and</emphasis> some format strings have been specified
4888
4979
  * with `gtk_source_print_compositor_set_footer_format()`.
4889
4980
  * @returns `true` if the footer is set to be printed.
4981
+ * @since 2.2
4890
4982
  */
4891
4983
  get_print_footer(): boolean;
4892
4984
 
@@ -4896,6 +4988,7 @@ export namespace GtkSource {
4896
4988
  * <emphasis>and</emphasis> some format strings have been specified
4897
4989
  * with `gtk_source_print_compositor_set_header_format()`.
4898
4990
  * @returns `true` if the header is set to be printed.
4991
+ * @since 2.2
4899
4992
  */
4900
4993
  get_print_header(): boolean;
4901
4994
 
@@ -4904,6 +4997,7 @@ export namespace GtkSource {
4904
4997
  * value is 0, no line numbers will be printed. The default value is
4905
4998
  * 1 (i.e. numbers printed in all lines).
4906
4999
  * @returns the interval of printed line numbers.
5000
+ * @since 2.2
4907
5001
  */
4908
5002
  get_print_line_numbers(): number;
4909
5003
 
@@ -4911,12 +5005,14 @@ export namespace GtkSource {
4911
5005
  * Gets the right margin in units of `unit`.
4912
5006
  * @param unit the unit for the return value.
4913
5007
  * @returns the right margin.
5008
+ * @since 2.2
4914
5009
  */
4915
5010
  get_right_margin(unit: Gtk.Unit): number;
4916
5011
 
4917
5012
  /**
4918
5013
  * Returns the width of tabulation in characters for printed text.
4919
5014
  * @returns width of tab.
5015
+ * @since 2.2
4920
5016
  */
4921
5017
  get_tab_width(): number;
4922
5018
 
@@ -4924,12 +5020,14 @@ export namespace GtkSource {
4924
5020
  * Gets the top margin in units of `unit`.
4925
5021
  * @param unit the unit for the return value.
4926
5022
  * @returns the top margin.
5023
+ * @since 2.2
4927
5024
  */
4928
5025
  get_top_margin(unit: Gtk.Unit): number;
4929
5026
 
4930
5027
  /**
4931
5028
  * Gets the line wrapping mode for the printed text.
4932
5029
  * @returns the line wrap mode.
5030
+ * @since 2.2
4933
5031
  */
4934
5032
  get_wrap_mode(): Gtk.WrapMode;
4935
5033
 
@@ -4996,6 +5094,7 @@ export namespace GtkSource {
4996
5094
  * </programlisting></informalexample>
4997
5095
  * @param context the {@link Gtk.PrintContext} whose parameters (e.g. paper size, print margins, etc.) are used by the the `compositor` to paginate the document.
4998
5096
  * @returns `true` if the document has been completely paginated, `false` otherwise.
5097
+ * @since 2.2
4999
5098
  */
5000
5099
  paginate(context: Gtk.PrintContext): boolean;
5001
5100
 
@@ -5010,6 +5109,7 @@ export namespace GtkSource {
5010
5109
  * This function cannot be called anymore after the first call to the
5011
5110
  * `gtk_source_print_compositor_paginate()` function.
5012
5111
  * @param font_name the name of the default font for the body text.
5112
+ * @since 2.2
5013
5113
  */
5014
5114
  set_body_font_name(font_name: string): void;
5015
5115
 
@@ -5017,6 +5117,7 @@ export namespace GtkSource {
5017
5117
  * Sets the bottom margin used by `compositor`.
5018
5118
  * @param margin the new bottom margin in units of `unit`.
5019
5119
  * @param unit the units for `margin`.
5120
+ * @since 2.2
5020
5121
  */
5021
5122
  set_bottom_margin(margin: number, unit: Gtk.Unit): void;
5022
5123
 
@@ -5033,6 +5134,7 @@ export namespace GtkSource {
5033
5134
  * This function cannot be called anymore after the first call to the
5034
5135
  * `gtk_source_print_compositor_paginate()` function.
5035
5136
  * @param font_name the name of the font for the footer text, or `null`.
5137
+ * @since 2.2
5036
5138
  */
5037
5139
  set_footer_font_name(font_name: string | null): void;
5038
5140
 
@@ -5043,6 +5145,7 @@ export namespace GtkSource {
5043
5145
  * @param left a format string to print on the left of the footer.
5044
5146
  * @param center a format string to print on the center of the footer.
5045
5147
  * @param right a format string to print on the right of the footer.
5148
+ * @since 2.2
5046
5149
  */
5047
5150
  set_footer_format(separator: boolean, left: string | null, center: string | null, right: string | null): void;
5048
5151
 
@@ -5059,6 +5162,7 @@ export namespace GtkSource {
5059
5162
  * This function cannot be called anymore after the first call to the
5060
5163
  * `gtk_source_print_compositor_paginate()` function.
5061
5164
  * @param font_name the name of the font for header text, or `null`.
5165
+ * @since 2.2
5062
5166
  */
5063
5167
  set_header_font_name(font_name: string | null): void;
5064
5168
 
@@ -5088,6 +5192,7 @@ export namespace GtkSource {
5088
5192
  * @param left a format string to print on the left of the header.
5089
5193
  * @param center a format string to print on the center of the header.
5090
5194
  * @param right a format string to print on the right of the header.
5195
+ * @since 2.2
5091
5196
  */
5092
5197
  set_header_format(separator: boolean, left: string | null, center: string | null, right: string | null): void;
5093
5198
 
@@ -5098,6 +5203,7 @@ export namespace GtkSource {
5098
5203
  * This function cannot be called anymore after the first call to the
5099
5204
  * `gtk_source_print_compositor_paginate()` function.
5100
5205
  * @param highlight whether syntax should be highlighted.
5206
+ * @since 2.2
5101
5207
  */
5102
5208
  set_highlight_syntax(highlight: boolean): void;
5103
5209
 
@@ -5105,6 +5211,7 @@ export namespace GtkSource {
5105
5211
  * Sets the left margin used by `compositor`.
5106
5212
  * @param margin the new left margin in units of `unit`.
5107
5213
  * @param unit the units for `margin`.
5214
+ * @since 2.2
5108
5215
  */
5109
5216
  set_left_margin(margin: number, unit: Gtk.Unit): void;
5110
5217
 
@@ -5121,6 +5228,7 @@ export namespace GtkSource {
5121
5228
  * This function cannot be called anymore after the first call to the
5122
5229
  * `gtk_source_print_compositor_paginate()` function.
5123
5230
  * @param font_name the name of the font for line numbers, or `null`.
5231
+ * @since 2.2
5124
5232
  */
5125
5233
  set_line_numbers_font_name(font_name: string | null): void;
5126
5234
 
@@ -5136,6 +5244,7 @@ export namespace GtkSource {
5136
5244
  * This function cannot be called anymore after the first call to the
5137
5245
  * `gtk_source_print_compositor_paginate()` function.
5138
5246
  * @param print `true` if you want the footer to be printed.
5247
+ * @since 2.2
5139
5248
  */
5140
5249
  set_print_footer(print: boolean): void;
5141
5250
 
@@ -5151,6 +5260,7 @@ export namespace GtkSource {
5151
5260
  * This function cannot be called anymore after the first call to the
5152
5261
  * `gtk_source_print_compositor_paginate()` function.
5153
5262
  * @param print `true` if you want the header to be printed.
5263
+ * @since 2.2
5154
5264
  */
5155
5265
  set_print_header(print: boolean): void;
5156
5266
 
@@ -5164,6 +5274,7 @@ export namespace GtkSource {
5164
5274
  * This function cannot be called anymore after the first call to the
5165
5275
  * `gtk_source_print_compositor_paginate()` function.
5166
5276
  * @param interval interval for printed line numbers.
5277
+ * @since 2.2
5167
5278
  */
5168
5279
  set_print_line_numbers(interval: number): void;
5169
5280
 
@@ -5171,6 +5282,7 @@ export namespace GtkSource {
5171
5282
  * Sets the right margin used by `compositor`.
5172
5283
  * @param margin the new right margin in units of `unit`.
5173
5284
  * @param unit the units for `margin`.
5285
+ * @since 2.2
5174
5286
  */
5175
5287
  set_right_margin(margin: number, unit: Gtk.Unit): void;
5176
5288
 
@@ -5180,6 +5292,7 @@ export namespace GtkSource {
5180
5292
  * This function cannot be called anymore after the first call to the
5181
5293
  * `gtk_source_print_compositor_paginate()` function.
5182
5294
  * @param width width of tab in characters.
5295
+ * @since 2.2
5183
5296
  */
5184
5297
  set_tab_width(width: number): void;
5185
5298
 
@@ -5187,6 +5300,7 @@ export namespace GtkSource {
5187
5300
  * Sets the top margin used by `compositor`.
5188
5301
  * @param margin the new top margin in units of `unit`
5189
5302
  * @param unit the units for `margin`
5303
+ * @since 2.2
5190
5304
  */
5191
5305
  set_top_margin(margin: number, unit: Gtk.Unit): void;
5192
5306
 
@@ -5196,6 +5310,7 @@ export namespace GtkSource {
5196
5310
  * This function cannot be called anymore after the first call to the
5197
5311
  * `gtk_source_print_compositor_paginate()` function.
5198
5312
  * @param wrap_mode a {@link Gtk.WrapMode}.
5313
+ * @since 2.2
5199
5314
  */
5200
5315
  set_wrap_mode(wrap_mode: Gtk.WrapMode): void;
5201
5316
  }
@@ -5261,6 +5376,7 @@ export namespace GtkSource {
5261
5376
  /**
5262
5377
  * Adds `region_to_add` to `region`. `region_to_add` is not modified.
5263
5378
  * @param region_to_add the {@link GtkSource.Region} to add to `region`, or `null`.
5379
+ * @since 3.22
5264
5380
  */
5265
5381
  add_region(region_to_add: Region | null): void;
5266
5382
 
@@ -5268,23 +5384,27 @@ export namespace GtkSource {
5268
5384
  * Adds the subregion delimited by `_start` and `_end` to `region`.
5269
5385
  * @param _start the start of the subregion.
5270
5386
  * @param _end the end of the subregion.
5387
+ * @since 3.22
5271
5388
  */
5272
5389
  add_subregion(_start: Gtk.TextIter, _end: Gtk.TextIter): void;
5273
5390
 
5274
5391
  /**
5275
5392
  * Gets the `start` and `end` bounds of the `region`.
5276
5393
  * @returns `true` if `start` and `end` have been set successfully (if non-`null`), or `false` if the `region` is empty.
5394
+ * @since 3.22
5277
5395
  */
5278
5396
  get_bounds(): [boolean, Gtk.TextIter | null, Gtk.TextIter | null];
5279
5397
 
5280
5398
  /**
5281
5399
  * @returns the {@link Gtk.TextBuffer}.
5400
+ * @since 3.22
5282
5401
  */
5283
5402
  get_buffer(): Gtk.TextBuffer | null;
5284
5403
 
5285
5404
  /**
5286
5405
  * Initializes a {@link GtkSource.RegionIter} to the first subregion of `region`. If
5287
5406
  * `region` is empty, `iter` will be initialized to the end iterator.
5407
+ * @since 3.22
5288
5408
  */
5289
5409
  get_start_region_iter(): RegionIter;
5290
5410
 
@@ -5293,6 +5413,7 @@ export namespace GtkSource {
5293
5413
  * `region2` are not modified.
5294
5414
  * @param region2 a {@link GtkSource.Region}, or `null`.
5295
5415
  * @returns the intersection as a {@link GtkSource.Region} object.
5416
+ * @since 3.22
5296
5417
  */
5297
5418
  intersect_region(region2: Region | null): Region | null;
5298
5419
 
@@ -5302,12 +5423,14 @@ export namespace GtkSource {
5302
5423
  * @param _start the start of the subregion.
5303
5424
  * @param _end the end of the subregion.
5304
5425
  * @returns the intersection as a new {@link GtkSource.Region}.
5426
+ * @since 3.22
5305
5427
  */
5306
5428
  intersect_subregion(_start: Gtk.TextIter, _end: Gtk.TextIter): Region | null;
5307
5429
 
5308
5430
  /**
5309
5431
  * Returns whether the `region` is empty. A `null` `region` is considered empty.
5310
5432
  * @returns whether the `region` is empty.
5433
+ * @since 3.22
5311
5434
  */
5312
5435
  is_empty(): boolean;
5313
5436
 
@@ -5315,6 +5438,7 @@ export namespace GtkSource {
5315
5438
  * Subtracts `region_to_subtract` from `region`. `region_to_subtract` is not
5316
5439
  * modified.
5317
5440
  * @param region_to_subtract the {@link GtkSource.Region} to subtract from `region`, or `null`.
5441
+ * @since 3.22
5318
5442
  */
5319
5443
  subtract_region(region_to_subtract: Region | null): void;
5320
5444
 
@@ -5322,6 +5446,7 @@ export namespace GtkSource {
5322
5446
  * Subtracts the subregion delimited by `_start` and `_end` from `region`.
5323
5447
  * @param _start the start of the subregion.
5324
5448
  * @param _end the end of the subregion.
5449
+ * @since 3.22
5325
5450
  */
5326
5451
  subtract_subregion(_start: Gtk.TextIter, _end: Gtk.TextIter): void;
5327
5452
 
@@ -5331,6 +5456,7 @@ export namespace GtkSource {
5331
5456
  * The returned string contains the character offsets of the subregions. It
5332
5457
  * doesn't include a newline character at the end of the string.
5333
5458
  * @returns a string represention of `region`. Free with `g_free()` when no longer needed.
5459
+ * @since 3.22
5334
5460
  */
5335
5461
  to_string(): string | null;
5336
5462
  }
@@ -5491,6 +5617,7 @@ export namespace GtkSource {
5491
5617
  * the same value as the {@link GtkSource.SearchSettings.wrap_around} property.
5492
5618
  * @param iter start of search.
5493
5619
  * @returns whether a match was found.
5620
+ * @since 4.0
5494
5621
  */
5495
5622
  backward(iter: Gtk.TextIter): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
5496
5623
 
@@ -5507,6 +5634,7 @@ export namespace GtkSource {
5507
5634
  * ownership of `cancellable`, so you can unref it after calling this function.
5508
5635
  * @param iter start of search.
5509
5636
  * @param cancellable a {@link Gio.Cancellable}, or `null`.
5637
+ * @since 3.10
5510
5638
  */
5511
5639
  backward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null): globalThis.Promise<[Gtk.TextIter | null, Gtk.TextIter | null, boolean]>;
5512
5640
 
@@ -5524,6 +5652,7 @@ export namespace GtkSource {
5524
5652
  * @param iter start of search.
5525
5653
  * @param cancellable a {@link Gio.Cancellable}, or `null`.
5526
5654
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the operation is finished.
5655
+ * @since 3.10
5527
5656
  */
5528
5657
  backward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
5529
5658
 
@@ -5541,6 +5670,7 @@ export namespace GtkSource {
5541
5670
  * @param iter start of search.
5542
5671
  * @param cancellable a {@link Gio.Cancellable}, or `null`.
5543
5672
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the operation is finished.
5673
+ * @since 3.10
5544
5674
  */
5545
5675
  backward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<[Gtk.TextIter | null, Gtk.TextIter | null, boolean]> | void;
5546
5676
 
@@ -5552,6 +5682,8 @@ export namespace GtkSource {
5552
5682
  * details.
5553
5683
  * @param result a {@link Gio.AsyncResult}.
5554
5684
  * @returns whether a match was found.
5685
+ * @since 4.0
5686
+ * @throws GLib.Error
5555
5687
  */
5556
5688
  backward_finish(result: Gio.AsyncResult): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
5557
5689
 
@@ -5568,6 +5700,7 @@ export namespace GtkSource {
5568
5700
  * the same value as the {@link GtkSource.SearchSettings.wrap_around} property.
5569
5701
  * @param iter start of search.
5570
5702
  * @returns whether a match was found.
5703
+ * @since 4.0
5571
5704
  */
5572
5705
  forward(iter: Gtk.TextIter): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
5573
5706
 
@@ -5584,6 +5717,7 @@ export namespace GtkSource {
5584
5717
  * ownership of `cancellable`, so you can unref it after calling this function.
5585
5718
  * @param iter start of search.
5586
5719
  * @param cancellable a {@link Gio.Cancellable}, or `null`.
5720
+ * @since 3.10
5587
5721
  */
5588
5722
  forward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null): globalThis.Promise<[Gtk.TextIter | null, Gtk.TextIter | null, boolean]>;
5589
5723
 
@@ -5601,6 +5735,7 @@ export namespace GtkSource {
5601
5735
  * @param iter start of search.
5602
5736
  * @param cancellable a {@link Gio.Cancellable}, or `null`.
5603
5737
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the operation is finished.
5738
+ * @since 3.10
5604
5739
  */
5605
5740
  forward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
5606
5741
 
@@ -5618,6 +5753,7 @@ export namespace GtkSource {
5618
5753
  * @param iter start of search.
5619
5754
  * @param cancellable a {@link Gio.Cancellable}, or `null`.
5620
5755
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the operation is finished.
5756
+ * @since 3.10
5621
5757
  */
5622
5758
  forward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<[Gtk.TextIter | null, Gtk.TextIter | null, boolean]> | void;
5623
5759
 
@@ -5629,21 +5765,26 @@ export namespace GtkSource {
5629
5765
  * details.
5630
5766
  * @param result a {@link Gio.AsyncResult}.
5631
5767
  * @returns whether a match was found.
5768
+ * @since 4.0
5769
+ * @throws GLib.Error
5632
5770
  */
5633
5771
  forward_finish(result: Gio.AsyncResult): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
5634
5772
 
5635
5773
  /**
5636
5774
  * @returns the associated buffer.
5775
+ * @since 3.10
5637
5776
  */
5638
5777
  get_buffer(): Buffer;
5639
5778
 
5640
5779
  /**
5641
5780
  * @returns whether to highlight the search occurrences.
5781
+ * @since 3.10
5642
5782
  */
5643
5783
  get_highlight(): boolean;
5644
5784
 
5645
5785
  /**
5646
5786
  * @returns the {@link GtkSource.Style} to apply on search matches.
5787
+ * @since 3.16
5647
5788
  */
5648
5789
  get_match_style(): Style;
5649
5790
 
@@ -5655,6 +5796,7 @@ export namespace GtkSource {
5655
5796
  * @param match_start the start of the occurrence.
5656
5797
  * @param match_end the end of the occurrence.
5657
5798
  * @returns the position of the search occurrence. The first occurrence has the position 1 (not 0). Returns 0 if `match_start` and `match_end` don't delimit an occurrence. Returns -1 if the position is not yet known.
5799
+ * @since 3.10
5658
5800
  */
5659
5801
  get_occurrence_position(match_start: Gtk.TextIter, match_end: Gtk.TextIter): number;
5660
5802
 
@@ -5663,6 +5805,7 @@ export namespace GtkSource {
5663
5805
  * fully scanned, the total number of occurrences is unknown, and -1 is
5664
5806
  * returned.
5665
5807
  * @returns the total number of search occurrences, or -1 if unknown.
5808
+ * @since 3.10
5666
5809
  */
5667
5810
  get_occurrences_count(): number;
5668
5811
 
@@ -5673,11 +5816,13 @@ export namespace GtkSource {
5673
5816
  *
5674
5817
  * Free the return value with `g_error_free()`.
5675
5818
  * @returns the {@link GLib.Error}, or `null` if the pattern is valid.
5819
+ * @since 3.10
5676
5820
  */
5677
5821
  get_regex_error(): GLib.Error | null;
5678
5822
 
5679
5823
  /**
5680
5824
  * @returns the search settings.
5825
+ * @since 3.10
5681
5826
  */
5682
5827
  get_settings(): SearchSettings;
5683
5828
 
@@ -5696,6 +5841,8 @@ export namespace GtkSource {
5696
5841
  * @param replace the replacement text.
5697
5842
  * @param replace_length the length of `replace` in bytes, or -1.
5698
5843
  * @returns whether the match has been replaced.
5844
+ * @since 4.0
5845
+ * @throws GLib.Error
5699
5846
  */
5700
5847
  replace(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string, replace_length: number): boolean;
5701
5848
 
@@ -5709,12 +5856,15 @@ export namespace GtkSource {
5709
5856
  * @param replace the replacement text.
5710
5857
  * @param replace_length the length of `replace` in bytes, or -1.
5711
5858
  * @returns the number of replaced matches.
5859
+ * @since 3.10
5860
+ * @throws GLib.Error
5712
5861
  */
5713
5862
  replace_all(replace: string, replace_length: number): number;
5714
5863
 
5715
5864
  /**
5716
5865
  * Enables or disables the search occurrences highlighting.
5717
5866
  * @param highlight the setting.
5867
+ * @since 3.10
5718
5868
  */
5719
5869
  set_highlight(highlight: boolean): void;
5720
5870
 
@@ -5724,6 +5874,7 @@ export namespace GtkSource {
5724
5874
  * To enable or disable the search highlighting, use
5725
5875
  * `gtk_source_search_context_set_highlight()`.
5726
5876
  * @param match_style a {@link GtkSource.Style}, or `null`.
5877
+ * @since 3.16
5727
5878
  */
5728
5879
  set_match_style(match_style: Style | null): void;
5729
5880
  }
@@ -5885,16 +6036,19 @@ export namespace GtkSource {
5885
6036
  // Methods
5886
6037
  /**
5887
6038
  * @returns whether to search at word boundaries.
6039
+ * @since 3.10
5888
6040
  */
5889
6041
  get_at_word_boundaries(): boolean;
5890
6042
 
5891
6043
  /**
5892
6044
  * @returns whether the search is case sensitive.
6045
+ * @since 3.10
5893
6046
  */
5894
6047
  get_case_sensitive(): boolean;
5895
6048
 
5896
6049
  /**
5897
6050
  * @returns whether to search by regular expressions.
6051
+ * @since 3.10
5898
6052
  */
5899
6053
  get_regex_enabled(): boolean;
5900
6054
 
@@ -5904,11 +6058,13 @@ export namespace GtkSource {
5904
6058
  * You may be interested to call `gtk_source_utils_escape_search_text()` after
5905
6059
  * this function.
5906
6060
  * @returns the text to search, or `null` if the search is disabled.
6061
+ * @since 3.10
5907
6062
  */
5908
6063
  get_search_text(): string | null;
5909
6064
 
5910
6065
  /**
5911
6066
  * @returns whether to wrap around the search.
6067
+ * @since 3.10
5912
6068
  */
5913
6069
  get_wrap_around(): boolean;
5914
6070
 
@@ -5918,12 +6074,14 @@ export namespace GtkSource {
5918
6074
  * multiple words. See also `gtk_text_iter_starts_word()` and
5919
6075
  * `gtk_text_iter_ends_word()`.
5920
6076
  * @param at_word_boundaries the setting.
6077
+ * @since 3.10
5921
6078
  */
5922
6079
  set_at_word_boundaries(at_word_boundaries: boolean): void;
5923
6080
 
5924
6081
  /**
5925
6082
  * Enables or disables the case sensitivity for the search.
5926
6083
  * @param case_sensitive the setting.
6084
+ * @since 3.10
5927
6085
  */
5928
6086
  set_case_sensitive(case_sensitive: boolean): void;
5929
6087
 
@@ -5936,6 +6094,7 @@ export namespace GtkSource {
5936
6094
  * [Regular expression syntax](https://developer.gnome.org/glib/stable/glib-regex-syntax.html)
5937
6095
  * page in the GLib reference manual.
5938
6096
  * @param regex_enabled the setting.
6097
+ * @since 3.10
5939
6098
  */
5940
6099
  set_regex_enabled(regex_enabled: boolean): void;
5941
6100
 
@@ -5947,6 +6106,7 @@ export namespace GtkSource {
5947
6106
  * You may be interested to call `gtk_source_utils_unescape_search_text()` before
5948
6107
  * this function.
5949
6108
  * @param search_text the nul-terminated text to search, or `null` to disable the search.
6109
+ * @since 3.10
5950
6110
  */
5951
6111
  set_search_text(search_text: string | null): void;
5952
6112
 
@@ -5956,6 +6116,7 @@ export namespace GtkSource {
5956
6116
  * occurrences are found. Similarly, the backward search continues to search at
5957
6117
  * the end of the buffer.
5958
6118
  * @param wrap_around the setting.
6119
+ * @since 3.10
5959
6120
  */
5960
6121
  set_wrap_around(wrap_around: boolean): void;
5961
6122
  }
@@ -6061,11 +6222,13 @@ export namespace GtkSource {
6061
6222
  * @param settings a {@link Gio.Settings} object.
6062
6223
  * @param key the `settings` key to bind.
6063
6224
  * @param flags flags for the binding.
6225
+ * @since 3.24
6064
6226
  */
6065
6227
  bind_matrix_setting(settings: Gio.Settings, key: string, flags: Gio.SettingsBindFlags): void;
6066
6228
 
6067
6229
  /**
6068
6230
  * @returns whether the {@link GtkSource.SpaceDrawer.matrix} property is enabled.
6231
+ * @since 3.24
6069
6232
  */
6070
6233
  get_enable_matrix(): boolean;
6071
6234
 
@@ -6076,6 +6239,7 @@ export namespace GtkSource {
6076
6239
  * The `gtk_source_space_drawer_get_types_for_locations()` function may be more
6077
6240
  * convenient to use.
6078
6241
  * @returns the {@link GtkSource.SpaceDrawer.matrix} value as a new floating {@link GLib.Variant} instance.
6242
+ * @since 3.24
6079
6243
  */
6080
6244
  get_matrix(): GLib.Variant;
6081
6245
 
@@ -6090,12 +6254,14 @@ export namespace GtkSource {
6090
6254
  * specified `locations`.
6091
6255
  * @param locations one or several {@link GtkSource.SpaceLocationFlags}.
6092
6256
  * @returns a combination of {@link GtkSource.SpaceTypeFlags}.
6257
+ * @since 3.24
6093
6258
  */
6094
6259
  get_types_for_locations(locations: SpaceLocationFlags): SpaceTypeFlags;
6095
6260
 
6096
6261
  /**
6097
6262
  * Sets whether the {@link GtkSource.SpaceDrawer.matrix} property is enabled.
6098
6263
  * @param enable_matrix the new value.
6264
+ * @since 3.24
6099
6265
  */
6100
6266
  set_enable_matrix(enable_matrix: boolean): void;
6101
6267
 
@@ -6108,6 +6274,7 @@ export namespace GtkSource {
6108
6274
  * The `gtk_source_space_drawer_set_types_for_locations()` function may be more
6109
6275
  * convenient to use.
6110
6276
  * @param matrix the new matrix value, or `null`.
6277
+ * @since 3.24
6111
6278
  */
6112
6279
  set_matrix(matrix: GLib.Variant | null): void;
6113
6280
 
@@ -6116,6 +6283,7 @@ export namespace GtkSource {
6116
6283
  * `locations`.
6117
6284
  * @param locations one or several {@link GtkSource.SpaceLocationFlags}.
6118
6285
  * @param types a combination of {@link GtkSource.SpaceTypeFlags}.
6286
+ * @since 3.24
6119
6287
  */
6120
6288
  set_types_for_locations(locations: SpaceLocationFlags, types: SpaceTypeFlags): void;
6121
6289
  }
@@ -6165,32 +6333,38 @@ export namespace GtkSource {
6165
6333
  // Methods
6166
6334
  /**
6167
6335
  * @returns the `scheme` description, a human-readable (translated) string to present to the user.
6336
+ * @since 2.0
6168
6337
  */
6169
6338
  get_description(): string | null;
6170
6339
 
6171
6340
  /**
6172
6341
  * @returns `scheme` file name if the scheme was created parsing a style scheme file, or `null` in the other cases.
6342
+ * @since 2.0
6173
6343
  */
6174
6344
  get_filename(): string | null;
6175
6345
 
6176
6346
  /**
6177
6347
  * @returns the `scheme` ID, a unique string used to identify the style scheme in a {@link GtkSource.StyleSchemeManager}.
6348
+ * @since 2.0
6178
6349
  */
6179
6350
  get_id(): string;
6180
6351
 
6181
6352
  /**
6182
6353
  * @returns the kind of `scheme`.
6354
+ * @since 299.2
6183
6355
  */
6184
6356
  get_kind(): StyleSchemeKind;
6185
6357
 
6186
6358
  /**
6187
6359
  * @returns the `scheme` name, a human-readable (translated) string to present to the user.
6360
+ * @since 2.0
6188
6361
  */
6189
6362
  get_name(): string;
6190
6363
 
6191
6364
  /**
6192
6365
  * @param style_id ID of the style to retrieve.
6193
6366
  * @returns the {@link GtkSource.Style} which corresponds to `style_id` in the `scheme`, or `null` if not found.
6367
+ * @since 2.0
6194
6368
  */
6195
6369
  get_style(style_id: string): Style | null;
6196
6370
  }
@@ -6273,6 +6447,7 @@ export namespace GtkSource {
6273
6447
 
6274
6448
  /**
6275
6449
  * @returns a list of all the {@link GtkSource.StyleScheme}'s that are part of `manager`. The list is sorted alphabetically according to the scheme name.
6450
+ * @since 299.0
6276
6451
  */
6277
6452
  get_schemes(): StyleScheme[];
6278
6453
 
@@ -6495,7 +6670,7 @@ export namespace GtkSource {
6495
6670
  * @action
6496
6671
  * @run-last
6497
6672
  */
6498
- "change-case": (arg0: ChangeCaseType) => void;
6673
+ "change-case": (case_type: ChangeCaseType) => void;
6499
6674
  /**
6500
6675
  * Keybinding signal to edit a number at the current cursor position.
6501
6676
  * @signal
@@ -6503,7 +6678,7 @@ export namespace GtkSource {
6503
6678
  * @action
6504
6679
  * @run-last
6505
6680
  */
6506
- "change-number": (arg0: number) => void;
6681
+ "change-number": (count: number) => void;
6507
6682
  /**
6508
6683
  * Keybinding signal to join the lines currently selected.
6509
6684
  * @signal
@@ -6519,7 +6694,7 @@ export namespace GtkSource {
6519
6694
  * @signal
6520
6695
  * @run-last
6521
6696
  */
6522
- "line-mark-activated": (arg0: Gtk.TextIter, arg1: Gdk.Event) => void;
6697
+ "line-mark-activated": (iter: Gtk.TextIter, event: Gdk.Event) => void;
6523
6698
  /**
6524
6699
  * The ::move-lines signal is a keybinding which gets emitted
6525
6700
  * when the user initiates moving a line. The default binding key
@@ -6529,7 +6704,7 @@ export namespace GtkSource {
6529
6704
  * @action
6530
6705
  * @run-last
6531
6706
  */
6532
- "move-lines": (arg0: boolean) => void;
6707
+ "move-lines": (down: boolean) => void;
6533
6708
  /**
6534
6709
  * Keybinding signal to move the cursor to the matching bracket.
6535
6710
  * @signal
@@ -6537,7 +6712,7 @@ export namespace GtkSource {
6537
6712
  * @action
6538
6713
  * @run-last
6539
6714
  */
6540
- "move-to-matching-bracket": (arg0: boolean) => void;
6715
+ "move-to-matching-bracket": (extend_selection: boolean) => void;
6541
6716
  /**
6542
6717
  * The ::move-words signal is a keybinding which gets emitted
6543
6718
  * when the user initiates moving a word. The default binding key
@@ -6548,7 +6723,7 @@ export namespace GtkSource {
6548
6723
  * @action
6549
6724
  * @run-last
6550
6725
  */
6551
- "move-words": (arg0: number) => void;
6726
+ "move-words": (count: number) => void;
6552
6727
  /**
6553
6728
  * @signal
6554
6729
  * @action
@@ -6581,7 +6756,7 @@ export namespace GtkSource {
6581
6756
  * @since 3.0
6582
6757
  * @run-last
6583
6758
  */
6584
- "smart-home-end": (arg0: Gtk.TextIter, arg1: number) => void;
6759
+ "smart-home-end": (iter: Gtk.TextIter, count: number) => void;
6585
6760
  /**
6586
6761
  * @signal
6587
6762
  * @action
@@ -7006,6 +7181,7 @@ export namespace GtkSource {
7006
7181
  * The line numbers and mark category icons are rendered in the left gutter.
7007
7182
  * @param window_type the gutter window type.
7008
7183
  * @returns the {@link GtkSource.Gutter}.
7184
+ * @since 2.8
7009
7185
  */
7010
7186
  get_gutter(window_type: Gtk.TextWindowType): Gutter;
7011
7187
 
@@ -7050,6 +7226,7 @@ export namespace GtkSource {
7050
7226
 
7051
7227
  /**
7052
7228
  * @returns the current value of the {@link GtkSource.View.show_line_marks} property.
7229
+ * @since 2.2
7053
7230
  */
7054
7231
  get_show_line_marks(): boolean;
7055
7232
 
@@ -7067,6 +7244,7 @@ export namespace GtkSource {
7067
7244
  * Returns `true` if pressing the Backspace key will try to delete spaces
7068
7245
  * up to the previous tab stop.
7069
7246
  * @returns `true` if smart Backspace handling is enabled.
7247
+ * @since 3.18
7070
7248
  */
7071
7249
  get_smart_backspace(): boolean;
7072
7250
 
@@ -7079,6 +7257,7 @@ export namespace GtkSource {
7079
7257
 
7080
7258
  /**
7081
7259
  * @returns the value of the {@link GtkSource.View.space_drawer} property.
7260
+ * @since 3.24
7082
7261
  */
7083
7262
  get_space_drawer(): SpaceDrawer;
7084
7263
 
@@ -7100,6 +7279,7 @@ export namespace GtkSource {
7100
7279
  * empty lines are not indented.
7101
7280
  * @param start {@link Gtk.TextIter} of the first line to indent
7102
7281
  * @param end {@link Gtk.TextIter} of the last line to indent
7282
+ * @since 3.16
7103
7283
  */
7104
7284
  indent_lines(start: Gtk.TextIter, end: Gtk.TextIter): void;
7105
7285
 
@@ -7184,6 +7364,7 @@ export namespace GtkSource {
7184
7364
  /**
7185
7365
  * Sets the {@link GtkSource.View.show_line_marks} property.
7186
7366
  * @param show the new value.
7367
+ * @since 2.2
7187
7368
  */
7188
7369
  set_show_line_marks(show: boolean): void;
7189
7370
 
@@ -7203,6 +7384,7 @@ export namespace GtkSource {
7203
7384
  * When set to `true`, pressing the Backspace key will try to delete spaces
7204
7385
  * up to the previous tab stop.
7205
7386
  * @param smart_backspace whether to enable smart Backspace handling.
7387
+ * @since 3.18
7206
7388
  */
7207
7389
  set_smart_backspace(smart_backspace: boolean): void;
7208
7390
 
@@ -7224,6 +7406,7 @@ export namespace GtkSource {
7224
7406
  * specified lines.
7225
7407
  * @param start {@link Gtk.TextIter} of the first line to indent
7226
7408
  * @param end {@link Gtk.TextIter} of the last line to indent
7409
+ * @since 3.16
7227
7410
  */
7228
7411
  unindent_lines(start: Gtk.TextIter, end: Gtk.TextIter): void;
7229
7412
 
@@ -7292,36 +7475,42 @@ export namespace GtkSource {
7292
7475
  * display overlayed graphics, like the overshoot indication,
7293
7476
  * at the right position.
7294
7477
  * @returns `true` if `border` has been set
7478
+ * @since 3.16
7295
7479
  */
7296
7480
  get_border(): [boolean, Gtk.Border];
7297
7481
 
7298
7482
  /**
7299
7483
  * Retrieves the {@link Gtk.Adjustment} used for horizontal scrolling.
7300
7484
  * @returns horizontal {@link Gtk.Adjustment}.
7485
+ * @since 3.0
7301
7486
  */
7302
7487
  get_hadjustment(): Gtk.Adjustment;
7303
7488
 
7304
7489
  /**
7305
7490
  * Gets the horizontal {@link Gtk.ScrollablePolicy}.
7306
7491
  * @returns The horizontal {@link Gtk.ScrollablePolicy}.
7492
+ * @since 3.0
7307
7493
  */
7308
7494
  get_hscroll_policy(): Gtk.ScrollablePolicy;
7309
7495
 
7310
7496
  /**
7311
7497
  * Retrieves the {@link Gtk.Adjustment} used for vertical scrolling.
7312
7498
  * @returns vertical {@link Gtk.Adjustment}.
7499
+ * @since 3.0
7313
7500
  */
7314
7501
  get_vadjustment(): Gtk.Adjustment;
7315
7502
 
7316
7503
  /**
7317
7504
  * Gets the vertical {@link Gtk.ScrollablePolicy}.
7318
7505
  * @returns The vertical {@link Gtk.ScrollablePolicy}.
7506
+ * @since 3.0
7319
7507
  */
7320
7508
  get_vscroll_policy(): Gtk.ScrollablePolicy;
7321
7509
 
7322
7510
  /**
7323
7511
  * Sets the horizontal adjustment of the {@link Gtk.Scrollable}.
7324
7512
  * @param hadjustment a {@link Gtk.Adjustment}
7513
+ * @since 3.0
7325
7514
  */
7326
7515
  set_hadjustment(hadjustment: Gtk.Adjustment | null): void;
7327
7516
 
@@ -7330,12 +7519,14 @@ export namespace GtkSource {
7330
7519
  * horizontal scrolling should start below the minimum width or
7331
7520
  * below the natural width.
7332
7521
  * @param policy the horizontal {@link Gtk.ScrollablePolicy}
7522
+ * @since 3.0
7333
7523
  */
7334
7524
  set_hscroll_policy(policy: Gtk.ScrollablePolicy): void;
7335
7525
 
7336
7526
  /**
7337
7527
  * Sets the vertical adjustment of the {@link Gtk.Scrollable}.
7338
7528
  * @param vadjustment a {@link Gtk.Adjustment}
7529
+ * @since 3.0
7339
7530
  */
7340
7531
  set_vadjustment(vadjustment: Gtk.Adjustment | null): void;
7341
7532
 
@@ -7344,6 +7535,7 @@ export namespace GtkSource {
7344
7535
  * vertical scrolling should start below the minimum height or
7345
7536
  * below the natural height.
7346
7537
  * @param policy the vertical {@link Gtk.ScrollablePolicy}
7538
+ * @since 3.0
7347
7539
  */
7348
7540
  set_vscroll_policy(policy: Gtk.ScrollablePolicy): void;
7349
7541
 
@@ -7353,6 +7545,7 @@ export namespace GtkSource {
7353
7545
  * be treeview headers. GTK+ can use this information to
7354
7546
  * display overlayed graphics, like the overshoot indication,
7355
7547
  * at the right position.
7548
+ * @since 3.16
7356
7549
  * @virtual
7357
7550
  */
7358
7551
  vfunc_get_border(): [boolean, Gtk.Border];
@@ -7457,6 +7650,7 @@ export namespace GtkSource {
7457
7650
  * It is useful for example for `g_slist_find_custom()`.
7458
7651
  * @param a a {@link GtkSource.Encoding}.
7459
7652
  * @param b a {@link GtkSource.Encoding}.
7653
+ * @since 299.6
7460
7654
  */
7461
7655
  static compare_func(a: null, b: null): number;
7462
7656
 
@@ -7465,11 +7659,13 @@ export namespace GtkSource {
7465
7659
  * `gtk_source_encoding_copy()`. It is useful for example for `g_slist_copy_deep()`.
7466
7660
  * @param src a {@link GtkSource.Encoding}.
7467
7661
  * @param data Additional data (ignored).
7662
+ * @since 299.6
7468
7663
  */
7469
7664
  static copy_func(src: null, data: null): null;
7470
7665
 
7471
7666
  /**
7472
7667
  * Gets a list of all encodings known by {@link GtkSource.Encoding}.
7668
+ * @since 299.6
7473
7669
  */
7474
7670
  static get_all(): Encoding[];
7475
7671
 
@@ -7484,6 +7680,7 @@ export namespace GtkSource {
7484
7680
  * Note that the returned list doesn't contain all encodings known by
7485
7681
  * {@link GtkSource.Encoding}, it is a limited list that contains only the encodings
7486
7682
  * that have the most likelihood to fit for the current locale.
7683
+ * @since 299.6
7487
7684
  */
7488
7685
  static get_default_candidates(): Encoding[];
7489
7686
 
@@ -7491,12 +7688,14 @@ export namespace GtkSource {
7491
7688
  * A convenience function to remove duplicated encodings in a list.
7492
7689
  * @param list a list of {@link GtkSource.Encoding}'s.
7493
7690
  * @param removal_type the {@link GtkSource.EncodingDuplicates}.
7691
+ * @since 299.6
7494
7692
  */
7495
7693
  static remove_duplicates(list: Encoding[], removal_type: EncodingDuplicates): Encoding[];
7496
7694
 
7497
7695
  // Methods
7498
7696
  /**
7499
7697
  * @returns a copy of `enc`.
7698
+ * @since 299.6
7500
7699
  */
7501
7700
  copy(): Encoding;
7502
7701
 
@@ -7509,14 +7708,19 @@ export namespace GtkSource {
7509
7708
  * iconv-compatible charsets are case insensitive).
7510
7709
  * @param enc2 a {@link GtkSource.Encoding}, or `null`.
7511
7710
  * @returns whether `enc1` and `enc2` are equal.
7711
+ * @since 299.6
7512
7712
  */
7513
7713
  equals(enc2: Encoding | null): boolean;
7514
7714
 
7715
+ /**
7716
+ * @since 299.6
7717
+ */
7515
7718
  free(): void;
7516
7719
 
7517
7720
  /**
7518
7721
  * Gets the character set of the {@link GtkSource.Encoding}, such as "UTF-8" or "ISO-8859-1".
7519
7722
  * @returns the character set of the {@link GtkSource.Encoding}.
7723
+ * @since 299.6
7520
7724
  */
7521
7725
  get_charset(): string;
7522
7726
 
@@ -7525,6 +7729,7 @@ export namespace GtkSource {
7525
7729
  * the charset is unknown by {@link GtkSource.Encoding}, "Unknown" is returned. The
7526
7730
  * return value is already translated by gettext.
7527
7731
  * @returns the name of the {@link GtkSource.Encoding}.
7732
+ * @since 299.6
7528
7733
  */
7529
7734
  get_name(): string;
7530
7735
 
@@ -7536,11 +7741,13 @@ export namespace GtkSource {
7536
7741
  * When the charset string comes from an untrusted source, it can be desirable
7537
7742
  * to check it.
7538
7743
  * @returns whether `enc` has a charset known by {@link GtkSource.Encoding}.
7744
+ * @since 299.6
7539
7745
  */
7540
7746
  has_known_charset(): boolean;
7541
7747
 
7542
7748
  /**
7543
7749
  * @returns whether `enc` is the locale encoding (see `gtk_source_encoding_new_from_locale()`).
7750
+ * @since 299.6
7544
7751
  */
7545
7752
  is_locale(): boolean;
7546
7753
 
@@ -7551,6 +7758,7 @@ export namespace GtkSource {
7551
7758
  * "UTF-8". But iconv supports other variants: "UTF8", "utf-8" and "utf8". This
7552
7759
  * function returns `true` for all UTF-8 variants supported by iconv.
7553
7760
  * @returns whether `enc` is a UTF-8 encoding.
7761
+ * @since 299.6
7554
7762
  */
7555
7763
  is_utf8(): boolean;
7556
7764
 
@@ -7559,6 +7767,7 @@ export namespace GtkSource {
7559
7767
  * "Unicode (UTF-8)". If the name is unknown, just the charset is returned. The
7560
7768
  * name is translated by gettext.
7561
7769
  * @returns a string representation. Free with `g_free()` when no longer needed.
7770
+ * @since 299.6
7562
7771
  */
7563
7772
  to_string(): string;
7564
7773
  }
@@ -7741,17 +7950,20 @@ export namespace GtkSource {
7741
7950
  /**
7742
7951
  * Gets the subregion at this iterator.
7743
7952
  * @returns `true` if `start` and `end` have been set successfully (if non-`null`), or `false` if `iter` is the end iterator or if the region is empty.
7953
+ * @since 3.22
7744
7954
  */
7745
7955
  get_subregion(): [boolean, Gtk.TextIter | null, Gtk.TextIter | null];
7746
7956
 
7747
7957
  /**
7748
7958
  * @returns whether `iter` is the end iterator.
7959
+ * @since 3.22
7749
7960
  */
7750
7961
  is_end(): boolean;
7751
7962
 
7752
7963
  /**
7753
7964
  * Moves `iter` to the next subregion.
7754
7965
  * @returns `true` if `iter` moved and is dereferenceable, or `false` if `iter` has been set to the end iterator.
7966
+ * @since 3.22
7755
7967
  */
7756
7968
  next(): boolean;
7757
7969
  }
@@ -7871,18 +8083,21 @@ export namespace GtkSource {
7871
8083
  * If `style` is `null`, the related `*-set` properties of {@link Gtk.TextTag} are set to
7872
8084
  * `false`.
7873
8085
  * @param tag a {@link Gtk.TextTag} to apply styles to.
8086
+ * @since 3.22
7874
8087
  */
7875
8088
  apply(tag: Gtk.TextTag): void;
7876
8089
 
7877
8090
  /**
7878
8091
  * Increases the reference count of `style` by one.
7879
8092
  * @returns the passed in `style`.
8093
+ * @since 299.2
7880
8094
  */
7881
8095
  ref(): Style;
7882
8096
 
7883
8097
  /**
7884
8098
  * Decreases the reference count of `style` by one. If the reference count drops
7885
8099
  * to 0, `style` is freed.
8100
+ * @since 299.2
7886
8101
  */
7887
8102
  unref(): void;
7888
8103
  }
@@ -7965,6 +8180,7 @@ export namespace GtkSource {
7965
8180
  /**
7966
8181
  * The virtual function pointer for `gtk_source_completion_proposal_get_gicon()`.
7967
8182
  * By default, `null` is returned.
8183
+ * @since 3.18
7968
8184
  * @virtual
7969
8185
  */
7970
8186
  vfunc_get_gicon(): Gio.Icon | null;
@@ -7979,6 +8195,7 @@ export namespace GtkSource {
7979
8195
  /**
7980
8196
  * The virtual function pointer for `gtk_source_completion_proposal_get_icon_name()`.
7981
8197
  * By default, `null` is returned.
8198
+ * @since 3.18
7982
8199
  * @virtual
7983
8200
  */
7984
8201
  vfunc_get_icon_name(): string | null;
@@ -8060,6 +8277,7 @@ export namespace GtkSource {
8060
8277
 
8061
8278
  /**
8062
8279
  * @returns the {@link Gio.Icon} for the icon of `proposal`.
8280
+ * @since 3.18
8063
8281
  */
8064
8282
  get_gicon(): Gio.Icon | null;
8065
8283
 
@@ -8070,6 +8288,7 @@ export namespace GtkSource {
8070
8288
 
8071
8289
  /**
8072
8290
  * @returns the icon name of `proposal`.
8291
+ * @since 3.18
8073
8292
  */
8074
8293
  get_icon_name(): string | null;
8075
8294
 
@@ -8155,6 +8374,7 @@ export namespace GtkSource {
8155
8374
 
8156
8375
  /**
8157
8376
  * Gets the {@link Gio.Icon} for the icon of `provider`.
8377
+ * @since 3.18
8158
8378
  * @virtual
8159
8379
  */
8160
8380
  vfunc_get_gicon(): Gio.Icon | null;
@@ -8167,6 +8387,7 @@ export namespace GtkSource {
8167
8387
 
8168
8388
  /**
8169
8389
  * Gets the icon name of `provider`.
8390
+ * @since 3.18
8170
8391
  * @virtual
8171
8392
  */
8172
8393
  vfunc_get_icon_name(): string | null;
@@ -8308,6 +8529,7 @@ export namespace GtkSource {
8308
8529
  /**
8309
8530
  * Gets the {@link Gio.Icon} for the icon of `provider`.
8310
8531
  * @returns The icon to be used for the provider, or `null` if the provider does not have a special icon.
8532
+ * @since 3.18
8311
8533
  */
8312
8534
  get_gicon(): Gio.Icon | null;
8313
8535
 
@@ -8320,6 +8542,7 @@ export namespace GtkSource {
8320
8542
  /**
8321
8543
  * Gets the icon name of `provider`.
8322
8544
  * @returns The icon name to be used for the provider, or `null` if the provider does not have a special icon.
8545
+ * @since 3.18
8323
8546
  */
8324
8547
  get_icon_name(): string | null;
8325
8548
 
@@ -8434,36 +8657,42 @@ export namespace GtkSource {
8434
8657
  * Begin a not undoable action on the buffer. All changes between this call
8435
8658
  * and the call to `gtk_source_undo_manager_end_not_undoable_action()` cannot
8436
8659
  * be undone. This function should be re-entrant.
8660
+ * @since 2.10
8437
8661
  * @virtual
8438
8662
  */
8439
8663
  vfunc_begin_not_undoable_action(): void;
8440
8664
 
8441
8665
  /**
8442
8666
  * Get whether there are redo operations available.
8667
+ * @since 2.10
8443
8668
  * @virtual
8444
8669
  */
8445
8670
  vfunc_can_redo(): boolean;
8446
8671
 
8447
8672
  /**
8448
8673
  * Emits the {@link GtkSource.UndoManager.SignalSignatures.can_redo_changed | GtkSource.UndoManager::can-redo-changed} signal.
8674
+ * @since 2.10
8449
8675
  * @virtual
8450
8676
  */
8451
8677
  vfunc_can_redo_changed(): void;
8452
8678
 
8453
8679
  /**
8454
8680
  * Get whether there are undo operations available.
8681
+ * @since 2.10
8455
8682
  * @virtual
8456
8683
  */
8457
8684
  vfunc_can_undo(): boolean;
8458
8685
 
8459
8686
  /**
8460
8687
  * Emits the {@link GtkSource.UndoManager.SignalSignatures.can_undo_changed | GtkSource.UndoManager::can-undo-changed} signal.
8688
+ * @since 2.10
8461
8689
  * @virtual
8462
8690
  */
8463
8691
  vfunc_can_undo_changed(): void;
8464
8692
 
8465
8693
  /**
8466
8694
  * Ends a not undoable action on the buffer.
8695
+ * @since 2.10
8467
8696
  * @virtual
8468
8697
  */
8469
8698
  vfunc_end_not_undoable_action(): void;
@@ -8472,6 +8701,7 @@ export namespace GtkSource {
8472
8701
  * Perform a single redo. Calling this function when there are no redo operations
8473
8702
  * available is an error. Use `gtk_source_undo_manager_can_redo()` to find out
8474
8703
  * if there are redo operations available.
8704
+ * @since 2.10
8475
8705
  * @virtual
8476
8706
  */
8477
8707
  vfunc_redo(): void;
@@ -8480,6 +8710,7 @@ export namespace GtkSource {
8480
8710
  * Perform a single undo. Calling this function when there are no undo operations
8481
8711
  * available is an error. Use `gtk_source_undo_manager_can_undo()` to find out
8482
8712
  * if there are undo operations available.
8713
+ * @since 2.10
8483
8714
  * @virtual
8484
8715
  */
8485
8716
  vfunc_undo(): void;
@@ -8504,33 +8735,39 @@ export namespace GtkSource {
8504
8735
  * Begin a not undoable action on the buffer. All changes between this call
8505
8736
  * and the call to `gtk_source_undo_manager_end_not_undoable_action()` cannot
8506
8737
  * be undone. This function should be re-entrant.
8738
+ * @since 2.10
8507
8739
  */
8508
8740
  begin_not_undoable_action(): void;
8509
8741
 
8510
8742
  /**
8511
8743
  * Get whether there are redo operations available.
8512
8744
  * @returns `true` if there are redo operations available, `false` otherwise
8745
+ * @since 2.10
8513
8746
  */
8514
8747
  can_redo(): boolean;
8515
8748
 
8516
8749
  /**
8517
8750
  * Emits the {@link GtkSource.UndoManager.SignalSignatures.can_redo_changed | GtkSource.UndoManager::can-redo-changed} signal.
8751
+ * @since 2.10
8518
8752
  */
8519
8753
  can_redo_changed(): void;
8520
8754
 
8521
8755
  /**
8522
8756
  * Get whether there are undo operations available.
8523
8757
  * @returns `true` if there are undo operations available, `false` otherwise
8758
+ * @since 2.10
8524
8759
  */
8525
8760
  can_undo(): boolean;
8526
8761
 
8527
8762
  /**
8528
8763
  * Emits the {@link GtkSource.UndoManager.SignalSignatures.can_undo_changed | GtkSource.UndoManager::can-undo-changed} signal.
8764
+ * @since 2.10
8529
8765
  */
8530
8766
  can_undo_changed(): void;
8531
8767
 
8532
8768
  /**
8533
8769
  * Ends a not undoable action on the buffer.
8770
+ * @since 2.10
8534
8771
  */
8535
8772
  end_not_undoable_action(): void;
8536
8773
 
@@ -8538,6 +8775,7 @@ export namespace GtkSource {
8538
8775
  * Perform a single redo. Calling this function when there are no redo operations
8539
8776
  * available is an error. Use `gtk_source_undo_manager_can_redo()` to find out
8540
8777
  * if there are redo operations available.
8778
+ * @since 2.10
8541
8779
  */
8542
8780
  redo(): void;
8543
8781
 
@@ -8545,6 +8783,7 @@ export namespace GtkSource {
8545
8783
  * Perform a single undo. Calling this function when there are no undo operations
8546
8784
  * available is an error. Use `gtk_source_undo_manager_can_undo()` to find out
8547
8785
  * if there are undo operations available.
8786
+ * @since 2.10
8548
8787
  */
8549
8788
  undo(): void;
8550
8789
  }