@girs/gtksource-300 4.2.0 → 4.4.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.
@@ -998,6 +998,14 @@ export namespace GtkSource {
998
998
  emit<K extends keyof Buffer.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Buffer.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
999
999
  emit(signal: string, ...args: any[]): void;
1000
1000
 
1001
+ // Static methods
1002
+ /**
1003
+ * Removes one trailing newline of `buffer` if it contains at least one.
1004
+ * @param buffer a {@link Gtk.TextBuffer}.
1005
+ * @since 299.7
1006
+ */
1007
+ static remove_trailing_newline(buffer: Gtk.TextBuffer): void;
1008
+
1001
1009
  // Virtual methods
1002
1010
  /**
1003
1011
  * @param iter
@@ -1033,6 +1041,7 @@ export namespace GtkSource {
1033
1041
  * @param iter an iterator.
1034
1042
  * @param category category to search for, or `null`
1035
1043
  * @returns whether `iter` was moved.
1044
+ * @since 2.2
1036
1045
  */
1037
1046
  backward_iter_to_source_mark(iter: Gtk.TextIter, category: string | null): boolean;
1038
1047
 
@@ -1052,6 +1061,7 @@ export namespace GtkSource {
1052
1061
  * @param case_type how to change the case.
1053
1062
  * @param start a {@link Gtk.TextIter}.
1054
1063
  * @param end a {@link Gtk.TextIter}.
1064
+ * @since 3.12
1055
1065
  */
1056
1066
  change_case(case_type: ChangeCaseType, start: Gtk.TextIter, end: Gtk.TextIter): void;
1057
1067
 
@@ -1073,6 +1083,7 @@ export namespace GtkSource {
1073
1083
  * @param category a string defining the mark category.
1074
1084
  * @param where location to place the mark.
1075
1085
  * @returns a new {@link GtkSource.Mark}, owned by the buffer.
1086
+ * @since 2.2
1076
1087
  */
1077
1088
  create_source_mark(name: string | null, category: string, where: Gtk.TextIter): Mark;
1078
1089
 
@@ -1106,6 +1117,7 @@ export namespace GtkSource {
1106
1117
  * @param iter an iterator.
1107
1118
  * @param category category to search for, or `null`
1108
1119
  * @returns whether `iter` was moved.
1120
+ * @since 2.2
1109
1121
  */
1110
1122
  forward_iter_to_source_mark(iter: Gtk.TextIter, category: string | null): boolean;
1111
1123
 
@@ -1115,6 +1127,7 @@ export namespace GtkSource {
1115
1127
  * See the {@link GtkSource.Buffer} description for the list of default context classes.
1116
1128
  * @param iter a {@link Gtk.TextIter}.
1117
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
1118
1131
  */
1119
1132
  get_context_classes_at_iter(iter: Gtk.TextIter): string[];
1120
1133
 
@@ -1134,6 +1147,7 @@ export namespace GtkSource {
1134
1147
 
1135
1148
  /**
1136
1149
  * @returns whether the `buffer` has an implicit trailing newline.
1150
+ * @since 3.14
1137
1151
  */
1138
1152
  get_implicit_trailing_newline(): boolean;
1139
1153
 
@@ -1157,6 +1171,7 @@ export namespace GtkSource {
1157
1171
  * @param iter an iterator.
1158
1172
  * @param category category to search for, or `null`
1159
1173
  * @returns a newly allocated {@link GLib.SList}.
1174
+ * @since 2.2
1160
1175
  */
1161
1176
  get_source_marks_at_iter(iter: Gtk.TextIter, category: string | null): Mark[];
1162
1177
 
@@ -1166,6 +1181,7 @@ export namespace GtkSource {
1166
1181
  * @param line a line number.
1167
1182
  * @param category category to search for, or `null`
1168
1183
  * @returns a newly allocated {@link GLib.SList}.
1184
+ * @since 2.2
1169
1185
  */
1170
1186
  get_source_marks_at_line(line: number, category: string | null): Mark[];
1171
1187
 
@@ -1196,6 +1212,7 @@ export namespace GtkSource {
1196
1212
  * @param iter a {@link Gtk.TextIter}.
1197
1213
  * @param context_class the context class.
1198
1214
  * @returns whether we found a context class toggle before `iter`
1215
+ * @since 2.10
1199
1216
  */
1200
1217
  iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): boolean;
1201
1218
 
@@ -1210,6 +1227,7 @@ export namespace GtkSource {
1210
1227
  * @param iter a {@link Gtk.TextIter}.
1211
1228
  * @param context_class the context class.
1212
1229
  * @returns whether we found a context class toggle after `iter`
1230
+ * @since 2.10
1213
1231
  */
1214
1232
  iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): boolean;
1215
1233
 
@@ -1220,6 +1238,7 @@ export namespace GtkSource {
1220
1238
  * @param iter a {@link Gtk.TextIter}.
1221
1239
  * @param context_class class to search for.
1222
1240
  * @returns whether `iter` has the context class.
1241
+ * @since 2.10
1223
1242
  */
1224
1243
  iter_has_context_class(iter: Gtk.TextIter, context_class: string): boolean;
1225
1244
 
@@ -1227,6 +1246,7 @@ export namespace GtkSource {
1227
1246
  * Joins the lines of text between the specified iterators.
1228
1247
  * @param start a {@link Gtk.TextIter}.
1229
1248
  * @param end a {@link Gtk.TextIter}.
1249
+ * @since 3.16
1230
1250
  */
1231
1251
  join_lines(start: Gtk.TextIter, end: Gtk.TextIter): void;
1232
1252
 
@@ -1244,6 +1264,7 @@ export namespace GtkSource {
1244
1264
  * @param start a {@link Gtk.TextIter}.
1245
1265
  * @param end a {@link Gtk.TextIter}.
1246
1266
  * @param category category to search for, or `null`.
1267
+ * @since 2.2
1247
1268
  */
1248
1269
  remove_source_marks(start: Gtk.TextIter, end: Gtk.TextIter, category: string | null): void;
1249
1270
 
@@ -1287,6 +1308,7 @@ export namespace GtkSource {
1287
1308
  * content is not modified when loaded into the `buffer`, and the `buffer`'s
1288
1309
  * content is not modified when saved into a file.
1289
1310
  * @param implicit_trailing_newline the new value.
1311
+ * @since 3.14
1290
1312
  */
1291
1313
  set_implicit_trailing_newline(implicit_trailing_newline: boolean): void;
1292
1314
 
@@ -1345,6 +1367,7 @@ export namespace GtkSource {
1345
1367
  * @param end a {@link Gtk.TextIter}.
1346
1368
  * @param flags {@link GtkSource.SortFlags} specifying how the sort should behave
1347
1369
  * @param column sort considering the text starting at the given column
1370
+ * @since 3.18
1348
1371
  */
1349
1372
  sort_lines(start: Gtk.TextIter, end: Gtk.TextIter, flags: SortFlags, column: number): void;
1350
1373
 
@@ -2020,10 +2043,9 @@ export namespace GtkSource {
2020
2043
 
2021
2044
  // Methods
2022
2045
  /**
2023
- * Moves the {@link GtkSource.CompletionInfo} to `iter`. If `iter` is `null` `info` is
2024
- * moved to the cursor position. Moving will respect the {@link Gdk.Gravity} setting
2025
- * of the info window and will ensure the line at `iter` is not occluded by
2026
- * the window.
2046
+ * Moves the {@link GtkSource.CompletionInfo} to `iter`. If `iter` is `null` `info` is moved
2047
+ * to the cursor position. Moving will respect the {@link Gdk.Gravity} setting of the
2048
+ * info window and will ensure the line at `iter` is not occluded by the window.
2027
2049
  * @param view a {@link Gtk.TextView} on which the info window should be positioned.
2028
2050
  * @param iter a {@link Gtk.TextIter}.
2029
2051
  */
@@ -2077,36 +2099,43 @@ export namespace GtkSource {
2077
2099
  // Methods
2078
2100
  /**
2079
2101
  * @param gicon the {@link Gio.Icon}, or `null`.
2102
+ * @since 3.24
2080
2103
  */
2081
2104
  set_gicon(gicon: Gio.Icon | null): void;
2082
2105
 
2083
2106
  /**
2084
2107
  * @param icon the {@link GdkPixbuf.Pixbuf}, or `null`.
2108
+ * @since 3.24
2085
2109
  */
2086
2110
  set_icon(icon: GdkPixbuf.Pixbuf | null): void;
2087
2111
 
2088
2112
  /**
2089
2113
  * @param icon_name the icon name, or `null`.
2114
+ * @since 3.24
2090
2115
  */
2091
2116
  set_icon_name(icon_name: string | null): void;
2092
2117
 
2093
2118
  /**
2094
2119
  * @param info the info, or `null`.
2120
+ * @since 3.24
2095
2121
  */
2096
2122
  set_info(info: string | null): void;
2097
2123
 
2098
2124
  /**
2099
2125
  * @param label the label, or `null`.
2126
+ * @since 3.24
2100
2127
  */
2101
2128
  set_label(label: string | null): void;
2102
2129
 
2103
2130
  /**
2104
2131
  * @param markup the markup, or `null`.
2132
+ * @since 3.24
2105
2133
  */
2106
2134
  set_markup(markup: string | null): void;
2107
2135
 
2108
2136
  /**
2109
2137
  * @param text the text, or `null`.
2138
+ * @since 3.24
2110
2139
  */
2111
2140
  set_text(text: string | null): void;
2112
2141
 
@@ -2128,6 +2157,7 @@ export namespace GtkSource {
2128
2157
 
2129
2158
  /**
2130
2159
  * @returns the {@link Gio.Icon} for the icon of `proposal`.
2160
+ * @since 3.18
2131
2161
  */
2132
2162
  get_gicon(): Gio.Icon | null;
2133
2163
 
@@ -2138,6 +2168,7 @@ export namespace GtkSource {
2138
2168
 
2139
2169
  /**
2140
2170
  * @returns the icon name of `proposal`.
2171
+ * @since 3.18
2141
2172
  */
2142
2173
  get_icon_name(): string | null;
2143
2174
 
@@ -2204,6 +2235,7 @@ export namespace GtkSource {
2204
2235
  /**
2205
2236
  * The virtual function pointer for `gtk_source_completion_proposal_get_gicon()`.
2206
2237
  * By default, `null` is returned.
2238
+ * @since 3.18
2207
2239
  * @virtual
2208
2240
  */
2209
2241
  vfunc_get_gicon(): Gio.Icon | null;
@@ -2218,6 +2250,7 @@ export namespace GtkSource {
2218
2250
  /**
2219
2251
  * The virtual function pointer for `gtk_source_completion_proposal_get_icon_name()`.
2220
2252
  * By default, `null` is returned.
2253
+ * @since 3.18
2221
2254
  * @virtual
2222
2255
  */
2223
2256
  vfunc_get_icon_name(): string | null;
@@ -2410,26 +2443,31 @@ export namespace GtkSource {
2410
2443
  *
2411
2444
  * Since this function is synchronous, it is advised to call it only on local
2412
2445
  * files. See `gtk_source_file_is_local()`.
2446
+ * @since 3.18
2413
2447
  */
2414
2448
  check_file_on_disk(): void;
2415
2449
 
2416
2450
  /**
2417
2451
  * @returns the current value of the {@link GtkSource.File.compression_type} property.
2452
+ * @since 3.14
2418
2453
  */
2419
2454
  get_compression_type(): CompressionType;
2420
2455
 
2421
2456
  /**
2422
2457
  * @returns the current value of the {@link GtkSource.File.encoding} property.
2458
+ * @since 3.14
2423
2459
  */
2424
2460
  get_encoding(): Encoding | null;
2425
2461
 
2426
2462
  /**
2427
2463
  * @returns the current value of the {@link GtkSource.File.location} property.
2464
+ * @since 3.14
2428
2465
  */
2429
2466
  get_location(): Gio.File | null;
2430
2467
 
2431
2468
  /**
2432
2469
  * @returns the current value of the {@link GtkSource.File.newline_type} property.
2470
+ * @since 3.14
2433
2471
  */
2434
2472
  get_newline_type(): NewlineType;
2435
2473
 
@@ -2440,6 +2478,7 @@ export namespace GtkSource {
2440
2478
  * To have an up-to-date value, you must first call
2441
2479
  * `gtk_source_file_check_file_on_disk()`.
2442
2480
  * @returns whether the file has been deleted.
2481
+ * @since 3.18
2443
2482
  */
2444
2483
  is_deleted(): boolean;
2445
2484
 
@@ -2450,6 +2489,7 @@ export namespace GtkSource {
2450
2489
  * To have an up-to-date value, you must first call
2451
2490
  * `gtk_source_file_check_file_on_disk()`.
2452
2491
  * @returns whether the file is externally modified.
2492
+ * @since 3.18
2453
2493
  */
2454
2494
  is_externally_modified(): boolean;
2455
2495
 
@@ -2457,17 +2497,20 @@ export namespace GtkSource {
2457
2497
  * Returns whether the file is local. If the {@link GtkSource.File.location} is `null`,
2458
2498
  * returns `false`.
2459
2499
  * @returns whether the file is local.
2500
+ * @since 3.18
2460
2501
  */
2461
2502
  is_local(): boolean;
2462
2503
 
2463
2504
  /**
2464
2505
  * @returns the current value of the {@link GtkSource.File.read_only} property.
2506
+ * @since 3.18
2465
2507
  */
2466
2508
  is_readonly(): boolean;
2467
2509
 
2468
2510
  /**
2469
2511
  * Sets the {@link GtkSource.File.location} property.
2470
2512
  * @param location the new {@link Gio.File}, or `null`.
2513
+ * @since 3.14
2471
2514
  */
2472
2515
  set_location(location: Gio.File | null): void;
2473
2516
  }
@@ -2601,41 +2644,49 @@ export namespace GtkSource {
2601
2644
  // Methods
2602
2645
  /**
2603
2646
  * @returns the value of the {@link GtkSource.FileLoader.buffer} property.
2647
+ * @since 3.14
2604
2648
  */
2605
2649
  get_buffer(): Buffer | null;
2606
2650
 
2607
2651
  /**
2608
2652
  * @returns the detected compression type.
2653
+ * @since 3.14
2609
2654
  */
2610
2655
  get_compression_type(): CompressionType;
2611
2656
 
2612
2657
  /**
2613
2658
  * @returns the detected encoding.
2659
+ * @since 3.14
2614
2660
  */
2615
2661
  get_encoding(): Encoding;
2616
2662
 
2617
2663
  /**
2618
2664
  * @returns the value of the {@link GtkSource.FileLoader.file} property.
2665
+ * @since 3.14
2619
2666
  */
2620
2667
  get_file(): File | null;
2621
2668
 
2622
2669
  /**
2623
2670
  * @returns the value of the {@link GtkSource.FileLoader.input_stream} property.
2671
+ * @since 3.14
2624
2672
  */
2625
2673
  get_input_stream(): Gio.InputStream | null;
2626
2674
 
2627
2675
  /**
2628
2676
  * @returns the value of the {@link GtkSource.FileLoader.location} property.
2677
+ * @since 3.14
2629
2678
  */
2630
2679
  get_location(): Gio.File | null;
2631
2680
 
2632
2681
  /**
2633
2682
  * @returns the value of the {@link GtkSource.FileLoader.max_size} property.
2683
+ * @since 299.6
2634
2684
  */
2635
2685
  get_max_size(): number;
2636
2686
 
2637
2687
  /**
2638
2688
  * @returns the detected newline type.
2689
+ * @since 3.14
2639
2690
  */
2640
2691
  get_newline_type(): NewlineType;
2641
2692
 
@@ -2646,6 +2697,7 @@ export namespace GtkSource {
2646
2697
  * @param io_priority the I/O priority of the request. E.g. `G_PRIORITY_LOW`, `G_PRIORITY_DEFAULT` or `G_PRIORITY_HIGH`.
2647
2698
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
2648
2699
  * @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
2700
+ * @since 3.14
2649
2701
  */
2650
2702
  load_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null): globalThis.Promise<boolean>;
2651
2703
 
@@ -2657,6 +2709,7 @@ export namespace GtkSource {
2657
2709
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
2658
2710
  * @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
2659
2711
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
2712
+ * @since 3.14
2660
2713
  */
2661
2714
  load_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback: Gio.AsyncReadyCallback<this> | null): void;
2662
2715
 
@@ -2668,6 +2721,7 @@ export namespace GtkSource {
2668
2721
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
2669
2722
  * @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
2670
2723
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
2724
+ * @since 3.14
2671
2725
  */
2672
2726
  load_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
2673
2727
 
@@ -2679,6 +2733,7 @@ export namespace GtkSource {
2679
2733
  * type.
2680
2734
  * @param result a {@link Gio.AsyncResult}.
2681
2735
  * @returns whether the contents has been loaded successfully.
2736
+ * @since 3.14
2682
2737
  */
2683
2738
  load_finish(result: Gio.AsyncResult): boolean;
2684
2739
 
@@ -2695,12 +2750,14 @@ export namespace GtkSource {
2695
2750
  * 2. Plus the default candidates as returned by
2696
2751
  * `gtk_source_encoding_get_default_candidates()`.
2697
2752
  * @param candidate_encodings a list of {@link GtkSource.Encoding}'s.
2753
+ * @since 3.14
2698
2754
  */
2699
2755
  set_candidate_encodings(candidate_encodings: Encoding[]): void;
2700
2756
 
2701
2757
  /**
2702
2758
  * Sets the {@link GtkSource.FileLoader.max_size} property.
2703
2759
  * @param max_size the new value.
2760
+ * @since 299.6
2704
2761
  */
2705
2762
  set_max_size(max_size: bigint | number): void;
2706
2763
  }
@@ -2847,36 +2904,43 @@ export namespace GtkSource {
2847
2904
  // Methods
2848
2905
  /**
2849
2906
  * @returns the {@link GtkSource.Buffer} to save.
2907
+ * @since 3.14
2850
2908
  */
2851
2909
  get_buffer(): Buffer;
2852
2910
 
2853
2911
  /**
2854
2912
  * @returns the compression type.
2913
+ * @since 3.14
2855
2914
  */
2856
2915
  get_compression_type(): CompressionType;
2857
2916
 
2858
2917
  /**
2859
2918
  * @returns the encoding.
2919
+ * @since 3.14
2860
2920
  */
2861
2921
  get_encoding(): Encoding;
2862
2922
 
2863
2923
  /**
2864
2924
  * @returns the {@link GtkSource.File}.
2925
+ * @since 3.14
2865
2926
  */
2866
2927
  get_file(): File;
2867
2928
 
2868
2929
  /**
2869
2930
  * @returns the flags.
2931
+ * @since 3.14
2870
2932
  */
2871
2933
  get_flags(): FileSaverFlags;
2872
2934
 
2873
2935
  /**
2874
2936
  * @returns the {@link Gio.File} where to save the buffer to.
2937
+ * @since 3.14
2875
2938
  */
2876
2939
  get_location(): Gio.File;
2877
2940
 
2878
2941
  /**
2879
2942
  * @returns the newline type.
2943
+ * @since 3.14
2880
2944
  */
2881
2945
  get_newline_type(): NewlineType;
2882
2946
 
@@ -2886,6 +2950,7 @@ export namespace GtkSource {
2886
2950
  * @param io_priority the I/O priority of the request. E.g. `G_PRIORITY_LOW`, `G_PRIORITY_DEFAULT` or `G_PRIORITY_HIGH`.
2887
2951
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
2888
2952
  * @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
2953
+ * @since 3.14
2889
2954
  */
2890
2955
  save_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null): globalThis.Promise<boolean>;
2891
2956
 
@@ -2896,6 +2961,7 @@ export namespace GtkSource {
2896
2961
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
2897
2962
  * @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
2898
2963
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
2964
+ * @since 3.14
2899
2965
  */
2900
2966
  save_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback: Gio.AsyncReadyCallback<this> | null): void;
2901
2967
 
@@ -2906,6 +2972,7 @@ export namespace GtkSource {
2906
2972
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
2907
2973
  * @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
2908
2974
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
2975
+ * @since 3.14
2909
2976
  */
2910
2977
  save_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
2911
2978
 
@@ -2920,6 +2987,7 @@ export namespace GtkSource {
2920
2987
  * if the file has been saved successfully.
2921
2988
  * @param result a {@link Gio.AsyncResult}.
2922
2989
  * @returns whether the file was saved successfully.
2990
+ * @since 3.14
2923
2991
  */
2924
2992
  save_finish(result: Gio.AsyncResult): boolean;
2925
2993
 
@@ -2927,6 +2995,7 @@ export namespace GtkSource {
2927
2995
  * Sets the compression type. By default the compression type is taken from the
2928
2996
  * {@link GtkSource.File}.
2929
2997
  * @param compression_type the new compression type.
2998
+ * @since 3.14
2930
2999
  */
2931
3000
  set_compression_type(compression_type: CompressionType): void;
2932
3001
 
@@ -2934,11 +3003,13 @@ export namespace GtkSource {
2934
3003
  * Sets the encoding. If `encoding` is `null`, the UTF-8 encoding will be set.
2935
3004
  * By default the encoding is taken from the {@link GtkSource.File}.
2936
3005
  * @param encoding the new encoding, or `null` for UTF-8.
3006
+ * @since 3.14
2937
3007
  */
2938
3008
  set_encoding(encoding: Encoding | null): void;
2939
3009
 
2940
3010
  /**
2941
3011
  * @param flags the new flags.
3012
+ * @since 3.14
2942
3013
  */
2943
3014
  set_flags(flags: FileSaverFlags): void;
2944
3015
 
@@ -2946,6 +3017,7 @@ export namespace GtkSource {
2946
3017
  * Sets the newline type. By default the newline type is taken from the
2947
3018
  * {@link GtkSource.File}.
2948
3019
  * @param newline_type the new newline type.
3020
+ * @since 3.14
2949
3021
  */
2950
3022
  set_newline_type(newline_type: NewlineType): void;
2951
3023
  }
@@ -3031,11 +3103,13 @@ export namespace GtkSource {
3031
3103
 
3032
3104
  /**
3033
3105
  * @returns the associated {@link GtkSource.View}.
3106
+ * @since 3.24
3034
3107
  */
3035
3108
  get_view(): View;
3036
3109
 
3037
3110
  /**
3038
3111
  * @returns the {@link Gtk.TextWindowType} of `gutter`.
3112
+ * @since 3.24
3039
3113
  */
3040
3114
  get_window_type(): Gtk.TextWindowType;
3041
3115
 
@@ -3046,18 +3120,21 @@ export namespace GtkSource {
3046
3120
  * @param renderer a gutter renderer (must inherit from {@link GtkSource.GutterRenderer}).
3047
3121
  * @param position the renderer position.
3048
3122
  * @returns `true` if operation succeeded. Otherwise `false`.
3123
+ * @since 3.0
3049
3124
  */
3050
3125
  insert(renderer: GutterRenderer, position: number): boolean;
3051
3126
 
3052
3127
  /**
3053
3128
  * Invalidates the drawable area of the gutter. You can use this to force a
3054
3129
  * redraw of the gutter if something has changed and needs to be redrawn.
3130
+ * @since 2.8
3055
3131
  */
3056
3132
  queue_draw(): void;
3057
3133
 
3058
3134
  /**
3059
3135
  * Removes `renderer` from `gutter`.
3060
3136
  * @param renderer a {@link GtkSource.GutterRenderer}.
3137
+ * @since 2.8
3061
3138
  */
3062
3139
  remove(renderer: GutterRenderer): void;
3063
3140
 
@@ -3065,6 +3142,7 @@ export namespace GtkSource {
3065
3142
  * Reorders `renderer` in `gutter` to new `position`.
3066
3143
  * @param renderer a {@link Gtk.CellRenderer}.
3067
3144
  * @param position the new renderer position.
3145
+ * @since 2.8
3068
3146
  */
3069
3147
  reorder(renderer: GutterRenderer, position: number): void;
3070
3148
  }
@@ -3943,6 +4021,7 @@ export namespace GtkSource {
3943
4021
  * is not present in the current style scheme.
3944
4022
  * @param style_id a style ID.
3945
4023
  * @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.
4024
+ * @since 3.4
3946
4025
  */
3947
4026
  get_style_fallback(style_id: string): string | null;
3948
4027
 
@@ -4092,6 +4171,7 @@ export namespace GtkSource {
4092
4171
  * @param filename a filename in Glib filename encoding, or `null`.
4093
4172
  * @param content_type a content type (as in GIO API), or `null`.
4094
4173
  * @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.
4174
+ * @since 2.4
4095
4175
  */
4096
4176
  guess_language(filename: string | null, content_type: string | null): Language | null;
4097
4177
 
@@ -4179,6 +4259,7 @@ export namespace GtkSource {
4179
4259
  /**
4180
4260
  * Returns the mark category.
4181
4261
  * @returns the category of the {@link GtkSource.Mark}.
4262
+ * @since 2.2
4182
4263
  */
4183
4264
  get_category(): string;
4184
4265
 
@@ -4189,6 +4270,7 @@ export namespace GtkSource {
4189
4270
  * If `category` is `null`, looks for marks of any category.
4190
4271
  * @param category a string specifying the mark category, or `null`.
4191
4272
  * @returns the next {@link GtkSource.Mark}, or `null`.
4273
+ * @since 2.2
4192
4274
  */
4193
4275
  next(category: string | null): Mark | null;
4194
4276
 
@@ -4199,6 +4281,7 @@ export namespace GtkSource {
4199
4281
  * If `category` is `null`, looks for marks of any category
4200
4282
  * @param category a string specifying the mark category, or `null`.
4201
4283
  * @returns the previous {@link GtkSource.Mark}, or `null`.
4284
+ * @since 2.2
4202
4285
  */
4203
4286
  prev(category: string): Mark | null;
4204
4287
  }
@@ -4808,6 +4891,7 @@ export namespace GtkSource {
4808
4891
  * Returns the name of the font used to print the text body. The returned string
4809
4892
  * must be freed with `g_free()`.
4810
4893
  * @returns a new string containing the name of the font used to print the text body.
4894
+ * @since 2.2
4811
4895
  */
4812
4896
  get_body_font_name(): string;
4813
4897
 
@@ -4815,6 +4899,7 @@ export namespace GtkSource {
4815
4899
  * Gets the bottom margin in units of `unit`.
4816
4900
  * @param unit the unit for the return value.
4817
4901
  * @returns the bottom margin.
4902
+ * @since 2.2
4818
4903
  */
4819
4904
  get_bottom_margin(unit: Gtk.Unit): number;
4820
4905
 
@@ -4823,6 +4908,7 @@ export namespace GtkSource {
4823
4908
  * object reference is owned by the compositor object and
4824
4909
  * should not be unreferenced.
4825
4910
  * @returns the {@link GtkSource.Buffer} associated with the compositor.
4911
+ * @since 2.2
4826
4912
  */
4827
4913
  get_buffer(): Buffer;
4828
4914
 
@@ -4830,6 +4916,7 @@ export namespace GtkSource {
4830
4916
  * Returns the name of the font used to print the page footer.
4831
4917
  * The returned string must be freed with `g_free()`.
4832
4918
  * @returns a new string containing the name of the font used to print the page footer.
4919
+ * @since 2.2
4833
4920
  */
4834
4921
  get_footer_font_name(): string;
4835
4922
 
@@ -4837,6 +4924,7 @@ export namespace GtkSource {
4837
4924
  * Returns the name of the font used to print the page header.
4838
4925
  * The returned string must be freed with `g_free()`.
4839
4926
  * @returns a new string containing the name of the font used to print the page header.
4927
+ * @since 2.2
4840
4928
  */
4841
4929
  get_header_font_name(): string;
4842
4930
 
@@ -4845,6 +4933,7 @@ export namespace GtkSource {
4845
4933
  * buffer rules. Note that highlighting will happen
4846
4934
  * only if the buffer to print has highlighting activated.
4847
4935
  * @returns `true` if the printed output will be highlighted.
4936
+ * @since 2.2
4848
4937
  */
4849
4938
  get_highlight_syntax(): boolean;
4850
4939
 
@@ -4852,6 +4941,7 @@ export namespace GtkSource {
4852
4941
  * Gets the left margin in units of `unit`.
4853
4942
  * @param unit the unit for the return value.
4854
4943
  * @returns the left margin
4944
+ * @since 2.2
4855
4945
  */
4856
4946
  get_left_margin(unit: Gtk.Unit): number;
4857
4947
 
@@ -4859,6 +4949,7 @@ export namespace GtkSource {
4859
4949
  * Returns the name of the font used to print line numbers on the left margin.
4860
4950
  * The returned string must be freed with `g_free()`.
4861
4951
  * @returns a new string containing the name of the font used to print line numbers on the left margin.
4952
+ * @since 2.2
4862
4953
  */
4863
4954
  get_line_numbers_font_name(): string;
4864
4955
 
@@ -4866,12 +4957,14 @@ export namespace GtkSource {
4866
4957
  * Returns the number of pages in the document or <code>-1</code> if the
4867
4958
  * document has not been completely paginated.
4868
4959
  * @returns the number of pages in the document or <code>-1</code> if the document has not been completely paginated.
4960
+ * @since 2.2
4869
4961
  */
4870
4962
  get_n_pages(): number;
4871
4963
 
4872
4964
  /**
4873
4965
  * Returns the current fraction of the document pagination that has been completed.
4874
4966
  * @returns a fraction from 0.0 to 1.0 inclusive.
4967
+ * @since 2.2
4875
4968
  */
4876
4969
  get_pagination_progress(): number;
4877
4970
 
@@ -4881,6 +4974,7 @@ export namespace GtkSource {
4881
4974
  * <emphasis>and</emphasis> some format strings have been specified
4882
4975
  * with `gtk_source_print_compositor_set_footer_format()`.
4883
4976
  * @returns `true` if the footer is set to be printed.
4977
+ * @since 2.2
4884
4978
  */
4885
4979
  get_print_footer(): boolean;
4886
4980
 
@@ -4890,6 +4984,7 @@ export namespace GtkSource {
4890
4984
  * <emphasis>and</emphasis> some format strings have been specified
4891
4985
  * with `gtk_source_print_compositor_set_header_format()`.
4892
4986
  * @returns `true` if the header is set to be printed.
4987
+ * @since 2.2
4893
4988
  */
4894
4989
  get_print_header(): boolean;
4895
4990
 
@@ -4898,6 +4993,7 @@ export namespace GtkSource {
4898
4993
  * value is 0, no line numbers will be printed. The default value is
4899
4994
  * 1 (i.e. numbers printed in all lines).
4900
4995
  * @returns the interval of printed line numbers.
4996
+ * @since 2.2
4901
4997
  */
4902
4998
  get_print_line_numbers(): number;
4903
4999
 
@@ -4905,12 +5001,14 @@ export namespace GtkSource {
4905
5001
  * Gets the right margin in units of `unit`.
4906
5002
  * @param unit the unit for the return value.
4907
5003
  * @returns the right margin.
5004
+ * @since 2.2
4908
5005
  */
4909
5006
  get_right_margin(unit: Gtk.Unit): number;
4910
5007
 
4911
5008
  /**
4912
5009
  * Returns the width of tabulation in characters for printed text.
4913
5010
  * @returns width of tab.
5011
+ * @since 2.2
4914
5012
  */
4915
5013
  get_tab_width(): number;
4916
5014
 
@@ -4918,12 +5016,14 @@ export namespace GtkSource {
4918
5016
  * Gets the top margin in units of `unit`.
4919
5017
  * @param unit the unit for the return value.
4920
5018
  * @returns the top margin.
5019
+ * @since 2.2
4921
5020
  */
4922
5021
  get_top_margin(unit: Gtk.Unit): number;
4923
5022
 
4924
5023
  /**
4925
5024
  * Gets the line wrapping mode for the printed text.
4926
5025
  * @returns the line wrap mode.
5026
+ * @since 2.2
4927
5027
  */
4928
5028
  get_wrap_mode(): Gtk.WrapMode;
4929
5029
 
@@ -4990,6 +5090,7 @@ export namespace GtkSource {
4990
5090
  * </programlisting></informalexample>
4991
5091
  * @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.
4992
5092
  * @returns `true` if the document has been completely paginated, `false` otherwise.
5093
+ * @since 2.2
4993
5094
  */
4994
5095
  paginate(context: Gtk.PrintContext): boolean;
4995
5096
 
@@ -5004,6 +5105,7 @@ export namespace GtkSource {
5004
5105
  * This function cannot be called anymore after the first call to the
5005
5106
  * `gtk_source_print_compositor_paginate()` function.
5006
5107
  * @param font_name the name of the default font for the body text.
5108
+ * @since 2.2
5007
5109
  */
5008
5110
  set_body_font_name(font_name: string): void;
5009
5111
 
@@ -5011,6 +5113,7 @@ export namespace GtkSource {
5011
5113
  * Sets the bottom margin used by `compositor`.
5012
5114
  * @param margin the new bottom margin in units of `unit`.
5013
5115
  * @param unit the units for `margin`.
5116
+ * @since 2.2
5014
5117
  */
5015
5118
  set_bottom_margin(margin: number, unit: Gtk.Unit): void;
5016
5119
 
@@ -5027,6 +5130,7 @@ export namespace GtkSource {
5027
5130
  * This function cannot be called anymore after the first call to the
5028
5131
  * `gtk_source_print_compositor_paginate()` function.
5029
5132
  * @param font_name the name of the font for the footer text, or `null`.
5133
+ * @since 2.2
5030
5134
  */
5031
5135
  set_footer_font_name(font_name: string | null): void;
5032
5136
 
@@ -5037,6 +5141,7 @@ export namespace GtkSource {
5037
5141
  * @param left a format string to print on the left of the footer.
5038
5142
  * @param center a format string to print on the center of the footer.
5039
5143
  * @param right a format string to print on the right of the footer.
5144
+ * @since 2.2
5040
5145
  */
5041
5146
  set_footer_format(separator: boolean, left: string | null, center: string | null, right: string | null): void;
5042
5147
 
@@ -5053,6 +5158,7 @@ export namespace GtkSource {
5053
5158
  * This function cannot be called anymore after the first call to the
5054
5159
  * `gtk_source_print_compositor_paginate()` function.
5055
5160
  * @param font_name the name of the font for header text, or `null`.
5161
+ * @since 2.2
5056
5162
  */
5057
5163
  set_header_font_name(font_name: string | null): void;
5058
5164
 
@@ -5082,6 +5188,7 @@ export namespace GtkSource {
5082
5188
  * @param left a format string to print on the left of the header.
5083
5189
  * @param center a format string to print on the center of the header.
5084
5190
  * @param right a format string to print on the right of the header.
5191
+ * @since 2.2
5085
5192
  */
5086
5193
  set_header_format(separator: boolean, left: string | null, center: string | null, right: string | null): void;
5087
5194
 
@@ -5092,6 +5199,7 @@ export namespace GtkSource {
5092
5199
  * This function cannot be called anymore after the first call to the
5093
5200
  * `gtk_source_print_compositor_paginate()` function.
5094
5201
  * @param highlight whether syntax should be highlighted.
5202
+ * @since 2.2
5095
5203
  */
5096
5204
  set_highlight_syntax(highlight: boolean): void;
5097
5205
 
@@ -5099,6 +5207,7 @@ export namespace GtkSource {
5099
5207
  * Sets the left margin used by `compositor`.
5100
5208
  * @param margin the new left margin in units of `unit`.
5101
5209
  * @param unit the units for `margin`.
5210
+ * @since 2.2
5102
5211
  */
5103
5212
  set_left_margin(margin: number, unit: Gtk.Unit): void;
5104
5213
 
@@ -5115,6 +5224,7 @@ export namespace GtkSource {
5115
5224
  * This function cannot be called anymore after the first call to the
5116
5225
  * `gtk_source_print_compositor_paginate()` function.
5117
5226
  * @param font_name the name of the font for line numbers, or `null`.
5227
+ * @since 2.2
5118
5228
  */
5119
5229
  set_line_numbers_font_name(font_name: string | null): void;
5120
5230
 
@@ -5130,6 +5240,7 @@ export namespace GtkSource {
5130
5240
  * This function cannot be called anymore after the first call to the
5131
5241
  * `gtk_source_print_compositor_paginate()` function.
5132
5242
  * @param print `true` if you want the footer to be printed.
5243
+ * @since 2.2
5133
5244
  */
5134
5245
  set_print_footer(print: boolean): void;
5135
5246
 
@@ -5145,6 +5256,7 @@ export namespace GtkSource {
5145
5256
  * This function cannot be called anymore after the first call to the
5146
5257
  * `gtk_source_print_compositor_paginate()` function.
5147
5258
  * @param print `true` if you want the header to be printed.
5259
+ * @since 2.2
5148
5260
  */
5149
5261
  set_print_header(print: boolean): void;
5150
5262
 
@@ -5158,6 +5270,7 @@ export namespace GtkSource {
5158
5270
  * This function cannot be called anymore after the first call to the
5159
5271
  * `gtk_source_print_compositor_paginate()` function.
5160
5272
  * @param interval interval for printed line numbers.
5273
+ * @since 2.2
5161
5274
  */
5162
5275
  set_print_line_numbers(interval: number): void;
5163
5276
 
@@ -5165,6 +5278,7 @@ export namespace GtkSource {
5165
5278
  * Sets the right margin used by `compositor`.
5166
5279
  * @param margin the new right margin in units of `unit`.
5167
5280
  * @param unit the units for `margin`.
5281
+ * @since 2.2
5168
5282
  */
5169
5283
  set_right_margin(margin: number, unit: Gtk.Unit): void;
5170
5284
 
@@ -5174,6 +5288,7 @@ export namespace GtkSource {
5174
5288
  * This function cannot be called anymore after the first call to the
5175
5289
  * `gtk_source_print_compositor_paginate()` function.
5176
5290
  * @param width width of tab in characters.
5291
+ * @since 2.2
5177
5292
  */
5178
5293
  set_tab_width(width: number): void;
5179
5294
 
@@ -5181,6 +5296,7 @@ export namespace GtkSource {
5181
5296
  * Sets the top margin used by `compositor`.
5182
5297
  * @param margin the new top margin in units of `unit`
5183
5298
  * @param unit the units for `margin`
5299
+ * @since 2.2
5184
5300
  */
5185
5301
  set_top_margin(margin: number, unit: Gtk.Unit): void;
5186
5302
 
@@ -5190,6 +5306,7 @@ export namespace GtkSource {
5190
5306
  * This function cannot be called anymore after the first call to the
5191
5307
  * `gtk_source_print_compositor_paginate()` function.
5192
5308
  * @param wrap_mode a {@link Gtk.WrapMode}.
5309
+ * @since 2.2
5193
5310
  */
5194
5311
  set_wrap_mode(wrap_mode: Gtk.WrapMode): void;
5195
5312
  }
@@ -5255,6 +5372,7 @@ export namespace GtkSource {
5255
5372
  /**
5256
5373
  * Adds `region_to_add` to `region`. `region_to_add` is not modified.
5257
5374
  * @param region_to_add the {@link GtkSource.Region} to add to `region`, or `null`.
5375
+ * @since 3.22
5258
5376
  */
5259
5377
  add_region(region_to_add: Region | null): void;
5260
5378
 
@@ -5262,23 +5380,27 @@ export namespace GtkSource {
5262
5380
  * Adds the subregion delimited by `_start` and `_end` to `region`.
5263
5381
  * @param _start the start of the subregion.
5264
5382
  * @param _end the end of the subregion.
5383
+ * @since 3.22
5265
5384
  */
5266
5385
  add_subregion(_start: Gtk.TextIter, _end: Gtk.TextIter): void;
5267
5386
 
5268
5387
  /**
5269
5388
  * Gets the `start` and `end` bounds of the `region`.
5270
5389
  * @returns `true` if `start` and `end` have been set successfully (if non-`null`), or `false` if the `region` is empty.
5390
+ * @since 3.22
5271
5391
  */
5272
5392
  get_bounds(): [boolean, Gtk.TextIter | null, Gtk.TextIter | null];
5273
5393
 
5274
5394
  /**
5275
5395
  * @returns the {@link Gtk.TextBuffer}.
5396
+ * @since 3.22
5276
5397
  */
5277
5398
  get_buffer(): Gtk.TextBuffer | null;
5278
5399
 
5279
5400
  /**
5280
5401
  * Initializes a {@link GtkSource.RegionIter} to the first subregion of `region`. If
5281
5402
  * `region` is empty, `iter` will be initialized to the end iterator.
5403
+ * @since 3.22
5282
5404
  */
5283
5405
  get_start_region_iter(): RegionIter;
5284
5406
 
@@ -5287,6 +5409,7 @@ export namespace GtkSource {
5287
5409
  * `region2` are not modified.
5288
5410
  * @param region2 a {@link GtkSource.Region}, or `null`.
5289
5411
  * @returns the intersection as a {@link GtkSource.Region} object.
5412
+ * @since 3.22
5290
5413
  */
5291
5414
  intersect_region(region2: Region | null): Region | null;
5292
5415
 
@@ -5296,12 +5419,14 @@ export namespace GtkSource {
5296
5419
  * @param _start the start of the subregion.
5297
5420
  * @param _end the end of the subregion.
5298
5421
  * @returns the intersection as a new {@link GtkSource.Region}.
5422
+ * @since 3.22
5299
5423
  */
5300
5424
  intersect_subregion(_start: Gtk.TextIter, _end: Gtk.TextIter): Region | null;
5301
5425
 
5302
5426
  /**
5303
5427
  * Returns whether the `region` is empty. A `null` `region` is considered empty.
5304
5428
  * @returns whether the `region` is empty.
5429
+ * @since 3.22
5305
5430
  */
5306
5431
  is_empty(): boolean;
5307
5432
 
@@ -5309,6 +5434,7 @@ export namespace GtkSource {
5309
5434
  * Subtracts `region_to_subtract` from `region`. `region_to_subtract` is not
5310
5435
  * modified.
5311
5436
  * @param region_to_subtract the {@link GtkSource.Region} to subtract from `region`, or `null`.
5437
+ * @since 3.22
5312
5438
  */
5313
5439
  subtract_region(region_to_subtract: Region | null): void;
5314
5440
 
@@ -5316,6 +5442,7 @@ export namespace GtkSource {
5316
5442
  * Subtracts the subregion delimited by `_start` and `_end` from `region`.
5317
5443
  * @param _start the start of the subregion.
5318
5444
  * @param _end the end of the subregion.
5445
+ * @since 3.22
5319
5446
  */
5320
5447
  subtract_subregion(_start: Gtk.TextIter, _end: Gtk.TextIter): void;
5321
5448
 
@@ -5325,6 +5452,7 @@ export namespace GtkSource {
5325
5452
  * The returned string contains the character offsets of the subregions. It
5326
5453
  * doesn't include a newline character at the end of the string.
5327
5454
  * @returns a string represention of `region`. Free with `g_free()` when no longer needed.
5455
+ * @since 3.22
5328
5456
  */
5329
5457
  to_string(): string | null;
5330
5458
  }
@@ -5485,6 +5613,7 @@ export namespace GtkSource {
5485
5613
  * the same value as the {@link GtkSource.SearchSettings.wrap_around} property.
5486
5614
  * @param iter start of search.
5487
5615
  * @returns whether a match was found.
5616
+ * @since 4.0
5488
5617
  */
5489
5618
  backward(iter: Gtk.TextIter): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
5490
5619
 
@@ -5501,6 +5630,7 @@ export namespace GtkSource {
5501
5630
  * ownership of `cancellable`, so you can unref it after calling this function.
5502
5631
  * @param iter start of search.
5503
5632
  * @param cancellable a {@link Gio.Cancellable}, or `null`.
5633
+ * @since 3.10
5504
5634
  */
5505
5635
  backward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null): globalThis.Promise<[Gtk.TextIter | null, Gtk.TextIter | null, boolean]>;
5506
5636
 
@@ -5518,6 +5648,7 @@ export namespace GtkSource {
5518
5648
  * @param iter start of search.
5519
5649
  * @param cancellable a {@link Gio.Cancellable}, or `null`.
5520
5650
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the operation is finished.
5651
+ * @since 3.10
5521
5652
  */
5522
5653
  backward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
5523
5654
 
@@ -5535,6 +5666,7 @@ export namespace GtkSource {
5535
5666
  * @param iter start of search.
5536
5667
  * @param cancellable a {@link Gio.Cancellable}, or `null`.
5537
5668
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the operation is finished.
5669
+ * @since 3.10
5538
5670
  */
5539
5671
  backward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<[Gtk.TextIter | null, Gtk.TextIter | null, boolean]> | void;
5540
5672
 
@@ -5546,6 +5678,7 @@ export namespace GtkSource {
5546
5678
  * details.
5547
5679
  * @param result a {@link Gio.AsyncResult}.
5548
5680
  * @returns whether a match was found.
5681
+ * @since 4.0
5549
5682
  */
5550
5683
  backward_finish(result: Gio.AsyncResult): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
5551
5684
 
@@ -5562,6 +5695,7 @@ export namespace GtkSource {
5562
5695
  * the same value as the {@link GtkSource.SearchSettings.wrap_around} property.
5563
5696
  * @param iter start of search.
5564
5697
  * @returns whether a match was found.
5698
+ * @since 4.0
5565
5699
  */
5566
5700
  forward(iter: Gtk.TextIter): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
5567
5701
 
@@ -5578,6 +5712,7 @@ export namespace GtkSource {
5578
5712
  * ownership of `cancellable`, so you can unref it after calling this function.
5579
5713
  * @param iter start of search.
5580
5714
  * @param cancellable a {@link Gio.Cancellable}, or `null`.
5715
+ * @since 3.10
5581
5716
  */
5582
5717
  forward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null): globalThis.Promise<[Gtk.TextIter | null, Gtk.TextIter | null, boolean]>;
5583
5718
 
@@ -5595,6 +5730,7 @@ export namespace GtkSource {
5595
5730
  * @param iter start of search.
5596
5731
  * @param cancellable a {@link Gio.Cancellable}, or `null`.
5597
5732
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the operation is finished.
5733
+ * @since 3.10
5598
5734
  */
5599
5735
  forward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
5600
5736
 
@@ -5612,6 +5748,7 @@ export namespace GtkSource {
5612
5748
  * @param iter start of search.
5613
5749
  * @param cancellable a {@link Gio.Cancellable}, or `null`.
5614
5750
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the operation is finished.
5751
+ * @since 3.10
5615
5752
  */
5616
5753
  forward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<[Gtk.TextIter | null, Gtk.TextIter | null, boolean]> | void;
5617
5754
 
@@ -5623,21 +5760,25 @@ export namespace GtkSource {
5623
5760
  * details.
5624
5761
  * @param result a {@link Gio.AsyncResult}.
5625
5762
  * @returns whether a match was found.
5763
+ * @since 4.0
5626
5764
  */
5627
5765
  forward_finish(result: Gio.AsyncResult): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
5628
5766
 
5629
5767
  /**
5630
5768
  * @returns the associated buffer.
5769
+ * @since 3.10
5631
5770
  */
5632
5771
  get_buffer(): Buffer;
5633
5772
 
5634
5773
  /**
5635
5774
  * @returns whether to highlight the search occurrences.
5775
+ * @since 3.10
5636
5776
  */
5637
5777
  get_highlight(): boolean;
5638
5778
 
5639
5779
  /**
5640
5780
  * @returns the {@link GtkSource.Style} to apply on search matches.
5781
+ * @since 3.16
5641
5782
  */
5642
5783
  get_match_style(): Style;
5643
5784
 
@@ -5649,6 +5790,7 @@ export namespace GtkSource {
5649
5790
  * @param match_start the start of the occurrence.
5650
5791
  * @param match_end the end of the occurrence.
5651
5792
  * @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.
5793
+ * @since 3.10
5652
5794
  */
5653
5795
  get_occurrence_position(match_start: Gtk.TextIter, match_end: Gtk.TextIter): number;
5654
5796
 
@@ -5657,6 +5799,7 @@ export namespace GtkSource {
5657
5799
  * fully scanned, the total number of occurrences is unknown, and -1 is
5658
5800
  * returned.
5659
5801
  * @returns the total number of search occurrences, or -1 if unknown.
5802
+ * @since 3.10
5660
5803
  */
5661
5804
  get_occurrences_count(): number;
5662
5805
 
@@ -5667,11 +5810,13 @@ export namespace GtkSource {
5667
5810
  *
5668
5811
  * Free the return value with `g_error_free()`.
5669
5812
  * @returns the {@link GLib.Error}, or `null` if the pattern is valid.
5813
+ * @since 3.10
5670
5814
  */
5671
5815
  get_regex_error(): GLib.Error | null;
5672
5816
 
5673
5817
  /**
5674
5818
  * @returns the search settings.
5819
+ * @since 3.10
5675
5820
  */
5676
5821
  get_settings(): SearchSettings;
5677
5822
 
@@ -5690,6 +5835,7 @@ export namespace GtkSource {
5690
5835
  * @param replace the replacement text.
5691
5836
  * @param replace_length the length of `replace` in bytes, or -1.
5692
5837
  * @returns whether the match has been replaced.
5838
+ * @since 4.0
5693
5839
  */
5694
5840
  replace(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string, replace_length: number): boolean;
5695
5841
 
@@ -5703,12 +5849,14 @@ export namespace GtkSource {
5703
5849
  * @param replace the replacement text.
5704
5850
  * @param replace_length the length of `replace` in bytes, or -1.
5705
5851
  * @returns the number of replaced matches.
5852
+ * @since 3.10
5706
5853
  */
5707
5854
  replace_all(replace: string, replace_length: number): number;
5708
5855
 
5709
5856
  /**
5710
5857
  * Enables or disables the search occurrences highlighting.
5711
5858
  * @param highlight the setting.
5859
+ * @since 3.10
5712
5860
  */
5713
5861
  set_highlight(highlight: boolean): void;
5714
5862
 
@@ -5718,6 +5866,7 @@ export namespace GtkSource {
5718
5866
  * To enable or disable the search highlighting, use
5719
5867
  * `gtk_source_search_context_set_highlight()`.
5720
5868
  * @param match_style a {@link GtkSource.Style}, or `null`.
5869
+ * @since 3.16
5721
5870
  */
5722
5871
  set_match_style(match_style: Style | null): void;
5723
5872
  }
@@ -5879,16 +6028,19 @@ export namespace GtkSource {
5879
6028
  // Methods
5880
6029
  /**
5881
6030
  * @returns whether to search at word boundaries.
6031
+ * @since 3.10
5882
6032
  */
5883
6033
  get_at_word_boundaries(): boolean;
5884
6034
 
5885
6035
  /**
5886
6036
  * @returns whether the search is case sensitive.
6037
+ * @since 3.10
5887
6038
  */
5888
6039
  get_case_sensitive(): boolean;
5889
6040
 
5890
6041
  /**
5891
6042
  * @returns whether to search by regular expressions.
6043
+ * @since 3.10
5892
6044
  */
5893
6045
  get_regex_enabled(): boolean;
5894
6046
 
@@ -5898,11 +6050,13 @@ export namespace GtkSource {
5898
6050
  * You may be interested to call `gtk_source_utils_escape_search_text()` after
5899
6051
  * this function.
5900
6052
  * @returns the text to search, or `null` if the search is disabled.
6053
+ * @since 3.10
5901
6054
  */
5902
6055
  get_search_text(): string | null;
5903
6056
 
5904
6057
  /**
5905
6058
  * @returns whether to wrap around the search.
6059
+ * @since 3.10
5906
6060
  */
5907
6061
  get_wrap_around(): boolean;
5908
6062
 
@@ -5912,12 +6066,14 @@ export namespace GtkSource {
5912
6066
  * multiple words. See also `gtk_text_iter_starts_word()` and
5913
6067
  * `gtk_text_iter_ends_word()`.
5914
6068
  * @param at_word_boundaries the setting.
6069
+ * @since 3.10
5915
6070
  */
5916
6071
  set_at_word_boundaries(at_word_boundaries: boolean): void;
5917
6072
 
5918
6073
  /**
5919
6074
  * Enables or disables the case sensitivity for the search.
5920
6075
  * @param case_sensitive the setting.
6076
+ * @since 3.10
5921
6077
  */
5922
6078
  set_case_sensitive(case_sensitive: boolean): void;
5923
6079
 
@@ -5930,6 +6086,7 @@ export namespace GtkSource {
5930
6086
  * [Regular expression syntax](https://developer.gnome.org/glib/stable/glib-regex-syntax.html)
5931
6087
  * page in the GLib reference manual.
5932
6088
  * @param regex_enabled the setting.
6089
+ * @since 3.10
5933
6090
  */
5934
6091
  set_regex_enabled(regex_enabled: boolean): void;
5935
6092
 
@@ -5941,6 +6098,7 @@ export namespace GtkSource {
5941
6098
  * You may be interested to call `gtk_source_utils_unescape_search_text()` before
5942
6099
  * this function.
5943
6100
  * @param search_text the nul-terminated text to search, or `null` to disable the search.
6101
+ * @since 3.10
5944
6102
  */
5945
6103
  set_search_text(search_text: string | null): void;
5946
6104
 
@@ -5950,6 +6108,7 @@ export namespace GtkSource {
5950
6108
  * occurrences are found. Similarly, the backward search continues to search at
5951
6109
  * the end of the buffer.
5952
6110
  * @param wrap_around the setting.
6111
+ * @since 3.10
5953
6112
  */
5954
6113
  set_wrap_around(wrap_around: boolean): void;
5955
6114
  }
@@ -6055,11 +6214,13 @@ export namespace GtkSource {
6055
6214
  * @param settings a {@link Gio.Settings} object.
6056
6215
  * @param key the `settings` key to bind.
6057
6216
  * @param flags flags for the binding.
6217
+ * @since 3.24
6058
6218
  */
6059
6219
  bind_matrix_setting(settings: Gio.Settings, key: string, flags: Gio.SettingsBindFlags): void;
6060
6220
 
6061
6221
  /**
6062
6222
  * @returns whether the {@link GtkSource.SpaceDrawer.matrix} property is enabled.
6223
+ * @since 3.24
6063
6224
  */
6064
6225
  get_enable_matrix(): boolean;
6065
6226
 
@@ -6070,6 +6231,7 @@ export namespace GtkSource {
6070
6231
  * The `gtk_source_space_drawer_get_types_for_locations()` function may be more
6071
6232
  * convenient to use.
6072
6233
  * @returns the {@link GtkSource.SpaceDrawer.matrix} value as a new floating {@link GLib.Variant} instance.
6234
+ * @since 3.24
6073
6235
  */
6074
6236
  get_matrix(): GLib.Variant;
6075
6237
 
@@ -6084,12 +6246,14 @@ export namespace GtkSource {
6084
6246
  * specified `locations`.
6085
6247
  * @param locations one or several {@link GtkSource.SpaceLocationFlags}.
6086
6248
  * @returns a combination of {@link GtkSource.SpaceTypeFlags}.
6249
+ * @since 3.24
6087
6250
  */
6088
6251
  get_types_for_locations(locations: SpaceLocationFlags): SpaceTypeFlags;
6089
6252
 
6090
6253
  /**
6091
6254
  * Sets whether the {@link GtkSource.SpaceDrawer.matrix} property is enabled.
6092
6255
  * @param enable_matrix the new value.
6256
+ * @since 3.24
6093
6257
  */
6094
6258
  set_enable_matrix(enable_matrix: boolean): void;
6095
6259
 
@@ -6102,6 +6266,7 @@ export namespace GtkSource {
6102
6266
  * The `gtk_source_space_drawer_set_types_for_locations()` function may be more
6103
6267
  * convenient to use.
6104
6268
  * @param matrix the new matrix value, or `null`.
6269
+ * @since 3.24
6105
6270
  */
6106
6271
  set_matrix(matrix: GLib.Variant | null): void;
6107
6272
 
@@ -6110,6 +6275,7 @@ export namespace GtkSource {
6110
6275
  * `locations`.
6111
6276
  * @param locations one or several {@link GtkSource.SpaceLocationFlags}.
6112
6277
  * @param types a combination of {@link GtkSource.SpaceTypeFlags}.
6278
+ * @since 3.24
6113
6279
  */
6114
6280
  set_types_for_locations(locations: SpaceLocationFlags, types: SpaceTypeFlags): void;
6115
6281
  }
@@ -6159,32 +6325,38 @@ export namespace GtkSource {
6159
6325
  // Methods
6160
6326
  /**
6161
6327
  * @returns the `scheme` description, a human-readable (translated) string to present to the user.
6328
+ * @since 2.0
6162
6329
  */
6163
6330
  get_description(): string | null;
6164
6331
 
6165
6332
  /**
6166
6333
  * @returns `scheme` file name if the scheme was created parsing a style scheme file, or `null` in the other cases.
6334
+ * @since 2.0
6167
6335
  */
6168
6336
  get_filename(): string | null;
6169
6337
 
6170
6338
  /**
6171
6339
  * @returns the `scheme` ID, a unique string used to identify the style scheme in a {@link GtkSource.StyleSchemeManager}.
6340
+ * @since 2.0
6172
6341
  */
6173
6342
  get_id(): string;
6174
6343
 
6175
6344
  /**
6176
6345
  * @returns the kind of `scheme`.
6346
+ * @since 299.2
6177
6347
  */
6178
6348
  get_kind(): StyleSchemeKind;
6179
6349
 
6180
6350
  /**
6181
6351
  * @returns the `scheme` name, a human-readable (translated) string to present to the user.
6352
+ * @since 2.0
6182
6353
  */
6183
6354
  get_name(): string;
6184
6355
 
6185
6356
  /**
6186
6357
  * @param style_id ID of the style to retrieve.
6187
6358
  * @returns the {@link GtkSource.Style} which corresponds to `style_id` in the `scheme`, or `null` if not found.
6359
+ * @since 2.0
6188
6360
  */
6189
6361
  get_style(style_id: string): Style | null;
6190
6362
  }
@@ -6267,6 +6439,7 @@ export namespace GtkSource {
6267
6439
 
6268
6440
  /**
6269
6441
  * @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.
6442
+ * @since 299.0
6270
6443
  */
6271
6444
  get_schemes(): StyleScheme[];
6272
6445
 
@@ -7000,6 +7173,7 @@ export namespace GtkSource {
7000
7173
  * The line numbers and mark category icons are rendered in the left gutter.
7001
7174
  * @param window_type the gutter window type.
7002
7175
  * @returns the {@link GtkSource.Gutter}.
7176
+ * @since 2.8
7003
7177
  */
7004
7178
  get_gutter(window_type: Gtk.TextWindowType): Gutter;
7005
7179
 
@@ -7044,6 +7218,7 @@ export namespace GtkSource {
7044
7218
 
7045
7219
  /**
7046
7220
  * @returns the current value of the {@link GtkSource.View.show_line_marks} property.
7221
+ * @since 2.2
7047
7222
  */
7048
7223
  get_show_line_marks(): boolean;
7049
7224
 
@@ -7061,6 +7236,7 @@ export namespace GtkSource {
7061
7236
  * Returns `true` if pressing the Backspace key will try to delete spaces
7062
7237
  * up to the previous tab stop.
7063
7238
  * @returns `true` if smart Backspace handling is enabled.
7239
+ * @since 3.18
7064
7240
  */
7065
7241
  get_smart_backspace(): boolean;
7066
7242
 
@@ -7073,6 +7249,7 @@ export namespace GtkSource {
7073
7249
 
7074
7250
  /**
7075
7251
  * @returns the value of the {@link GtkSource.View.space_drawer} property.
7252
+ * @since 3.24
7076
7253
  */
7077
7254
  get_space_drawer(): SpaceDrawer;
7078
7255
 
@@ -7094,6 +7271,7 @@ export namespace GtkSource {
7094
7271
  * empty lines are not indented.
7095
7272
  * @param start {@link Gtk.TextIter} of the first line to indent
7096
7273
  * @param end {@link Gtk.TextIter} of the last line to indent
7274
+ * @since 3.16
7097
7275
  */
7098
7276
  indent_lines(start: Gtk.TextIter, end: Gtk.TextIter): void;
7099
7277
 
@@ -7178,6 +7356,7 @@ export namespace GtkSource {
7178
7356
  /**
7179
7357
  * Sets the {@link GtkSource.View.show_line_marks} property.
7180
7358
  * @param show the new value.
7359
+ * @since 2.2
7181
7360
  */
7182
7361
  set_show_line_marks(show: boolean): void;
7183
7362
 
@@ -7197,6 +7376,7 @@ export namespace GtkSource {
7197
7376
  * When set to `true`, pressing the Backspace key will try to delete spaces
7198
7377
  * up to the previous tab stop.
7199
7378
  * @param smart_backspace whether to enable smart Backspace handling.
7379
+ * @since 3.18
7200
7380
  */
7201
7381
  set_smart_backspace(smart_backspace: boolean): void;
7202
7382
 
@@ -7218,6 +7398,7 @@ export namespace GtkSource {
7218
7398
  * specified lines.
7219
7399
  * @param start {@link Gtk.TextIter} of the first line to indent
7220
7400
  * @param end {@link Gtk.TextIter} of the last line to indent
7401
+ * @since 3.16
7221
7402
  */
7222
7403
  unindent_lines(start: Gtk.TextIter, end: Gtk.TextIter): void;
7223
7404
 
@@ -7286,36 +7467,42 @@ export namespace GtkSource {
7286
7467
  * display overlayed graphics, like the overshoot indication,
7287
7468
  * at the right position.
7288
7469
  * @returns `true` if `border` has been set
7470
+ * @since 3.16
7289
7471
  */
7290
7472
  get_border(): [boolean, Gtk.Border];
7291
7473
 
7292
7474
  /**
7293
7475
  * Retrieves the {@link Gtk.Adjustment} used for horizontal scrolling.
7294
7476
  * @returns horizontal {@link Gtk.Adjustment}.
7477
+ * @since 3.0
7295
7478
  */
7296
7479
  get_hadjustment(): Gtk.Adjustment;
7297
7480
 
7298
7481
  /**
7299
7482
  * Gets the horizontal {@link Gtk.ScrollablePolicy}.
7300
7483
  * @returns The horizontal {@link Gtk.ScrollablePolicy}.
7484
+ * @since 3.0
7301
7485
  */
7302
7486
  get_hscroll_policy(): Gtk.ScrollablePolicy;
7303
7487
 
7304
7488
  /**
7305
7489
  * Retrieves the {@link Gtk.Adjustment} used for vertical scrolling.
7306
7490
  * @returns vertical {@link Gtk.Adjustment}.
7491
+ * @since 3.0
7307
7492
  */
7308
7493
  get_vadjustment(): Gtk.Adjustment;
7309
7494
 
7310
7495
  /**
7311
7496
  * Gets the vertical {@link Gtk.ScrollablePolicy}.
7312
7497
  * @returns The vertical {@link Gtk.ScrollablePolicy}.
7498
+ * @since 3.0
7313
7499
  */
7314
7500
  get_vscroll_policy(): Gtk.ScrollablePolicy;
7315
7501
 
7316
7502
  /**
7317
7503
  * Sets the horizontal adjustment of the {@link Gtk.Scrollable}.
7318
7504
  * @param hadjustment a {@link Gtk.Adjustment}
7505
+ * @since 3.0
7319
7506
  */
7320
7507
  set_hadjustment(hadjustment: Gtk.Adjustment | null): void;
7321
7508
 
@@ -7324,12 +7511,14 @@ export namespace GtkSource {
7324
7511
  * horizontal scrolling should start below the minimum width or
7325
7512
  * below the natural width.
7326
7513
  * @param policy the horizontal {@link Gtk.ScrollablePolicy}
7514
+ * @since 3.0
7327
7515
  */
7328
7516
  set_hscroll_policy(policy: Gtk.ScrollablePolicy): void;
7329
7517
 
7330
7518
  /**
7331
7519
  * Sets the vertical adjustment of the {@link Gtk.Scrollable}.
7332
7520
  * @param vadjustment a {@link Gtk.Adjustment}
7521
+ * @since 3.0
7333
7522
  */
7334
7523
  set_vadjustment(vadjustment: Gtk.Adjustment | null): void;
7335
7524
 
@@ -7338,6 +7527,7 @@ export namespace GtkSource {
7338
7527
  * vertical scrolling should start below the minimum height or
7339
7528
  * below the natural height.
7340
7529
  * @param policy the vertical {@link Gtk.ScrollablePolicy}
7530
+ * @since 3.0
7341
7531
  */
7342
7532
  set_vscroll_policy(policy: Gtk.ScrollablePolicy): void;
7343
7533
 
@@ -7347,6 +7537,7 @@ export namespace GtkSource {
7347
7537
  * be treeview headers. GTK+ can use this information to
7348
7538
  * display overlayed graphics, like the overshoot indication,
7349
7539
  * at the right position.
7540
+ * @since 3.16
7350
7541
  * @virtual
7351
7542
  */
7352
7543
  vfunc_get_border(): [boolean, Gtk.Border];
@@ -7451,6 +7642,7 @@ export namespace GtkSource {
7451
7642
  * It is useful for example for `g_slist_find_custom()`.
7452
7643
  * @param a a {@link GtkSource.Encoding}.
7453
7644
  * @param b a {@link GtkSource.Encoding}.
7645
+ * @since 299.6
7454
7646
  */
7455
7647
  static compare_func(a: null, b: null): number;
7456
7648
 
@@ -7459,11 +7651,13 @@ export namespace GtkSource {
7459
7651
  * `gtk_source_encoding_copy()`. It is useful for example for `g_slist_copy_deep()`.
7460
7652
  * @param src a {@link GtkSource.Encoding}.
7461
7653
  * @param data Additional data (ignored).
7654
+ * @since 299.6
7462
7655
  */
7463
7656
  static copy_func(src: null, data: null): null;
7464
7657
 
7465
7658
  /**
7466
7659
  * Gets a list of all encodings known by {@link GtkSource.Encoding}.
7660
+ * @since 299.6
7467
7661
  */
7468
7662
  static get_all(): Encoding[];
7469
7663
 
@@ -7478,6 +7672,7 @@ export namespace GtkSource {
7478
7672
  * Note that the returned list doesn't contain all encodings known by
7479
7673
  * {@link GtkSource.Encoding}, it is a limited list that contains only the encodings
7480
7674
  * that have the most likelihood to fit for the current locale.
7675
+ * @since 299.6
7481
7676
  */
7482
7677
  static get_default_candidates(): Encoding[];
7483
7678
 
@@ -7485,12 +7680,14 @@ export namespace GtkSource {
7485
7680
  * A convenience function to remove duplicated encodings in a list.
7486
7681
  * @param list a list of {@link GtkSource.Encoding}'s.
7487
7682
  * @param removal_type the {@link GtkSource.EncodingDuplicates}.
7683
+ * @since 299.6
7488
7684
  */
7489
7685
  static remove_duplicates(list: Encoding[], removal_type: EncodingDuplicates): Encoding[];
7490
7686
 
7491
7687
  // Methods
7492
7688
  /**
7493
7689
  * @returns a copy of `enc`.
7690
+ * @since 299.6
7494
7691
  */
7495
7692
  copy(): Encoding;
7496
7693
 
@@ -7503,14 +7700,19 @@ export namespace GtkSource {
7503
7700
  * iconv-compatible charsets are case insensitive).
7504
7701
  * @param enc2 a {@link GtkSource.Encoding}, or `null`.
7505
7702
  * @returns whether `enc1` and `enc2` are equal.
7703
+ * @since 299.6
7506
7704
  */
7507
7705
  equals(enc2: Encoding | null): boolean;
7508
7706
 
7707
+ /**
7708
+ * @since 299.6
7709
+ */
7509
7710
  free(): void;
7510
7711
 
7511
7712
  /**
7512
7713
  * Gets the character set of the {@link GtkSource.Encoding}, such as "UTF-8" or "ISO-8859-1".
7513
7714
  * @returns the character set of the {@link GtkSource.Encoding}.
7715
+ * @since 299.6
7514
7716
  */
7515
7717
  get_charset(): string;
7516
7718
 
@@ -7519,6 +7721,7 @@ export namespace GtkSource {
7519
7721
  * the charset is unknown by {@link GtkSource.Encoding}, "Unknown" is returned. The
7520
7722
  * return value is already translated by gettext.
7521
7723
  * @returns the name of the {@link GtkSource.Encoding}.
7724
+ * @since 299.6
7522
7725
  */
7523
7726
  get_name(): string;
7524
7727
 
@@ -7530,11 +7733,13 @@ export namespace GtkSource {
7530
7733
  * When the charset string comes from an untrusted source, it can be desirable
7531
7734
  * to check it.
7532
7735
  * @returns whether `enc` has a charset known by {@link GtkSource.Encoding}.
7736
+ * @since 299.6
7533
7737
  */
7534
7738
  has_known_charset(): boolean;
7535
7739
 
7536
7740
  /**
7537
7741
  * @returns whether `enc` is the locale encoding (see `gtk_source_encoding_new_from_locale()`).
7742
+ * @since 299.6
7538
7743
  */
7539
7744
  is_locale(): boolean;
7540
7745
 
@@ -7545,6 +7750,7 @@ export namespace GtkSource {
7545
7750
  * "UTF-8". But iconv supports other variants: "UTF8", "utf-8" and "utf8". This
7546
7751
  * function returns `true` for all UTF-8 variants supported by iconv.
7547
7752
  * @returns whether `enc` is a UTF-8 encoding.
7753
+ * @since 299.6
7548
7754
  */
7549
7755
  is_utf8(): boolean;
7550
7756
 
@@ -7553,6 +7759,7 @@ export namespace GtkSource {
7553
7759
  * "Unicode (UTF-8)". If the name is unknown, just the charset is returned. The
7554
7760
  * name is translated by gettext.
7555
7761
  * @returns a string representation. Free with `g_free()` when no longer needed.
7762
+ * @since 299.6
7556
7763
  */
7557
7764
  to_string(): string;
7558
7765
  }
@@ -7735,17 +7942,20 @@ export namespace GtkSource {
7735
7942
  /**
7736
7943
  * Gets the subregion at this iterator.
7737
7944
  * @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.
7945
+ * @since 3.22
7738
7946
  */
7739
7947
  get_subregion(): [boolean, Gtk.TextIter | null, Gtk.TextIter | null];
7740
7948
 
7741
7949
  /**
7742
7950
  * @returns whether `iter` is the end iterator.
7951
+ * @since 3.22
7743
7952
  */
7744
7953
  is_end(): boolean;
7745
7954
 
7746
7955
  /**
7747
7956
  * Moves `iter` to the next subregion.
7748
7957
  * @returns `true` if `iter` moved and is dereferenceable, or `false` if `iter` has been set to the end iterator.
7958
+ * @since 3.22
7749
7959
  */
7750
7960
  next(): boolean;
7751
7961
  }
@@ -7865,18 +8075,21 @@ export namespace GtkSource {
7865
8075
  * If `style` is `null`, the related `*-set` properties of {@link Gtk.TextTag} are set to
7866
8076
  * `false`.
7867
8077
  * @param tag a {@link Gtk.TextTag} to apply styles to.
8078
+ * @since 3.22
7868
8079
  */
7869
8080
  apply(tag: Gtk.TextTag): void;
7870
8081
 
7871
8082
  /**
7872
8083
  * Increases the reference count of `style` by one.
7873
8084
  * @returns the passed in `style`.
8085
+ * @since 299.2
7874
8086
  */
7875
8087
  ref(): Style;
7876
8088
 
7877
8089
  /**
7878
8090
  * Decreases the reference count of `style` by one. If the reference count drops
7879
8091
  * to 0, `style` is freed.
8092
+ * @since 299.2
7880
8093
  */
7881
8094
  unref(): void;
7882
8095
  }
@@ -7959,6 +8172,7 @@ export namespace GtkSource {
7959
8172
  /**
7960
8173
  * The virtual function pointer for `gtk_source_completion_proposal_get_gicon()`.
7961
8174
  * By default, `null` is returned.
8175
+ * @since 3.18
7962
8176
  * @virtual
7963
8177
  */
7964
8178
  vfunc_get_gicon(): Gio.Icon | null;
@@ -7973,6 +8187,7 @@ export namespace GtkSource {
7973
8187
  /**
7974
8188
  * The virtual function pointer for `gtk_source_completion_proposal_get_icon_name()`.
7975
8189
  * By default, `null` is returned.
8190
+ * @since 3.18
7976
8191
  * @virtual
7977
8192
  */
7978
8193
  vfunc_get_icon_name(): string | null;
@@ -8054,6 +8269,7 @@ export namespace GtkSource {
8054
8269
 
8055
8270
  /**
8056
8271
  * @returns the {@link Gio.Icon} for the icon of `proposal`.
8272
+ * @since 3.18
8057
8273
  */
8058
8274
  get_gicon(): Gio.Icon | null;
8059
8275
 
@@ -8064,6 +8280,7 @@ export namespace GtkSource {
8064
8280
 
8065
8281
  /**
8066
8282
  * @returns the icon name of `proposal`.
8283
+ * @since 3.18
8067
8284
  */
8068
8285
  get_icon_name(): string | null;
8069
8286
 
@@ -8149,6 +8366,7 @@ export namespace GtkSource {
8149
8366
 
8150
8367
  /**
8151
8368
  * Gets the {@link Gio.Icon} for the icon of `provider`.
8369
+ * @since 3.18
8152
8370
  * @virtual
8153
8371
  */
8154
8372
  vfunc_get_gicon(): Gio.Icon | null;
@@ -8161,6 +8379,7 @@ export namespace GtkSource {
8161
8379
 
8162
8380
  /**
8163
8381
  * Gets the icon name of `provider`.
8382
+ * @since 3.18
8164
8383
  * @virtual
8165
8384
  */
8166
8385
  vfunc_get_icon_name(): string | null;
@@ -8302,6 +8521,7 @@ export namespace GtkSource {
8302
8521
  /**
8303
8522
  * Gets the {@link Gio.Icon} for the icon of `provider`.
8304
8523
  * @returns The icon to be used for the provider, or `null` if the provider does not have a special icon.
8524
+ * @since 3.18
8305
8525
  */
8306
8526
  get_gicon(): Gio.Icon | null;
8307
8527
 
@@ -8314,6 +8534,7 @@ export namespace GtkSource {
8314
8534
  /**
8315
8535
  * Gets the icon name of `provider`.
8316
8536
  * @returns The icon name to be used for the provider, or `null` if the provider does not have a special icon.
8537
+ * @since 3.18
8317
8538
  */
8318
8539
  get_icon_name(): string | null;
8319
8540
 
@@ -8428,36 +8649,42 @@ export namespace GtkSource {
8428
8649
  * Begin a not undoable action on the buffer. All changes between this call
8429
8650
  * and the call to `gtk_source_undo_manager_end_not_undoable_action()` cannot
8430
8651
  * be undone. This function should be re-entrant.
8652
+ * @since 2.10
8431
8653
  * @virtual
8432
8654
  */
8433
8655
  vfunc_begin_not_undoable_action(): void;
8434
8656
 
8435
8657
  /**
8436
8658
  * Get whether there are redo operations available.
8659
+ * @since 2.10
8437
8660
  * @virtual
8438
8661
  */
8439
8662
  vfunc_can_redo(): boolean;
8440
8663
 
8441
8664
  /**
8442
8665
  * Emits the {@link GtkSource.UndoManager.SignalSignatures.can_redo_changed | GtkSource.UndoManager::can-redo-changed} signal.
8666
+ * @since 2.10
8443
8667
  * @virtual
8444
8668
  */
8445
8669
  vfunc_can_redo_changed(): void;
8446
8670
 
8447
8671
  /**
8448
8672
  * Get whether there are undo operations available.
8673
+ * @since 2.10
8449
8674
  * @virtual
8450
8675
  */
8451
8676
  vfunc_can_undo(): boolean;
8452
8677
 
8453
8678
  /**
8454
8679
  * Emits the {@link GtkSource.UndoManager.SignalSignatures.can_undo_changed | GtkSource.UndoManager::can-undo-changed} signal.
8680
+ * @since 2.10
8455
8681
  * @virtual
8456
8682
  */
8457
8683
  vfunc_can_undo_changed(): void;
8458
8684
 
8459
8685
  /**
8460
8686
  * Ends a not undoable action on the buffer.
8687
+ * @since 2.10
8461
8688
  * @virtual
8462
8689
  */
8463
8690
  vfunc_end_not_undoable_action(): void;
@@ -8466,6 +8693,7 @@ export namespace GtkSource {
8466
8693
  * Perform a single redo. Calling this function when there are no redo operations
8467
8694
  * available is an error. Use `gtk_source_undo_manager_can_redo()` to find out
8468
8695
  * if there are redo operations available.
8696
+ * @since 2.10
8469
8697
  * @virtual
8470
8698
  */
8471
8699
  vfunc_redo(): void;
@@ -8474,6 +8702,7 @@ export namespace GtkSource {
8474
8702
  * Perform a single undo. Calling this function when there are no undo operations
8475
8703
  * available is an error. Use `gtk_source_undo_manager_can_undo()` to find out
8476
8704
  * if there are undo operations available.
8705
+ * @since 2.10
8477
8706
  * @virtual
8478
8707
  */
8479
8708
  vfunc_undo(): void;
@@ -8498,33 +8727,39 @@ export namespace GtkSource {
8498
8727
  * Begin a not undoable action on the buffer. All changes between this call
8499
8728
  * and the call to `gtk_source_undo_manager_end_not_undoable_action()` cannot
8500
8729
  * be undone. This function should be re-entrant.
8730
+ * @since 2.10
8501
8731
  */
8502
8732
  begin_not_undoable_action(): void;
8503
8733
 
8504
8734
  /**
8505
8735
  * Get whether there are redo operations available.
8506
8736
  * @returns `true` if there are redo operations available, `false` otherwise
8737
+ * @since 2.10
8507
8738
  */
8508
8739
  can_redo(): boolean;
8509
8740
 
8510
8741
  /**
8511
8742
  * Emits the {@link GtkSource.UndoManager.SignalSignatures.can_redo_changed | GtkSource.UndoManager::can-redo-changed} signal.
8743
+ * @since 2.10
8512
8744
  */
8513
8745
  can_redo_changed(): void;
8514
8746
 
8515
8747
  /**
8516
8748
  * Get whether there are undo operations available.
8517
8749
  * @returns `true` if there are undo operations available, `false` otherwise
8750
+ * @since 2.10
8518
8751
  */
8519
8752
  can_undo(): boolean;
8520
8753
 
8521
8754
  /**
8522
8755
  * Emits the {@link GtkSource.UndoManager.SignalSignatures.can_undo_changed | GtkSource.UndoManager::can-undo-changed} signal.
8756
+ * @since 2.10
8523
8757
  */
8524
8758
  can_undo_changed(): void;
8525
8759
 
8526
8760
  /**
8527
8761
  * Ends a not undoable action on the buffer.
8762
+ * @since 2.10
8528
8763
  */
8529
8764
  end_not_undoable_action(): void;
8530
8765
 
@@ -8532,6 +8767,7 @@ export namespace GtkSource {
8532
8767
  * Perform a single redo. Calling this function when there are no redo operations
8533
8768
  * available is an error. Use `gtk_source_undo_manager_can_redo()` to find out
8534
8769
  * if there are redo operations available.
8770
+ * @since 2.10
8535
8771
  */
8536
8772
  redo(): void;
8537
8773
 
@@ -8539,6 +8775,7 @@ export namespace GtkSource {
8539
8775
  * Perform a single undo. Calling this function when there are no undo operations
8540
8776
  * available is an error. Use `gtk_source_undo_manager_can_undo()` to find out
8541
8777
  * if there are undo operations available.
8778
+ * @since 2.10
8542
8779
  */
8543
8780
  undo(): void;
8544
8781
  }