@girs/gtksource-300 4.3.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.
- package/README.md +1 -1
- package/gtksource-300-surface.d.ts +20 -0
- package/gtksource-300-surface.js +6 -0
- package/gtksource-300.d.ts +231 -0
- package/package.json +15 -15
package/gtksource-300.d.ts
CHANGED
|
@@ -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
|
|
|
@@ -2083,36 +2099,43 @@ export namespace GtkSource {
|
|
|
2083
2099
|
// Methods
|
|
2084
2100
|
/**
|
|
2085
2101
|
* @param gicon the {@link Gio.Icon}, or `null`.
|
|
2102
|
+
* @since 3.24
|
|
2086
2103
|
*/
|
|
2087
2104
|
set_gicon(gicon: Gio.Icon | null): void;
|
|
2088
2105
|
|
|
2089
2106
|
/**
|
|
2090
2107
|
* @param icon the {@link GdkPixbuf.Pixbuf}, or `null`.
|
|
2108
|
+
* @since 3.24
|
|
2091
2109
|
*/
|
|
2092
2110
|
set_icon(icon: GdkPixbuf.Pixbuf | null): void;
|
|
2093
2111
|
|
|
2094
2112
|
/**
|
|
2095
2113
|
* @param icon_name the icon name, or `null`.
|
|
2114
|
+
* @since 3.24
|
|
2096
2115
|
*/
|
|
2097
2116
|
set_icon_name(icon_name: string | null): void;
|
|
2098
2117
|
|
|
2099
2118
|
/**
|
|
2100
2119
|
* @param info the info, or `null`.
|
|
2120
|
+
* @since 3.24
|
|
2101
2121
|
*/
|
|
2102
2122
|
set_info(info: string | null): void;
|
|
2103
2123
|
|
|
2104
2124
|
/**
|
|
2105
2125
|
* @param label the label, or `null`.
|
|
2126
|
+
* @since 3.24
|
|
2106
2127
|
*/
|
|
2107
2128
|
set_label(label: string | null): void;
|
|
2108
2129
|
|
|
2109
2130
|
/**
|
|
2110
2131
|
* @param markup the markup, or `null`.
|
|
2132
|
+
* @since 3.24
|
|
2111
2133
|
*/
|
|
2112
2134
|
set_markup(markup: string | null): void;
|
|
2113
2135
|
|
|
2114
2136
|
/**
|
|
2115
2137
|
* @param text the text, or `null`.
|
|
2138
|
+
* @since 3.24
|
|
2116
2139
|
*/
|
|
2117
2140
|
set_text(text: string | null): void;
|
|
2118
2141
|
|
|
@@ -2134,6 +2157,7 @@ export namespace GtkSource {
|
|
|
2134
2157
|
|
|
2135
2158
|
/**
|
|
2136
2159
|
* @returns the {@link Gio.Icon} for the icon of `proposal`.
|
|
2160
|
+
* @since 3.18
|
|
2137
2161
|
*/
|
|
2138
2162
|
get_gicon(): Gio.Icon | null;
|
|
2139
2163
|
|
|
@@ -2144,6 +2168,7 @@ export namespace GtkSource {
|
|
|
2144
2168
|
|
|
2145
2169
|
/**
|
|
2146
2170
|
* @returns the icon name of `proposal`.
|
|
2171
|
+
* @since 3.18
|
|
2147
2172
|
*/
|
|
2148
2173
|
get_icon_name(): string | null;
|
|
2149
2174
|
|
|
@@ -2210,6 +2235,7 @@ export namespace GtkSource {
|
|
|
2210
2235
|
/**
|
|
2211
2236
|
* The virtual function pointer for `gtk_source_completion_proposal_get_gicon()`.
|
|
2212
2237
|
* By default, `null` is returned.
|
|
2238
|
+
* @since 3.18
|
|
2213
2239
|
* @virtual
|
|
2214
2240
|
*/
|
|
2215
2241
|
vfunc_get_gicon(): Gio.Icon | null;
|
|
@@ -2224,6 +2250,7 @@ export namespace GtkSource {
|
|
|
2224
2250
|
/**
|
|
2225
2251
|
* The virtual function pointer for `gtk_source_completion_proposal_get_icon_name()`.
|
|
2226
2252
|
* By default, `null` is returned.
|
|
2253
|
+
* @since 3.18
|
|
2227
2254
|
* @virtual
|
|
2228
2255
|
*/
|
|
2229
2256
|
vfunc_get_icon_name(): string | null;
|
|
@@ -2416,26 +2443,31 @@ export namespace GtkSource {
|
|
|
2416
2443
|
*
|
|
2417
2444
|
* Since this function is synchronous, it is advised to call it only on local
|
|
2418
2445
|
* files. See `gtk_source_file_is_local()`.
|
|
2446
|
+
* @since 3.18
|
|
2419
2447
|
*/
|
|
2420
2448
|
check_file_on_disk(): void;
|
|
2421
2449
|
|
|
2422
2450
|
/**
|
|
2423
2451
|
* @returns the current value of the {@link GtkSource.File.compression_type} property.
|
|
2452
|
+
* @since 3.14
|
|
2424
2453
|
*/
|
|
2425
2454
|
get_compression_type(): CompressionType;
|
|
2426
2455
|
|
|
2427
2456
|
/**
|
|
2428
2457
|
* @returns the current value of the {@link GtkSource.File.encoding} property.
|
|
2458
|
+
* @since 3.14
|
|
2429
2459
|
*/
|
|
2430
2460
|
get_encoding(): Encoding | null;
|
|
2431
2461
|
|
|
2432
2462
|
/**
|
|
2433
2463
|
* @returns the current value of the {@link GtkSource.File.location} property.
|
|
2464
|
+
* @since 3.14
|
|
2434
2465
|
*/
|
|
2435
2466
|
get_location(): Gio.File | null;
|
|
2436
2467
|
|
|
2437
2468
|
/**
|
|
2438
2469
|
* @returns the current value of the {@link GtkSource.File.newline_type} property.
|
|
2470
|
+
* @since 3.14
|
|
2439
2471
|
*/
|
|
2440
2472
|
get_newline_type(): NewlineType;
|
|
2441
2473
|
|
|
@@ -2446,6 +2478,7 @@ export namespace GtkSource {
|
|
|
2446
2478
|
* To have an up-to-date value, you must first call
|
|
2447
2479
|
* `gtk_source_file_check_file_on_disk()`.
|
|
2448
2480
|
* @returns whether the file has been deleted.
|
|
2481
|
+
* @since 3.18
|
|
2449
2482
|
*/
|
|
2450
2483
|
is_deleted(): boolean;
|
|
2451
2484
|
|
|
@@ -2456,6 +2489,7 @@ export namespace GtkSource {
|
|
|
2456
2489
|
* To have an up-to-date value, you must first call
|
|
2457
2490
|
* `gtk_source_file_check_file_on_disk()`.
|
|
2458
2491
|
* @returns whether the file is externally modified.
|
|
2492
|
+
* @since 3.18
|
|
2459
2493
|
*/
|
|
2460
2494
|
is_externally_modified(): boolean;
|
|
2461
2495
|
|
|
@@ -2463,17 +2497,20 @@ export namespace GtkSource {
|
|
|
2463
2497
|
* Returns whether the file is local. If the {@link GtkSource.File.location} is `null`,
|
|
2464
2498
|
* returns `false`.
|
|
2465
2499
|
* @returns whether the file is local.
|
|
2500
|
+
* @since 3.18
|
|
2466
2501
|
*/
|
|
2467
2502
|
is_local(): boolean;
|
|
2468
2503
|
|
|
2469
2504
|
/**
|
|
2470
2505
|
* @returns the current value of the {@link GtkSource.File.read_only} property.
|
|
2506
|
+
* @since 3.18
|
|
2471
2507
|
*/
|
|
2472
2508
|
is_readonly(): boolean;
|
|
2473
2509
|
|
|
2474
2510
|
/**
|
|
2475
2511
|
* Sets the {@link GtkSource.File.location} property.
|
|
2476
2512
|
* @param location the new {@link Gio.File}, or `null`.
|
|
2513
|
+
* @since 3.14
|
|
2477
2514
|
*/
|
|
2478
2515
|
set_location(location: Gio.File | null): void;
|
|
2479
2516
|
}
|
|
@@ -2607,41 +2644,49 @@ export namespace GtkSource {
|
|
|
2607
2644
|
// Methods
|
|
2608
2645
|
/**
|
|
2609
2646
|
* @returns the value of the {@link GtkSource.FileLoader.buffer} property.
|
|
2647
|
+
* @since 3.14
|
|
2610
2648
|
*/
|
|
2611
2649
|
get_buffer(): Buffer | null;
|
|
2612
2650
|
|
|
2613
2651
|
/**
|
|
2614
2652
|
* @returns the detected compression type.
|
|
2653
|
+
* @since 3.14
|
|
2615
2654
|
*/
|
|
2616
2655
|
get_compression_type(): CompressionType;
|
|
2617
2656
|
|
|
2618
2657
|
/**
|
|
2619
2658
|
* @returns the detected encoding.
|
|
2659
|
+
* @since 3.14
|
|
2620
2660
|
*/
|
|
2621
2661
|
get_encoding(): Encoding;
|
|
2622
2662
|
|
|
2623
2663
|
/**
|
|
2624
2664
|
* @returns the value of the {@link GtkSource.FileLoader.file} property.
|
|
2665
|
+
* @since 3.14
|
|
2625
2666
|
*/
|
|
2626
2667
|
get_file(): File | null;
|
|
2627
2668
|
|
|
2628
2669
|
/**
|
|
2629
2670
|
* @returns the value of the {@link GtkSource.FileLoader.input_stream} property.
|
|
2671
|
+
* @since 3.14
|
|
2630
2672
|
*/
|
|
2631
2673
|
get_input_stream(): Gio.InputStream | null;
|
|
2632
2674
|
|
|
2633
2675
|
/**
|
|
2634
2676
|
* @returns the value of the {@link GtkSource.FileLoader.location} property.
|
|
2677
|
+
* @since 3.14
|
|
2635
2678
|
*/
|
|
2636
2679
|
get_location(): Gio.File | null;
|
|
2637
2680
|
|
|
2638
2681
|
/**
|
|
2639
2682
|
* @returns the value of the {@link GtkSource.FileLoader.max_size} property.
|
|
2683
|
+
* @since 299.6
|
|
2640
2684
|
*/
|
|
2641
2685
|
get_max_size(): number;
|
|
2642
2686
|
|
|
2643
2687
|
/**
|
|
2644
2688
|
* @returns the detected newline type.
|
|
2689
|
+
* @since 3.14
|
|
2645
2690
|
*/
|
|
2646
2691
|
get_newline_type(): NewlineType;
|
|
2647
2692
|
|
|
@@ -2652,6 +2697,7 @@ export namespace GtkSource {
|
|
|
2652
2697
|
* @param io_priority the I/O priority of the request. E.g. `G_PRIORITY_LOW`, `G_PRIORITY_DEFAULT` or `G_PRIORITY_HIGH`.
|
|
2653
2698
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
2654
2699
|
* @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
|
|
2700
|
+
* @since 3.14
|
|
2655
2701
|
*/
|
|
2656
2702
|
load_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null): globalThis.Promise<boolean>;
|
|
2657
2703
|
|
|
@@ -2663,6 +2709,7 @@ export namespace GtkSource {
|
|
|
2663
2709
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
2664
2710
|
* @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
|
|
2665
2711
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
|
|
2712
|
+
* @since 3.14
|
|
2666
2713
|
*/
|
|
2667
2714
|
load_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
2668
2715
|
|
|
@@ -2674,6 +2721,7 @@ export namespace GtkSource {
|
|
|
2674
2721
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
2675
2722
|
* @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
|
|
2676
2723
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
|
|
2724
|
+
* @since 3.14
|
|
2677
2725
|
*/
|
|
2678
2726
|
load_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
|
|
2679
2727
|
|
|
@@ -2685,6 +2733,7 @@ export namespace GtkSource {
|
|
|
2685
2733
|
* type.
|
|
2686
2734
|
* @param result a {@link Gio.AsyncResult}.
|
|
2687
2735
|
* @returns whether the contents has been loaded successfully.
|
|
2736
|
+
* @since 3.14
|
|
2688
2737
|
*/
|
|
2689
2738
|
load_finish(result: Gio.AsyncResult): boolean;
|
|
2690
2739
|
|
|
@@ -2701,12 +2750,14 @@ export namespace GtkSource {
|
|
|
2701
2750
|
* 2. Plus the default candidates as returned by
|
|
2702
2751
|
* `gtk_source_encoding_get_default_candidates()`.
|
|
2703
2752
|
* @param candidate_encodings a list of {@link GtkSource.Encoding}'s.
|
|
2753
|
+
* @since 3.14
|
|
2704
2754
|
*/
|
|
2705
2755
|
set_candidate_encodings(candidate_encodings: Encoding[]): void;
|
|
2706
2756
|
|
|
2707
2757
|
/**
|
|
2708
2758
|
* Sets the {@link GtkSource.FileLoader.max_size} property.
|
|
2709
2759
|
* @param max_size the new value.
|
|
2760
|
+
* @since 299.6
|
|
2710
2761
|
*/
|
|
2711
2762
|
set_max_size(max_size: bigint | number): void;
|
|
2712
2763
|
}
|
|
@@ -2853,36 +2904,43 @@ export namespace GtkSource {
|
|
|
2853
2904
|
// Methods
|
|
2854
2905
|
/**
|
|
2855
2906
|
* @returns the {@link GtkSource.Buffer} to save.
|
|
2907
|
+
* @since 3.14
|
|
2856
2908
|
*/
|
|
2857
2909
|
get_buffer(): Buffer;
|
|
2858
2910
|
|
|
2859
2911
|
/**
|
|
2860
2912
|
* @returns the compression type.
|
|
2913
|
+
* @since 3.14
|
|
2861
2914
|
*/
|
|
2862
2915
|
get_compression_type(): CompressionType;
|
|
2863
2916
|
|
|
2864
2917
|
/**
|
|
2865
2918
|
* @returns the encoding.
|
|
2919
|
+
* @since 3.14
|
|
2866
2920
|
*/
|
|
2867
2921
|
get_encoding(): Encoding;
|
|
2868
2922
|
|
|
2869
2923
|
/**
|
|
2870
2924
|
* @returns the {@link GtkSource.File}.
|
|
2925
|
+
* @since 3.14
|
|
2871
2926
|
*/
|
|
2872
2927
|
get_file(): File;
|
|
2873
2928
|
|
|
2874
2929
|
/**
|
|
2875
2930
|
* @returns the flags.
|
|
2931
|
+
* @since 3.14
|
|
2876
2932
|
*/
|
|
2877
2933
|
get_flags(): FileSaverFlags;
|
|
2878
2934
|
|
|
2879
2935
|
/**
|
|
2880
2936
|
* @returns the {@link Gio.File} where to save the buffer to.
|
|
2937
|
+
* @since 3.14
|
|
2881
2938
|
*/
|
|
2882
2939
|
get_location(): Gio.File;
|
|
2883
2940
|
|
|
2884
2941
|
/**
|
|
2885
2942
|
* @returns the newline type.
|
|
2943
|
+
* @since 3.14
|
|
2886
2944
|
*/
|
|
2887
2945
|
get_newline_type(): NewlineType;
|
|
2888
2946
|
|
|
@@ -2892,6 +2950,7 @@ export namespace GtkSource {
|
|
|
2892
2950
|
* @param io_priority the I/O priority of the request. E.g. `G_PRIORITY_LOW`, `G_PRIORITY_DEFAULT` or `G_PRIORITY_HIGH`.
|
|
2893
2951
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
2894
2952
|
* @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
|
|
2953
|
+
* @since 3.14
|
|
2895
2954
|
*/
|
|
2896
2955
|
save_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null): globalThis.Promise<boolean>;
|
|
2897
2956
|
|
|
@@ -2902,6 +2961,7 @@ export namespace GtkSource {
|
|
|
2902
2961
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
2903
2962
|
* @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
|
|
2904
2963
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
|
|
2964
|
+
* @since 3.14
|
|
2905
2965
|
*/
|
|
2906
2966
|
save_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
2907
2967
|
|
|
@@ -2912,6 +2972,7 @@ export namespace GtkSource {
|
|
|
2912
2972
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
2913
2973
|
* @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
|
|
2914
2974
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
|
|
2975
|
+
* @since 3.14
|
|
2915
2976
|
*/
|
|
2916
2977
|
save_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
|
|
2917
2978
|
|
|
@@ -2926,6 +2987,7 @@ export namespace GtkSource {
|
|
|
2926
2987
|
* if the file has been saved successfully.
|
|
2927
2988
|
* @param result a {@link Gio.AsyncResult}.
|
|
2928
2989
|
* @returns whether the file was saved successfully.
|
|
2990
|
+
* @since 3.14
|
|
2929
2991
|
*/
|
|
2930
2992
|
save_finish(result: Gio.AsyncResult): boolean;
|
|
2931
2993
|
|
|
@@ -2933,6 +2995,7 @@ export namespace GtkSource {
|
|
|
2933
2995
|
* Sets the compression type. By default the compression type is taken from the
|
|
2934
2996
|
* {@link GtkSource.File}.
|
|
2935
2997
|
* @param compression_type the new compression type.
|
|
2998
|
+
* @since 3.14
|
|
2936
2999
|
*/
|
|
2937
3000
|
set_compression_type(compression_type: CompressionType): void;
|
|
2938
3001
|
|
|
@@ -2940,11 +3003,13 @@ export namespace GtkSource {
|
|
|
2940
3003
|
* Sets the encoding. If `encoding` is `null`, the UTF-8 encoding will be set.
|
|
2941
3004
|
* By default the encoding is taken from the {@link GtkSource.File}.
|
|
2942
3005
|
* @param encoding the new encoding, or `null` for UTF-8.
|
|
3006
|
+
* @since 3.14
|
|
2943
3007
|
*/
|
|
2944
3008
|
set_encoding(encoding: Encoding | null): void;
|
|
2945
3009
|
|
|
2946
3010
|
/**
|
|
2947
3011
|
* @param flags the new flags.
|
|
3012
|
+
* @since 3.14
|
|
2948
3013
|
*/
|
|
2949
3014
|
set_flags(flags: FileSaverFlags): void;
|
|
2950
3015
|
|
|
@@ -2952,6 +3017,7 @@ export namespace GtkSource {
|
|
|
2952
3017
|
* Sets the newline type. By default the newline type is taken from the
|
|
2953
3018
|
* {@link GtkSource.File}.
|
|
2954
3019
|
* @param newline_type the new newline type.
|
|
3020
|
+
* @since 3.14
|
|
2955
3021
|
*/
|
|
2956
3022
|
set_newline_type(newline_type: NewlineType): void;
|
|
2957
3023
|
}
|
|
@@ -3037,11 +3103,13 @@ export namespace GtkSource {
|
|
|
3037
3103
|
|
|
3038
3104
|
/**
|
|
3039
3105
|
* @returns the associated {@link GtkSource.View}.
|
|
3106
|
+
* @since 3.24
|
|
3040
3107
|
*/
|
|
3041
3108
|
get_view(): View;
|
|
3042
3109
|
|
|
3043
3110
|
/**
|
|
3044
3111
|
* @returns the {@link Gtk.TextWindowType} of `gutter`.
|
|
3112
|
+
* @since 3.24
|
|
3045
3113
|
*/
|
|
3046
3114
|
get_window_type(): Gtk.TextWindowType;
|
|
3047
3115
|
|
|
@@ -3052,18 +3120,21 @@ export namespace GtkSource {
|
|
|
3052
3120
|
* @param renderer a gutter renderer (must inherit from {@link GtkSource.GutterRenderer}).
|
|
3053
3121
|
* @param position the renderer position.
|
|
3054
3122
|
* @returns `true` if operation succeeded. Otherwise `false`.
|
|
3123
|
+
* @since 3.0
|
|
3055
3124
|
*/
|
|
3056
3125
|
insert(renderer: GutterRenderer, position: number): boolean;
|
|
3057
3126
|
|
|
3058
3127
|
/**
|
|
3059
3128
|
* Invalidates the drawable area of the gutter. You can use this to force a
|
|
3060
3129
|
* redraw of the gutter if something has changed and needs to be redrawn.
|
|
3130
|
+
* @since 2.8
|
|
3061
3131
|
*/
|
|
3062
3132
|
queue_draw(): void;
|
|
3063
3133
|
|
|
3064
3134
|
/**
|
|
3065
3135
|
* Removes `renderer` from `gutter`.
|
|
3066
3136
|
* @param renderer a {@link GtkSource.GutterRenderer}.
|
|
3137
|
+
* @since 2.8
|
|
3067
3138
|
*/
|
|
3068
3139
|
remove(renderer: GutterRenderer): void;
|
|
3069
3140
|
|
|
@@ -3071,6 +3142,7 @@ export namespace GtkSource {
|
|
|
3071
3142
|
* Reorders `renderer` in `gutter` to new `position`.
|
|
3072
3143
|
* @param renderer a {@link Gtk.CellRenderer}.
|
|
3073
3144
|
* @param position the new renderer position.
|
|
3145
|
+
* @since 2.8
|
|
3074
3146
|
*/
|
|
3075
3147
|
reorder(renderer: GutterRenderer, position: number): void;
|
|
3076
3148
|
}
|
|
@@ -3949,6 +4021,7 @@ export namespace GtkSource {
|
|
|
3949
4021
|
* is not present in the current style scheme.
|
|
3950
4022
|
* @param style_id a style ID.
|
|
3951
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
|
|
3952
4025
|
*/
|
|
3953
4026
|
get_style_fallback(style_id: string): string | null;
|
|
3954
4027
|
|
|
@@ -4098,6 +4171,7 @@ export namespace GtkSource {
|
|
|
4098
4171
|
* @param filename a filename in Glib filename encoding, or `null`.
|
|
4099
4172
|
* @param content_type a content type (as in GIO API), or `null`.
|
|
4100
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
|
|
4101
4175
|
*/
|
|
4102
4176
|
guess_language(filename: string | null, content_type: string | null): Language | null;
|
|
4103
4177
|
|
|
@@ -4185,6 +4259,7 @@ export namespace GtkSource {
|
|
|
4185
4259
|
/**
|
|
4186
4260
|
* Returns the mark category.
|
|
4187
4261
|
* @returns the category of the {@link GtkSource.Mark}.
|
|
4262
|
+
* @since 2.2
|
|
4188
4263
|
*/
|
|
4189
4264
|
get_category(): string;
|
|
4190
4265
|
|
|
@@ -4195,6 +4270,7 @@ export namespace GtkSource {
|
|
|
4195
4270
|
* If `category` is `null`, looks for marks of any category.
|
|
4196
4271
|
* @param category a string specifying the mark category, or `null`.
|
|
4197
4272
|
* @returns the next {@link GtkSource.Mark}, or `null`.
|
|
4273
|
+
* @since 2.2
|
|
4198
4274
|
*/
|
|
4199
4275
|
next(category: string | null): Mark | null;
|
|
4200
4276
|
|
|
@@ -4205,6 +4281,7 @@ export namespace GtkSource {
|
|
|
4205
4281
|
* If `category` is `null`, looks for marks of any category
|
|
4206
4282
|
* @param category a string specifying the mark category, or `null`.
|
|
4207
4283
|
* @returns the previous {@link GtkSource.Mark}, or `null`.
|
|
4284
|
+
* @since 2.2
|
|
4208
4285
|
*/
|
|
4209
4286
|
prev(category: string): Mark | null;
|
|
4210
4287
|
}
|
|
@@ -4814,6 +4891,7 @@ export namespace GtkSource {
|
|
|
4814
4891
|
* Returns the name of the font used to print the text body. The returned string
|
|
4815
4892
|
* must be freed with `g_free()`.
|
|
4816
4893
|
* @returns a new string containing the name of the font used to print the text body.
|
|
4894
|
+
* @since 2.2
|
|
4817
4895
|
*/
|
|
4818
4896
|
get_body_font_name(): string;
|
|
4819
4897
|
|
|
@@ -4821,6 +4899,7 @@ export namespace GtkSource {
|
|
|
4821
4899
|
* Gets the bottom margin in units of `unit`.
|
|
4822
4900
|
* @param unit the unit for the return value.
|
|
4823
4901
|
* @returns the bottom margin.
|
|
4902
|
+
* @since 2.2
|
|
4824
4903
|
*/
|
|
4825
4904
|
get_bottom_margin(unit: Gtk.Unit): number;
|
|
4826
4905
|
|
|
@@ -4829,6 +4908,7 @@ export namespace GtkSource {
|
|
|
4829
4908
|
* object reference is owned by the compositor object and
|
|
4830
4909
|
* should not be unreferenced.
|
|
4831
4910
|
* @returns the {@link GtkSource.Buffer} associated with the compositor.
|
|
4911
|
+
* @since 2.2
|
|
4832
4912
|
*/
|
|
4833
4913
|
get_buffer(): Buffer;
|
|
4834
4914
|
|
|
@@ -4836,6 +4916,7 @@ export namespace GtkSource {
|
|
|
4836
4916
|
* Returns the name of the font used to print the page footer.
|
|
4837
4917
|
* The returned string must be freed with `g_free()`.
|
|
4838
4918
|
* @returns a new string containing the name of the font used to print the page footer.
|
|
4919
|
+
* @since 2.2
|
|
4839
4920
|
*/
|
|
4840
4921
|
get_footer_font_name(): string;
|
|
4841
4922
|
|
|
@@ -4843,6 +4924,7 @@ export namespace GtkSource {
|
|
|
4843
4924
|
* Returns the name of the font used to print the page header.
|
|
4844
4925
|
* The returned string must be freed with `g_free()`.
|
|
4845
4926
|
* @returns a new string containing the name of the font used to print the page header.
|
|
4927
|
+
* @since 2.2
|
|
4846
4928
|
*/
|
|
4847
4929
|
get_header_font_name(): string;
|
|
4848
4930
|
|
|
@@ -4851,6 +4933,7 @@ export namespace GtkSource {
|
|
|
4851
4933
|
* buffer rules. Note that highlighting will happen
|
|
4852
4934
|
* only if the buffer to print has highlighting activated.
|
|
4853
4935
|
* @returns `true` if the printed output will be highlighted.
|
|
4936
|
+
* @since 2.2
|
|
4854
4937
|
*/
|
|
4855
4938
|
get_highlight_syntax(): boolean;
|
|
4856
4939
|
|
|
@@ -4858,6 +4941,7 @@ export namespace GtkSource {
|
|
|
4858
4941
|
* Gets the left margin in units of `unit`.
|
|
4859
4942
|
* @param unit the unit for the return value.
|
|
4860
4943
|
* @returns the left margin
|
|
4944
|
+
* @since 2.2
|
|
4861
4945
|
*/
|
|
4862
4946
|
get_left_margin(unit: Gtk.Unit): number;
|
|
4863
4947
|
|
|
@@ -4865,6 +4949,7 @@ export namespace GtkSource {
|
|
|
4865
4949
|
* Returns the name of the font used to print line numbers on the left margin.
|
|
4866
4950
|
* The returned string must be freed with `g_free()`.
|
|
4867
4951
|
* @returns a new string containing the name of the font used to print line numbers on the left margin.
|
|
4952
|
+
* @since 2.2
|
|
4868
4953
|
*/
|
|
4869
4954
|
get_line_numbers_font_name(): string;
|
|
4870
4955
|
|
|
@@ -4872,12 +4957,14 @@ export namespace GtkSource {
|
|
|
4872
4957
|
* Returns the number of pages in the document or <code>-1</code> if the
|
|
4873
4958
|
* document has not been completely paginated.
|
|
4874
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
|
|
4875
4961
|
*/
|
|
4876
4962
|
get_n_pages(): number;
|
|
4877
4963
|
|
|
4878
4964
|
/**
|
|
4879
4965
|
* Returns the current fraction of the document pagination that has been completed.
|
|
4880
4966
|
* @returns a fraction from 0.0 to 1.0 inclusive.
|
|
4967
|
+
* @since 2.2
|
|
4881
4968
|
*/
|
|
4882
4969
|
get_pagination_progress(): number;
|
|
4883
4970
|
|
|
@@ -4887,6 +4974,7 @@ export namespace GtkSource {
|
|
|
4887
4974
|
* <emphasis>and</emphasis> some format strings have been specified
|
|
4888
4975
|
* with `gtk_source_print_compositor_set_footer_format()`.
|
|
4889
4976
|
* @returns `true` if the footer is set to be printed.
|
|
4977
|
+
* @since 2.2
|
|
4890
4978
|
*/
|
|
4891
4979
|
get_print_footer(): boolean;
|
|
4892
4980
|
|
|
@@ -4896,6 +4984,7 @@ export namespace GtkSource {
|
|
|
4896
4984
|
* <emphasis>and</emphasis> some format strings have been specified
|
|
4897
4985
|
* with `gtk_source_print_compositor_set_header_format()`.
|
|
4898
4986
|
* @returns `true` if the header is set to be printed.
|
|
4987
|
+
* @since 2.2
|
|
4899
4988
|
*/
|
|
4900
4989
|
get_print_header(): boolean;
|
|
4901
4990
|
|
|
@@ -4904,6 +4993,7 @@ export namespace GtkSource {
|
|
|
4904
4993
|
* value is 0, no line numbers will be printed. The default value is
|
|
4905
4994
|
* 1 (i.e. numbers printed in all lines).
|
|
4906
4995
|
* @returns the interval of printed line numbers.
|
|
4996
|
+
* @since 2.2
|
|
4907
4997
|
*/
|
|
4908
4998
|
get_print_line_numbers(): number;
|
|
4909
4999
|
|
|
@@ -4911,12 +5001,14 @@ export namespace GtkSource {
|
|
|
4911
5001
|
* Gets the right margin in units of `unit`.
|
|
4912
5002
|
* @param unit the unit for the return value.
|
|
4913
5003
|
* @returns the right margin.
|
|
5004
|
+
* @since 2.2
|
|
4914
5005
|
*/
|
|
4915
5006
|
get_right_margin(unit: Gtk.Unit): number;
|
|
4916
5007
|
|
|
4917
5008
|
/**
|
|
4918
5009
|
* Returns the width of tabulation in characters for printed text.
|
|
4919
5010
|
* @returns width of tab.
|
|
5011
|
+
* @since 2.2
|
|
4920
5012
|
*/
|
|
4921
5013
|
get_tab_width(): number;
|
|
4922
5014
|
|
|
@@ -4924,12 +5016,14 @@ export namespace GtkSource {
|
|
|
4924
5016
|
* Gets the top margin in units of `unit`.
|
|
4925
5017
|
* @param unit the unit for the return value.
|
|
4926
5018
|
* @returns the top margin.
|
|
5019
|
+
* @since 2.2
|
|
4927
5020
|
*/
|
|
4928
5021
|
get_top_margin(unit: Gtk.Unit): number;
|
|
4929
5022
|
|
|
4930
5023
|
/**
|
|
4931
5024
|
* Gets the line wrapping mode for the printed text.
|
|
4932
5025
|
* @returns the line wrap mode.
|
|
5026
|
+
* @since 2.2
|
|
4933
5027
|
*/
|
|
4934
5028
|
get_wrap_mode(): Gtk.WrapMode;
|
|
4935
5029
|
|
|
@@ -4996,6 +5090,7 @@ export namespace GtkSource {
|
|
|
4996
5090
|
* </programlisting></informalexample>
|
|
4997
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.
|
|
4998
5092
|
* @returns `true` if the document has been completely paginated, `false` otherwise.
|
|
5093
|
+
* @since 2.2
|
|
4999
5094
|
*/
|
|
5000
5095
|
paginate(context: Gtk.PrintContext): boolean;
|
|
5001
5096
|
|
|
@@ -5010,6 +5105,7 @@ export namespace GtkSource {
|
|
|
5010
5105
|
* This function cannot be called anymore after the first call to the
|
|
5011
5106
|
* `gtk_source_print_compositor_paginate()` function.
|
|
5012
5107
|
* @param font_name the name of the default font for the body text.
|
|
5108
|
+
* @since 2.2
|
|
5013
5109
|
*/
|
|
5014
5110
|
set_body_font_name(font_name: string): void;
|
|
5015
5111
|
|
|
@@ -5017,6 +5113,7 @@ export namespace GtkSource {
|
|
|
5017
5113
|
* Sets the bottom margin used by `compositor`.
|
|
5018
5114
|
* @param margin the new bottom margin in units of `unit`.
|
|
5019
5115
|
* @param unit the units for `margin`.
|
|
5116
|
+
* @since 2.2
|
|
5020
5117
|
*/
|
|
5021
5118
|
set_bottom_margin(margin: number, unit: Gtk.Unit): void;
|
|
5022
5119
|
|
|
@@ -5033,6 +5130,7 @@ export namespace GtkSource {
|
|
|
5033
5130
|
* This function cannot be called anymore after the first call to the
|
|
5034
5131
|
* `gtk_source_print_compositor_paginate()` function.
|
|
5035
5132
|
* @param font_name the name of the font for the footer text, or `null`.
|
|
5133
|
+
* @since 2.2
|
|
5036
5134
|
*/
|
|
5037
5135
|
set_footer_font_name(font_name: string | null): void;
|
|
5038
5136
|
|
|
@@ -5043,6 +5141,7 @@ export namespace GtkSource {
|
|
|
5043
5141
|
* @param left a format string to print on the left of the footer.
|
|
5044
5142
|
* @param center a format string to print on the center of the footer.
|
|
5045
5143
|
* @param right a format string to print on the right of the footer.
|
|
5144
|
+
* @since 2.2
|
|
5046
5145
|
*/
|
|
5047
5146
|
set_footer_format(separator: boolean, left: string | null, center: string | null, right: string | null): void;
|
|
5048
5147
|
|
|
@@ -5059,6 +5158,7 @@ export namespace GtkSource {
|
|
|
5059
5158
|
* This function cannot be called anymore after the first call to the
|
|
5060
5159
|
* `gtk_source_print_compositor_paginate()` function.
|
|
5061
5160
|
* @param font_name the name of the font for header text, or `null`.
|
|
5161
|
+
* @since 2.2
|
|
5062
5162
|
*/
|
|
5063
5163
|
set_header_font_name(font_name: string | null): void;
|
|
5064
5164
|
|
|
@@ -5088,6 +5188,7 @@ export namespace GtkSource {
|
|
|
5088
5188
|
* @param left a format string to print on the left of the header.
|
|
5089
5189
|
* @param center a format string to print on the center of the header.
|
|
5090
5190
|
* @param right a format string to print on the right of the header.
|
|
5191
|
+
* @since 2.2
|
|
5091
5192
|
*/
|
|
5092
5193
|
set_header_format(separator: boolean, left: string | null, center: string | null, right: string | null): void;
|
|
5093
5194
|
|
|
@@ -5098,6 +5199,7 @@ export namespace GtkSource {
|
|
|
5098
5199
|
* This function cannot be called anymore after the first call to the
|
|
5099
5200
|
* `gtk_source_print_compositor_paginate()` function.
|
|
5100
5201
|
* @param highlight whether syntax should be highlighted.
|
|
5202
|
+
* @since 2.2
|
|
5101
5203
|
*/
|
|
5102
5204
|
set_highlight_syntax(highlight: boolean): void;
|
|
5103
5205
|
|
|
@@ -5105,6 +5207,7 @@ export namespace GtkSource {
|
|
|
5105
5207
|
* Sets the left margin used by `compositor`.
|
|
5106
5208
|
* @param margin the new left margin in units of `unit`.
|
|
5107
5209
|
* @param unit the units for `margin`.
|
|
5210
|
+
* @since 2.2
|
|
5108
5211
|
*/
|
|
5109
5212
|
set_left_margin(margin: number, unit: Gtk.Unit): void;
|
|
5110
5213
|
|
|
@@ -5121,6 +5224,7 @@ export namespace GtkSource {
|
|
|
5121
5224
|
* This function cannot be called anymore after the first call to the
|
|
5122
5225
|
* `gtk_source_print_compositor_paginate()` function.
|
|
5123
5226
|
* @param font_name the name of the font for line numbers, or `null`.
|
|
5227
|
+
* @since 2.2
|
|
5124
5228
|
*/
|
|
5125
5229
|
set_line_numbers_font_name(font_name: string | null): void;
|
|
5126
5230
|
|
|
@@ -5136,6 +5240,7 @@ export namespace GtkSource {
|
|
|
5136
5240
|
* This function cannot be called anymore after the first call to the
|
|
5137
5241
|
* `gtk_source_print_compositor_paginate()` function.
|
|
5138
5242
|
* @param print `true` if you want the footer to be printed.
|
|
5243
|
+
* @since 2.2
|
|
5139
5244
|
*/
|
|
5140
5245
|
set_print_footer(print: boolean): void;
|
|
5141
5246
|
|
|
@@ -5151,6 +5256,7 @@ export namespace GtkSource {
|
|
|
5151
5256
|
* This function cannot be called anymore after the first call to the
|
|
5152
5257
|
* `gtk_source_print_compositor_paginate()` function.
|
|
5153
5258
|
* @param print `true` if you want the header to be printed.
|
|
5259
|
+
* @since 2.2
|
|
5154
5260
|
*/
|
|
5155
5261
|
set_print_header(print: boolean): void;
|
|
5156
5262
|
|
|
@@ -5164,6 +5270,7 @@ export namespace GtkSource {
|
|
|
5164
5270
|
* This function cannot be called anymore after the first call to the
|
|
5165
5271
|
* `gtk_source_print_compositor_paginate()` function.
|
|
5166
5272
|
* @param interval interval for printed line numbers.
|
|
5273
|
+
* @since 2.2
|
|
5167
5274
|
*/
|
|
5168
5275
|
set_print_line_numbers(interval: number): void;
|
|
5169
5276
|
|
|
@@ -5171,6 +5278,7 @@ export namespace GtkSource {
|
|
|
5171
5278
|
* Sets the right margin used by `compositor`.
|
|
5172
5279
|
* @param margin the new right margin in units of `unit`.
|
|
5173
5280
|
* @param unit the units for `margin`.
|
|
5281
|
+
* @since 2.2
|
|
5174
5282
|
*/
|
|
5175
5283
|
set_right_margin(margin: number, unit: Gtk.Unit): void;
|
|
5176
5284
|
|
|
@@ -5180,6 +5288,7 @@ export namespace GtkSource {
|
|
|
5180
5288
|
* This function cannot be called anymore after the first call to the
|
|
5181
5289
|
* `gtk_source_print_compositor_paginate()` function.
|
|
5182
5290
|
* @param width width of tab in characters.
|
|
5291
|
+
* @since 2.2
|
|
5183
5292
|
*/
|
|
5184
5293
|
set_tab_width(width: number): void;
|
|
5185
5294
|
|
|
@@ -5187,6 +5296,7 @@ export namespace GtkSource {
|
|
|
5187
5296
|
* Sets the top margin used by `compositor`.
|
|
5188
5297
|
* @param margin the new top margin in units of `unit`
|
|
5189
5298
|
* @param unit the units for `margin`
|
|
5299
|
+
* @since 2.2
|
|
5190
5300
|
*/
|
|
5191
5301
|
set_top_margin(margin: number, unit: Gtk.Unit): void;
|
|
5192
5302
|
|
|
@@ -5196,6 +5306,7 @@ export namespace GtkSource {
|
|
|
5196
5306
|
* This function cannot be called anymore after the first call to the
|
|
5197
5307
|
* `gtk_source_print_compositor_paginate()` function.
|
|
5198
5308
|
* @param wrap_mode a {@link Gtk.WrapMode}.
|
|
5309
|
+
* @since 2.2
|
|
5199
5310
|
*/
|
|
5200
5311
|
set_wrap_mode(wrap_mode: Gtk.WrapMode): void;
|
|
5201
5312
|
}
|
|
@@ -5261,6 +5372,7 @@ export namespace GtkSource {
|
|
|
5261
5372
|
/**
|
|
5262
5373
|
* Adds `region_to_add` to `region`. `region_to_add` is not modified.
|
|
5263
5374
|
* @param region_to_add the {@link GtkSource.Region} to add to `region`, or `null`.
|
|
5375
|
+
* @since 3.22
|
|
5264
5376
|
*/
|
|
5265
5377
|
add_region(region_to_add: Region | null): void;
|
|
5266
5378
|
|
|
@@ -5268,23 +5380,27 @@ export namespace GtkSource {
|
|
|
5268
5380
|
* Adds the subregion delimited by `_start` and `_end` to `region`.
|
|
5269
5381
|
* @param _start the start of the subregion.
|
|
5270
5382
|
* @param _end the end of the subregion.
|
|
5383
|
+
* @since 3.22
|
|
5271
5384
|
*/
|
|
5272
5385
|
add_subregion(_start: Gtk.TextIter, _end: Gtk.TextIter): void;
|
|
5273
5386
|
|
|
5274
5387
|
/**
|
|
5275
5388
|
* Gets the `start` and `end` bounds of the `region`.
|
|
5276
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
|
|
5277
5391
|
*/
|
|
5278
5392
|
get_bounds(): [boolean, Gtk.TextIter | null, Gtk.TextIter | null];
|
|
5279
5393
|
|
|
5280
5394
|
/**
|
|
5281
5395
|
* @returns the {@link Gtk.TextBuffer}.
|
|
5396
|
+
* @since 3.22
|
|
5282
5397
|
*/
|
|
5283
5398
|
get_buffer(): Gtk.TextBuffer | null;
|
|
5284
5399
|
|
|
5285
5400
|
/**
|
|
5286
5401
|
* Initializes a {@link GtkSource.RegionIter} to the first subregion of `region`. If
|
|
5287
5402
|
* `region` is empty, `iter` will be initialized to the end iterator.
|
|
5403
|
+
* @since 3.22
|
|
5288
5404
|
*/
|
|
5289
5405
|
get_start_region_iter(): RegionIter;
|
|
5290
5406
|
|
|
@@ -5293,6 +5409,7 @@ export namespace GtkSource {
|
|
|
5293
5409
|
* `region2` are not modified.
|
|
5294
5410
|
* @param region2 a {@link GtkSource.Region}, or `null`.
|
|
5295
5411
|
* @returns the intersection as a {@link GtkSource.Region} object.
|
|
5412
|
+
* @since 3.22
|
|
5296
5413
|
*/
|
|
5297
5414
|
intersect_region(region2: Region | null): Region | null;
|
|
5298
5415
|
|
|
@@ -5302,12 +5419,14 @@ export namespace GtkSource {
|
|
|
5302
5419
|
* @param _start the start of the subregion.
|
|
5303
5420
|
* @param _end the end of the subregion.
|
|
5304
5421
|
* @returns the intersection as a new {@link GtkSource.Region}.
|
|
5422
|
+
* @since 3.22
|
|
5305
5423
|
*/
|
|
5306
5424
|
intersect_subregion(_start: Gtk.TextIter, _end: Gtk.TextIter): Region | null;
|
|
5307
5425
|
|
|
5308
5426
|
/**
|
|
5309
5427
|
* Returns whether the `region` is empty. A `null` `region` is considered empty.
|
|
5310
5428
|
* @returns whether the `region` is empty.
|
|
5429
|
+
* @since 3.22
|
|
5311
5430
|
*/
|
|
5312
5431
|
is_empty(): boolean;
|
|
5313
5432
|
|
|
@@ -5315,6 +5434,7 @@ export namespace GtkSource {
|
|
|
5315
5434
|
* Subtracts `region_to_subtract` from `region`. `region_to_subtract` is not
|
|
5316
5435
|
* modified.
|
|
5317
5436
|
* @param region_to_subtract the {@link GtkSource.Region} to subtract from `region`, or `null`.
|
|
5437
|
+
* @since 3.22
|
|
5318
5438
|
*/
|
|
5319
5439
|
subtract_region(region_to_subtract: Region | null): void;
|
|
5320
5440
|
|
|
@@ -5322,6 +5442,7 @@ export namespace GtkSource {
|
|
|
5322
5442
|
* Subtracts the subregion delimited by `_start` and `_end` from `region`.
|
|
5323
5443
|
* @param _start the start of the subregion.
|
|
5324
5444
|
* @param _end the end of the subregion.
|
|
5445
|
+
* @since 3.22
|
|
5325
5446
|
*/
|
|
5326
5447
|
subtract_subregion(_start: Gtk.TextIter, _end: Gtk.TextIter): void;
|
|
5327
5448
|
|
|
@@ -5331,6 +5452,7 @@ export namespace GtkSource {
|
|
|
5331
5452
|
* The returned string contains the character offsets of the subregions. It
|
|
5332
5453
|
* doesn't include a newline character at the end of the string.
|
|
5333
5454
|
* @returns a string represention of `region`. Free with `g_free()` when no longer needed.
|
|
5455
|
+
* @since 3.22
|
|
5334
5456
|
*/
|
|
5335
5457
|
to_string(): string | null;
|
|
5336
5458
|
}
|
|
@@ -5491,6 +5613,7 @@ export namespace GtkSource {
|
|
|
5491
5613
|
* the same value as the {@link GtkSource.SearchSettings.wrap_around} property.
|
|
5492
5614
|
* @param iter start of search.
|
|
5493
5615
|
* @returns whether a match was found.
|
|
5616
|
+
* @since 4.0
|
|
5494
5617
|
*/
|
|
5495
5618
|
backward(iter: Gtk.TextIter): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
|
|
5496
5619
|
|
|
@@ -5507,6 +5630,7 @@ export namespace GtkSource {
|
|
|
5507
5630
|
* ownership of `cancellable`, so you can unref it after calling this function.
|
|
5508
5631
|
* @param iter start of search.
|
|
5509
5632
|
* @param cancellable a {@link Gio.Cancellable}, or `null`.
|
|
5633
|
+
* @since 3.10
|
|
5510
5634
|
*/
|
|
5511
5635
|
backward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null): globalThis.Promise<[Gtk.TextIter | null, Gtk.TextIter | null, boolean]>;
|
|
5512
5636
|
|
|
@@ -5524,6 +5648,7 @@ export namespace GtkSource {
|
|
|
5524
5648
|
* @param iter start of search.
|
|
5525
5649
|
* @param cancellable a {@link Gio.Cancellable}, or `null`.
|
|
5526
5650
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the operation is finished.
|
|
5651
|
+
* @since 3.10
|
|
5527
5652
|
*/
|
|
5528
5653
|
backward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
5529
5654
|
|
|
@@ -5541,6 +5666,7 @@ export namespace GtkSource {
|
|
|
5541
5666
|
* @param iter start of search.
|
|
5542
5667
|
* @param cancellable a {@link Gio.Cancellable}, or `null`.
|
|
5543
5668
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the operation is finished.
|
|
5669
|
+
* @since 3.10
|
|
5544
5670
|
*/
|
|
5545
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;
|
|
5546
5672
|
|
|
@@ -5552,6 +5678,7 @@ export namespace GtkSource {
|
|
|
5552
5678
|
* details.
|
|
5553
5679
|
* @param result a {@link Gio.AsyncResult}.
|
|
5554
5680
|
* @returns whether a match was found.
|
|
5681
|
+
* @since 4.0
|
|
5555
5682
|
*/
|
|
5556
5683
|
backward_finish(result: Gio.AsyncResult): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
|
|
5557
5684
|
|
|
@@ -5568,6 +5695,7 @@ export namespace GtkSource {
|
|
|
5568
5695
|
* the same value as the {@link GtkSource.SearchSettings.wrap_around} property.
|
|
5569
5696
|
* @param iter start of search.
|
|
5570
5697
|
* @returns whether a match was found.
|
|
5698
|
+
* @since 4.0
|
|
5571
5699
|
*/
|
|
5572
5700
|
forward(iter: Gtk.TextIter): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
|
|
5573
5701
|
|
|
@@ -5584,6 +5712,7 @@ export namespace GtkSource {
|
|
|
5584
5712
|
* ownership of `cancellable`, so you can unref it after calling this function.
|
|
5585
5713
|
* @param iter start of search.
|
|
5586
5714
|
* @param cancellable a {@link Gio.Cancellable}, or `null`.
|
|
5715
|
+
* @since 3.10
|
|
5587
5716
|
*/
|
|
5588
5717
|
forward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null): globalThis.Promise<[Gtk.TextIter | null, Gtk.TextIter | null, boolean]>;
|
|
5589
5718
|
|
|
@@ -5601,6 +5730,7 @@ export namespace GtkSource {
|
|
|
5601
5730
|
* @param iter start of search.
|
|
5602
5731
|
* @param cancellable a {@link Gio.Cancellable}, or `null`.
|
|
5603
5732
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the operation is finished.
|
|
5733
|
+
* @since 3.10
|
|
5604
5734
|
*/
|
|
5605
5735
|
forward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
5606
5736
|
|
|
@@ -5618,6 +5748,7 @@ export namespace GtkSource {
|
|
|
5618
5748
|
* @param iter start of search.
|
|
5619
5749
|
* @param cancellable a {@link Gio.Cancellable}, or `null`.
|
|
5620
5750
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the operation is finished.
|
|
5751
|
+
* @since 3.10
|
|
5621
5752
|
*/
|
|
5622
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;
|
|
5623
5754
|
|
|
@@ -5629,21 +5760,25 @@ export namespace GtkSource {
|
|
|
5629
5760
|
* details.
|
|
5630
5761
|
* @param result a {@link Gio.AsyncResult}.
|
|
5631
5762
|
* @returns whether a match was found.
|
|
5763
|
+
* @since 4.0
|
|
5632
5764
|
*/
|
|
5633
5765
|
forward_finish(result: Gio.AsyncResult): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
|
|
5634
5766
|
|
|
5635
5767
|
/**
|
|
5636
5768
|
* @returns the associated buffer.
|
|
5769
|
+
* @since 3.10
|
|
5637
5770
|
*/
|
|
5638
5771
|
get_buffer(): Buffer;
|
|
5639
5772
|
|
|
5640
5773
|
/**
|
|
5641
5774
|
* @returns whether to highlight the search occurrences.
|
|
5775
|
+
* @since 3.10
|
|
5642
5776
|
*/
|
|
5643
5777
|
get_highlight(): boolean;
|
|
5644
5778
|
|
|
5645
5779
|
/**
|
|
5646
5780
|
* @returns the {@link GtkSource.Style} to apply on search matches.
|
|
5781
|
+
* @since 3.16
|
|
5647
5782
|
*/
|
|
5648
5783
|
get_match_style(): Style;
|
|
5649
5784
|
|
|
@@ -5655,6 +5790,7 @@ export namespace GtkSource {
|
|
|
5655
5790
|
* @param match_start the start of the occurrence.
|
|
5656
5791
|
* @param match_end the end of the occurrence.
|
|
5657
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
|
|
5658
5794
|
*/
|
|
5659
5795
|
get_occurrence_position(match_start: Gtk.TextIter, match_end: Gtk.TextIter): number;
|
|
5660
5796
|
|
|
@@ -5663,6 +5799,7 @@ export namespace GtkSource {
|
|
|
5663
5799
|
* fully scanned, the total number of occurrences is unknown, and -1 is
|
|
5664
5800
|
* returned.
|
|
5665
5801
|
* @returns the total number of search occurrences, or -1 if unknown.
|
|
5802
|
+
* @since 3.10
|
|
5666
5803
|
*/
|
|
5667
5804
|
get_occurrences_count(): number;
|
|
5668
5805
|
|
|
@@ -5673,11 +5810,13 @@ export namespace GtkSource {
|
|
|
5673
5810
|
*
|
|
5674
5811
|
* Free the return value with `g_error_free()`.
|
|
5675
5812
|
* @returns the {@link GLib.Error}, or `null` if the pattern is valid.
|
|
5813
|
+
* @since 3.10
|
|
5676
5814
|
*/
|
|
5677
5815
|
get_regex_error(): GLib.Error | null;
|
|
5678
5816
|
|
|
5679
5817
|
/**
|
|
5680
5818
|
* @returns the search settings.
|
|
5819
|
+
* @since 3.10
|
|
5681
5820
|
*/
|
|
5682
5821
|
get_settings(): SearchSettings;
|
|
5683
5822
|
|
|
@@ -5696,6 +5835,7 @@ export namespace GtkSource {
|
|
|
5696
5835
|
* @param replace the replacement text.
|
|
5697
5836
|
* @param replace_length the length of `replace` in bytes, or -1.
|
|
5698
5837
|
* @returns whether the match has been replaced.
|
|
5838
|
+
* @since 4.0
|
|
5699
5839
|
*/
|
|
5700
5840
|
replace(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string, replace_length: number): boolean;
|
|
5701
5841
|
|
|
@@ -5709,12 +5849,14 @@ export namespace GtkSource {
|
|
|
5709
5849
|
* @param replace the replacement text.
|
|
5710
5850
|
* @param replace_length the length of `replace` in bytes, or -1.
|
|
5711
5851
|
* @returns the number of replaced matches.
|
|
5852
|
+
* @since 3.10
|
|
5712
5853
|
*/
|
|
5713
5854
|
replace_all(replace: string, replace_length: number): number;
|
|
5714
5855
|
|
|
5715
5856
|
/**
|
|
5716
5857
|
* Enables or disables the search occurrences highlighting.
|
|
5717
5858
|
* @param highlight the setting.
|
|
5859
|
+
* @since 3.10
|
|
5718
5860
|
*/
|
|
5719
5861
|
set_highlight(highlight: boolean): void;
|
|
5720
5862
|
|
|
@@ -5724,6 +5866,7 @@ export namespace GtkSource {
|
|
|
5724
5866
|
* To enable or disable the search highlighting, use
|
|
5725
5867
|
* `gtk_source_search_context_set_highlight()`.
|
|
5726
5868
|
* @param match_style a {@link GtkSource.Style}, or `null`.
|
|
5869
|
+
* @since 3.16
|
|
5727
5870
|
*/
|
|
5728
5871
|
set_match_style(match_style: Style | null): void;
|
|
5729
5872
|
}
|
|
@@ -5885,16 +6028,19 @@ export namespace GtkSource {
|
|
|
5885
6028
|
// Methods
|
|
5886
6029
|
/**
|
|
5887
6030
|
* @returns whether to search at word boundaries.
|
|
6031
|
+
* @since 3.10
|
|
5888
6032
|
*/
|
|
5889
6033
|
get_at_word_boundaries(): boolean;
|
|
5890
6034
|
|
|
5891
6035
|
/**
|
|
5892
6036
|
* @returns whether the search is case sensitive.
|
|
6037
|
+
* @since 3.10
|
|
5893
6038
|
*/
|
|
5894
6039
|
get_case_sensitive(): boolean;
|
|
5895
6040
|
|
|
5896
6041
|
/**
|
|
5897
6042
|
* @returns whether to search by regular expressions.
|
|
6043
|
+
* @since 3.10
|
|
5898
6044
|
*/
|
|
5899
6045
|
get_regex_enabled(): boolean;
|
|
5900
6046
|
|
|
@@ -5904,11 +6050,13 @@ export namespace GtkSource {
|
|
|
5904
6050
|
* You may be interested to call `gtk_source_utils_escape_search_text()` after
|
|
5905
6051
|
* this function.
|
|
5906
6052
|
* @returns the text to search, or `null` if the search is disabled.
|
|
6053
|
+
* @since 3.10
|
|
5907
6054
|
*/
|
|
5908
6055
|
get_search_text(): string | null;
|
|
5909
6056
|
|
|
5910
6057
|
/**
|
|
5911
6058
|
* @returns whether to wrap around the search.
|
|
6059
|
+
* @since 3.10
|
|
5912
6060
|
*/
|
|
5913
6061
|
get_wrap_around(): boolean;
|
|
5914
6062
|
|
|
@@ -5918,12 +6066,14 @@ export namespace GtkSource {
|
|
|
5918
6066
|
* multiple words. See also `gtk_text_iter_starts_word()` and
|
|
5919
6067
|
* `gtk_text_iter_ends_word()`.
|
|
5920
6068
|
* @param at_word_boundaries the setting.
|
|
6069
|
+
* @since 3.10
|
|
5921
6070
|
*/
|
|
5922
6071
|
set_at_word_boundaries(at_word_boundaries: boolean): void;
|
|
5923
6072
|
|
|
5924
6073
|
/**
|
|
5925
6074
|
* Enables or disables the case sensitivity for the search.
|
|
5926
6075
|
* @param case_sensitive the setting.
|
|
6076
|
+
* @since 3.10
|
|
5927
6077
|
*/
|
|
5928
6078
|
set_case_sensitive(case_sensitive: boolean): void;
|
|
5929
6079
|
|
|
@@ -5936,6 +6086,7 @@ export namespace GtkSource {
|
|
|
5936
6086
|
* [Regular expression syntax](https://developer.gnome.org/glib/stable/glib-regex-syntax.html)
|
|
5937
6087
|
* page in the GLib reference manual.
|
|
5938
6088
|
* @param regex_enabled the setting.
|
|
6089
|
+
* @since 3.10
|
|
5939
6090
|
*/
|
|
5940
6091
|
set_regex_enabled(regex_enabled: boolean): void;
|
|
5941
6092
|
|
|
@@ -5947,6 +6098,7 @@ export namespace GtkSource {
|
|
|
5947
6098
|
* You may be interested to call `gtk_source_utils_unescape_search_text()` before
|
|
5948
6099
|
* this function.
|
|
5949
6100
|
* @param search_text the nul-terminated text to search, or `null` to disable the search.
|
|
6101
|
+
* @since 3.10
|
|
5950
6102
|
*/
|
|
5951
6103
|
set_search_text(search_text: string | null): void;
|
|
5952
6104
|
|
|
@@ -5956,6 +6108,7 @@ export namespace GtkSource {
|
|
|
5956
6108
|
* occurrences are found. Similarly, the backward search continues to search at
|
|
5957
6109
|
* the end of the buffer.
|
|
5958
6110
|
* @param wrap_around the setting.
|
|
6111
|
+
* @since 3.10
|
|
5959
6112
|
*/
|
|
5960
6113
|
set_wrap_around(wrap_around: boolean): void;
|
|
5961
6114
|
}
|
|
@@ -6061,11 +6214,13 @@ export namespace GtkSource {
|
|
|
6061
6214
|
* @param settings a {@link Gio.Settings} object.
|
|
6062
6215
|
* @param key the `settings` key to bind.
|
|
6063
6216
|
* @param flags flags for the binding.
|
|
6217
|
+
* @since 3.24
|
|
6064
6218
|
*/
|
|
6065
6219
|
bind_matrix_setting(settings: Gio.Settings, key: string, flags: Gio.SettingsBindFlags): void;
|
|
6066
6220
|
|
|
6067
6221
|
/**
|
|
6068
6222
|
* @returns whether the {@link GtkSource.SpaceDrawer.matrix} property is enabled.
|
|
6223
|
+
* @since 3.24
|
|
6069
6224
|
*/
|
|
6070
6225
|
get_enable_matrix(): boolean;
|
|
6071
6226
|
|
|
@@ -6076,6 +6231,7 @@ export namespace GtkSource {
|
|
|
6076
6231
|
* The `gtk_source_space_drawer_get_types_for_locations()` function may be more
|
|
6077
6232
|
* convenient to use.
|
|
6078
6233
|
* @returns the {@link GtkSource.SpaceDrawer.matrix} value as a new floating {@link GLib.Variant} instance.
|
|
6234
|
+
* @since 3.24
|
|
6079
6235
|
*/
|
|
6080
6236
|
get_matrix(): GLib.Variant;
|
|
6081
6237
|
|
|
@@ -6090,12 +6246,14 @@ export namespace GtkSource {
|
|
|
6090
6246
|
* specified `locations`.
|
|
6091
6247
|
* @param locations one or several {@link GtkSource.SpaceLocationFlags}.
|
|
6092
6248
|
* @returns a combination of {@link GtkSource.SpaceTypeFlags}.
|
|
6249
|
+
* @since 3.24
|
|
6093
6250
|
*/
|
|
6094
6251
|
get_types_for_locations(locations: SpaceLocationFlags): SpaceTypeFlags;
|
|
6095
6252
|
|
|
6096
6253
|
/**
|
|
6097
6254
|
* Sets whether the {@link GtkSource.SpaceDrawer.matrix} property is enabled.
|
|
6098
6255
|
* @param enable_matrix the new value.
|
|
6256
|
+
* @since 3.24
|
|
6099
6257
|
*/
|
|
6100
6258
|
set_enable_matrix(enable_matrix: boolean): void;
|
|
6101
6259
|
|
|
@@ -6108,6 +6266,7 @@ export namespace GtkSource {
|
|
|
6108
6266
|
* The `gtk_source_space_drawer_set_types_for_locations()` function may be more
|
|
6109
6267
|
* convenient to use.
|
|
6110
6268
|
* @param matrix the new matrix value, or `null`.
|
|
6269
|
+
* @since 3.24
|
|
6111
6270
|
*/
|
|
6112
6271
|
set_matrix(matrix: GLib.Variant | null): void;
|
|
6113
6272
|
|
|
@@ -6116,6 +6275,7 @@ export namespace GtkSource {
|
|
|
6116
6275
|
* `locations`.
|
|
6117
6276
|
* @param locations one or several {@link GtkSource.SpaceLocationFlags}.
|
|
6118
6277
|
* @param types a combination of {@link GtkSource.SpaceTypeFlags}.
|
|
6278
|
+
* @since 3.24
|
|
6119
6279
|
*/
|
|
6120
6280
|
set_types_for_locations(locations: SpaceLocationFlags, types: SpaceTypeFlags): void;
|
|
6121
6281
|
}
|
|
@@ -6165,32 +6325,38 @@ export namespace GtkSource {
|
|
|
6165
6325
|
// Methods
|
|
6166
6326
|
/**
|
|
6167
6327
|
* @returns the `scheme` description, a human-readable (translated) string to present to the user.
|
|
6328
|
+
* @since 2.0
|
|
6168
6329
|
*/
|
|
6169
6330
|
get_description(): string | null;
|
|
6170
6331
|
|
|
6171
6332
|
/**
|
|
6172
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
|
|
6173
6335
|
*/
|
|
6174
6336
|
get_filename(): string | null;
|
|
6175
6337
|
|
|
6176
6338
|
/**
|
|
6177
6339
|
* @returns the `scheme` ID, a unique string used to identify the style scheme in a {@link GtkSource.StyleSchemeManager}.
|
|
6340
|
+
* @since 2.0
|
|
6178
6341
|
*/
|
|
6179
6342
|
get_id(): string;
|
|
6180
6343
|
|
|
6181
6344
|
/**
|
|
6182
6345
|
* @returns the kind of `scheme`.
|
|
6346
|
+
* @since 299.2
|
|
6183
6347
|
*/
|
|
6184
6348
|
get_kind(): StyleSchemeKind;
|
|
6185
6349
|
|
|
6186
6350
|
/**
|
|
6187
6351
|
* @returns the `scheme` name, a human-readable (translated) string to present to the user.
|
|
6352
|
+
* @since 2.0
|
|
6188
6353
|
*/
|
|
6189
6354
|
get_name(): string;
|
|
6190
6355
|
|
|
6191
6356
|
/**
|
|
6192
6357
|
* @param style_id ID of the style to retrieve.
|
|
6193
6358
|
* @returns the {@link GtkSource.Style} which corresponds to `style_id` in the `scheme`, or `null` if not found.
|
|
6359
|
+
* @since 2.0
|
|
6194
6360
|
*/
|
|
6195
6361
|
get_style(style_id: string): Style | null;
|
|
6196
6362
|
}
|
|
@@ -6273,6 +6439,7 @@ export namespace GtkSource {
|
|
|
6273
6439
|
|
|
6274
6440
|
/**
|
|
6275
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
|
|
6276
6443
|
*/
|
|
6277
6444
|
get_schemes(): StyleScheme[];
|
|
6278
6445
|
|
|
@@ -7006,6 +7173,7 @@ export namespace GtkSource {
|
|
|
7006
7173
|
* The line numbers and mark category icons are rendered in the left gutter.
|
|
7007
7174
|
* @param window_type the gutter window type.
|
|
7008
7175
|
* @returns the {@link GtkSource.Gutter}.
|
|
7176
|
+
* @since 2.8
|
|
7009
7177
|
*/
|
|
7010
7178
|
get_gutter(window_type: Gtk.TextWindowType): Gutter;
|
|
7011
7179
|
|
|
@@ -7050,6 +7218,7 @@ export namespace GtkSource {
|
|
|
7050
7218
|
|
|
7051
7219
|
/**
|
|
7052
7220
|
* @returns the current value of the {@link GtkSource.View.show_line_marks} property.
|
|
7221
|
+
* @since 2.2
|
|
7053
7222
|
*/
|
|
7054
7223
|
get_show_line_marks(): boolean;
|
|
7055
7224
|
|
|
@@ -7067,6 +7236,7 @@ export namespace GtkSource {
|
|
|
7067
7236
|
* Returns `true` if pressing the Backspace key will try to delete spaces
|
|
7068
7237
|
* up to the previous tab stop.
|
|
7069
7238
|
* @returns `true` if smart Backspace handling is enabled.
|
|
7239
|
+
* @since 3.18
|
|
7070
7240
|
*/
|
|
7071
7241
|
get_smart_backspace(): boolean;
|
|
7072
7242
|
|
|
@@ -7079,6 +7249,7 @@ export namespace GtkSource {
|
|
|
7079
7249
|
|
|
7080
7250
|
/**
|
|
7081
7251
|
* @returns the value of the {@link GtkSource.View.space_drawer} property.
|
|
7252
|
+
* @since 3.24
|
|
7082
7253
|
*/
|
|
7083
7254
|
get_space_drawer(): SpaceDrawer;
|
|
7084
7255
|
|
|
@@ -7100,6 +7271,7 @@ export namespace GtkSource {
|
|
|
7100
7271
|
* empty lines are not indented.
|
|
7101
7272
|
* @param start {@link Gtk.TextIter} of the first line to indent
|
|
7102
7273
|
* @param end {@link Gtk.TextIter} of the last line to indent
|
|
7274
|
+
* @since 3.16
|
|
7103
7275
|
*/
|
|
7104
7276
|
indent_lines(start: Gtk.TextIter, end: Gtk.TextIter): void;
|
|
7105
7277
|
|
|
@@ -7184,6 +7356,7 @@ export namespace GtkSource {
|
|
|
7184
7356
|
/**
|
|
7185
7357
|
* Sets the {@link GtkSource.View.show_line_marks} property.
|
|
7186
7358
|
* @param show the new value.
|
|
7359
|
+
* @since 2.2
|
|
7187
7360
|
*/
|
|
7188
7361
|
set_show_line_marks(show: boolean): void;
|
|
7189
7362
|
|
|
@@ -7203,6 +7376,7 @@ export namespace GtkSource {
|
|
|
7203
7376
|
* When set to `true`, pressing the Backspace key will try to delete spaces
|
|
7204
7377
|
* up to the previous tab stop.
|
|
7205
7378
|
* @param smart_backspace whether to enable smart Backspace handling.
|
|
7379
|
+
* @since 3.18
|
|
7206
7380
|
*/
|
|
7207
7381
|
set_smart_backspace(smart_backspace: boolean): void;
|
|
7208
7382
|
|
|
@@ -7224,6 +7398,7 @@ export namespace GtkSource {
|
|
|
7224
7398
|
* specified lines.
|
|
7225
7399
|
* @param start {@link Gtk.TextIter} of the first line to indent
|
|
7226
7400
|
* @param end {@link Gtk.TextIter} of the last line to indent
|
|
7401
|
+
* @since 3.16
|
|
7227
7402
|
*/
|
|
7228
7403
|
unindent_lines(start: Gtk.TextIter, end: Gtk.TextIter): void;
|
|
7229
7404
|
|
|
@@ -7292,36 +7467,42 @@ export namespace GtkSource {
|
|
|
7292
7467
|
* display overlayed graphics, like the overshoot indication,
|
|
7293
7468
|
* at the right position.
|
|
7294
7469
|
* @returns `true` if `border` has been set
|
|
7470
|
+
* @since 3.16
|
|
7295
7471
|
*/
|
|
7296
7472
|
get_border(): [boolean, Gtk.Border];
|
|
7297
7473
|
|
|
7298
7474
|
/**
|
|
7299
7475
|
* Retrieves the {@link Gtk.Adjustment} used for horizontal scrolling.
|
|
7300
7476
|
* @returns horizontal {@link Gtk.Adjustment}.
|
|
7477
|
+
* @since 3.0
|
|
7301
7478
|
*/
|
|
7302
7479
|
get_hadjustment(): Gtk.Adjustment;
|
|
7303
7480
|
|
|
7304
7481
|
/**
|
|
7305
7482
|
* Gets the horizontal {@link Gtk.ScrollablePolicy}.
|
|
7306
7483
|
* @returns The horizontal {@link Gtk.ScrollablePolicy}.
|
|
7484
|
+
* @since 3.0
|
|
7307
7485
|
*/
|
|
7308
7486
|
get_hscroll_policy(): Gtk.ScrollablePolicy;
|
|
7309
7487
|
|
|
7310
7488
|
/**
|
|
7311
7489
|
* Retrieves the {@link Gtk.Adjustment} used for vertical scrolling.
|
|
7312
7490
|
* @returns vertical {@link Gtk.Adjustment}.
|
|
7491
|
+
* @since 3.0
|
|
7313
7492
|
*/
|
|
7314
7493
|
get_vadjustment(): Gtk.Adjustment;
|
|
7315
7494
|
|
|
7316
7495
|
/**
|
|
7317
7496
|
* Gets the vertical {@link Gtk.ScrollablePolicy}.
|
|
7318
7497
|
* @returns The vertical {@link Gtk.ScrollablePolicy}.
|
|
7498
|
+
* @since 3.0
|
|
7319
7499
|
*/
|
|
7320
7500
|
get_vscroll_policy(): Gtk.ScrollablePolicy;
|
|
7321
7501
|
|
|
7322
7502
|
/**
|
|
7323
7503
|
* Sets the horizontal adjustment of the {@link Gtk.Scrollable}.
|
|
7324
7504
|
* @param hadjustment a {@link Gtk.Adjustment}
|
|
7505
|
+
* @since 3.0
|
|
7325
7506
|
*/
|
|
7326
7507
|
set_hadjustment(hadjustment: Gtk.Adjustment | null): void;
|
|
7327
7508
|
|
|
@@ -7330,12 +7511,14 @@ export namespace GtkSource {
|
|
|
7330
7511
|
* horizontal scrolling should start below the minimum width or
|
|
7331
7512
|
* below the natural width.
|
|
7332
7513
|
* @param policy the horizontal {@link Gtk.ScrollablePolicy}
|
|
7514
|
+
* @since 3.0
|
|
7333
7515
|
*/
|
|
7334
7516
|
set_hscroll_policy(policy: Gtk.ScrollablePolicy): void;
|
|
7335
7517
|
|
|
7336
7518
|
/**
|
|
7337
7519
|
* Sets the vertical adjustment of the {@link Gtk.Scrollable}.
|
|
7338
7520
|
* @param vadjustment a {@link Gtk.Adjustment}
|
|
7521
|
+
* @since 3.0
|
|
7339
7522
|
*/
|
|
7340
7523
|
set_vadjustment(vadjustment: Gtk.Adjustment | null): void;
|
|
7341
7524
|
|
|
@@ -7344,6 +7527,7 @@ export namespace GtkSource {
|
|
|
7344
7527
|
* vertical scrolling should start below the minimum height or
|
|
7345
7528
|
* below the natural height.
|
|
7346
7529
|
* @param policy the vertical {@link Gtk.ScrollablePolicy}
|
|
7530
|
+
* @since 3.0
|
|
7347
7531
|
*/
|
|
7348
7532
|
set_vscroll_policy(policy: Gtk.ScrollablePolicy): void;
|
|
7349
7533
|
|
|
@@ -7353,6 +7537,7 @@ export namespace GtkSource {
|
|
|
7353
7537
|
* be treeview headers. GTK+ can use this information to
|
|
7354
7538
|
* display overlayed graphics, like the overshoot indication,
|
|
7355
7539
|
* at the right position.
|
|
7540
|
+
* @since 3.16
|
|
7356
7541
|
* @virtual
|
|
7357
7542
|
*/
|
|
7358
7543
|
vfunc_get_border(): [boolean, Gtk.Border];
|
|
@@ -7457,6 +7642,7 @@ export namespace GtkSource {
|
|
|
7457
7642
|
* It is useful for example for `g_slist_find_custom()`.
|
|
7458
7643
|
* @param a a {@link GtkSource.Encoding}.
|
|
7459
7644
|
* @param b a {@link GtkSource.Encoding}.
|
|
7645
|
+
* @since 299.6
|
|
7460
7646
|
*/
|
|
7461
7647
|
static compare_func(a: null, b: null): number;
|
|
7462
7648
|
|
|
@@ -7465,11 +7651,13 @@ export namespace GtkSource {
|
|
|
7465
7651
|
* `gtk_source_encoding_copy()`. It is useful for example for `g_slist_copy_deep()`.
|
|
7466
7652
|
* @param src a {@link GtkSource.Encoding}.
|
|
7467
7653
|
* @param data Additional data (ignored).
|
|
7654
|
+
* @since 299.6
|
|
7468
7655
|
*/
|
|
7469
7656
|
static copy_func(src: null, data: null): null;
|
|
7470
7657
|
|
|
7471
7658
|
/**
|
|
7472
7659
|
* Gets a list of all encodings known by {@link GtkSource.Encoding}.
|
|
7660
|
+
* @since 299.6
|
|
7473
7661
|
*/
|
|
7474
7662
|
static get_all(): Encoding[];
|
|
7475
7663
|
|
|
@@ -7484,6 +7672,7 @@ export namespace GtkSource {
|
|
|
7484
7672
|
* Note that the returned list doesn't contain all encodings known by
|
|
7485
7673
|
* {@link GtkSource.Encoding}, it is a limited list that contains only the encodings
|
|
7486
7674
|
* that have the most likelihood to fit for the current locale.
|
|
7675
|
+
* @since 299.6
|
|
7487
7676
|
*/
|
|
7488
7677
|
static get_default_candidates(): Encoding[];
|
|
7489
7678
|
|
|
@@ -7491,12 +7680,14 @@ export namespace GtkSource {
|
|
|
7491
7680
|
* A convenience function to remove duplicated encodings in a list.
|
|
7492
7681
|
* @param list a list of {@link GtkSource.Encoding}'s.
|
|
7493
7682
|
* @param removal_type the {@link GtkSource.EncodingDuplicates}.
|
|
7683
|
+
* @since 299.6
|
|
7494
7684
|
*/
|
|
7495
7685
|
static remove_duplicates(list: Encoding[], removal_type: EncodingDuplicates): Encoding[];
|
|
7496
7686
|
|
|
7497
7687
|
// Methods
|
|
7498
7688
|
/**
|
|
7499
7689
|
* @returns a copy of `enc`.
|
|
7690
|
+
* @since 299.6
|
|
7500
7691
|
*/
|
|
7501
7692
|
copy(): Encoding;
|
|
7502
7693
|
|
|
@@ -7509,14 +7700,19 @@ export namespace GtkSource {
|
|
|
7509
7700
|
* iconv-compatible charsets are case insensitive).
|
|
7510
7701
|
* @param enc2 a {@link GtkSource.Encoding}, or `null`.
|
|
7511
7702
|
* @returns whether `enc1` and `enc2` are equal.
|
|
7703
|
+
* @since 299.6
|
|
7512
7704
|
*/
|
|
7513
7705
|
equals(enc2: Encoding | null): boolean;
|
|
7514
7706
|
|
|
7707
|
+
/**
|
|
7708
|
+
* @since 299.6
|
|
7709
|
+
*/
|
|
7515
7710
|
free(): void;
|
|
7516
7711
|
|
|
7517
7712
|
/**
|
|
7518
7713
|
* Gets the character set of the {@link GtkSource.Encoding}, such as "UTF-8" or "ISO-8859-1".
|
|
7519
7714
|
* @returns the character set of the {@link GtkSource.Encoding}.
|
|
7715
|
+
* @since 299.6
|
|
7520
7716
|
*/
|
|
7521
7717
|
get_charset(): string;
|
|
7522
7718
|
|
|
@@ -7525,6 +7721,7 @@ export namespace GtkSource {
|
|
|
7525
7721
|
* the charset is unknown by {@link GtkSource.Encoding}, "Unknown" is returned. The
|
|
7526
7722
|
* return value is already translated by gettext.
|
|
7527
7723
|
* @returns the name of the {@link GtkSource.Encoding}.
|
|
7724
|
+
* @since 299.6
|
|
7528
7725
|
*/
|
|
7529
7726
|
get_name(): string;
|
|
7530
7727
|
|
|
@@ -7536,11 +7733,13 @@ export namespace GtkSource {
|
|
|
7536
7733
|
* When the charset string comes from an untrusted source, it can be desirable
|
|
7537
7734
|
* to check it.
|
|
7538
7735
|
* @returns whether `enc` has a charset known by {@link GtkSource.Encoding}.
|
|
7736
|
+
* @since 299.6
|
|
7539
7737
|
*/
|
|
7540
7738
|
has_known_charset(): boolean;
|
|
7541
7739
|
|
|
7542
7740
|
/**
|
|
7543
7741
|
* @returns whether `enc` is the locale encoding (see `gtk_source_encoding_new_from_locale()`).
|
|
7742
|
+
* @since 299.6
|
|
7544
7743
|
*/
|
|
7545
7744
|
is_locale(): boolean;
|
|
7546
7745
|
|
|
@@ -7551,6 +7750,7 @@ export namespace GtkSource {
|
|
|
7551
7750
|
* "UTF-8". But iconv supports other variants: "UTF8", "utf-8" and "utf8". This
|
|
7552
7751
|
* function returns `true` for all UTF-8 variants supported by iconv.
|
|
7553
7752
|
* @returns whether `enc` is a UTF-8 encoding.
|
|
7753
|
+
* @since 299.6
|
|
7554
7754
|
*/
|
|
7555
7755
|
is_utf8(): boolean;
|
|
7556
7756
|
|
|
@@ -7559,6 +7759,7 @@ export namespace GtkSource {
|
|
|
7559
7759
|
* "Unicode (UTF-8)". If the name is unknown, just the charset is returned. The
|
|
7560
7760
|
* name is translated by gettext.
|
|
7561
7761
|
* @returns a string representation. Free with `g_free()` when no longer needed.
|
|
7762
|
+
* @since 299.6
|
|
7562
7763
|
*/
|
|
7563
7764
|
to_string(): string;
|
|
7564
7765
|
}
|
|
@@ -7741,17 +7942,20 @@ export namespace GtkSource {
|
|
|
7741
7942
|
/**
|
|
7742
7943
|
* Gets the subregion at this iterator.
|
|
7743
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
|
|
7744
7946
|
*/
|
|
7745
7947
|
get_subregion(): [boolean, Gtk.TextIter | null, Gtk.TextIter | null];
|
|
7746
7948
|
|
|
7747
7949
|
/**
|
|
7748
7950
|
* @returns whether `iter` is the end iterator.
|
|
7951
|
+
* @since 3.22
|
|
7749
7952
|
*/
|
|
7750
7953
|
is_end(): boolean;
|
|
7751
7954
|
|
|
7752
7955
|
/**
|
|
7753
7956
|
* Moves `iter` to the next subregion.
|
|
7754
7957
|
* @returns `true` if `iter` moved and is dereferenceable, or `false` if `iter` has been set to the end iterator.
|
|
7958
|
+
* @since 3.22
|
|
7755
7959
|
*/
|
|
7756
7960
|
next(): boolean;
|
|
7757
7961
|
}
|
|
@@ -7871,18 +8075,21 @@ export namespace GtkSource {
|
|
|
7871
8075
|
* If `style` is `null`, the related `*-set` properties of {@link Gtk.TextTag} are set to
|
|
7872
8076
|
* `false`.
|
|
7873
8077
|
* @param tag a {@link Gtk.TextTag} to apply styles to.
|
|
8078
|
+
* @since 3.22
|
|
7874
8079
|
*/
|
|
7875
8080
|
apply(tag: Gtk.TextTag): void;
|
|
7876
8081
|
|
|
7877
8082
|
/**
|
|
7878
8083
|
* Increases the reference count of `style` by one.
|
|
7879
8084
|
* @returns the passed in `style`.
|
|
8085
|
+
* @since 299.2
|
|
7880
8086
|
*/
|
|
7881
8087
|
ref(): Style;
|
|
7882
8088
|
|
|
7883
8089
|
/**
|
|
7884
8090
|
* Decreases the reference count of `style` by one. If the reference count drops
|
|
7885
8091
|
* to 0, `style` is freed.
|
|
8092
|
+
* @since 299.2
|
|
7886
8093
|
*/
|
|
7887
8094
|
unref(): void;
|
|
7888
8095
|
}
|
|
@@ -7965,6 +8172,7 @@ export namespace GtkSource {
|
|
|
7965
8172
|
/**
|
|
7966
8173
|
* The virtual function pointer for `gtk_source_completion_proposal_get_gicon()`.
|
|
7967
8174
|
* By default, `null` is returned.
|
|
8175
|
+
* @since 3.18
|
|
7968
8176
|
* @virtual
|
|
7969
8177
|
*/
|
|
7970
8178
|
vfunc_get_gicon(): Gio.Icon | null;
|
|
@@ -7979,6 +8187,7 @@ export namespace GtkSource {
|
|
|
7979
8187
|
/**
|
|
7980
8188
|
* The virtual function pointer for `gtk_source_completion_proposal_get_icon_name()`.
|
|
7981
8189
|
* By default, `null` is returned.
|
|
8190
|
+
* @since 3.18
|
|
7982
8191
|
* @virtual
|
|
7983
8192
|
*/
|
|
7984
8193
|
vfunc_get_icon_name(): string | null;
|
|
@@ -8060,6 +8269,7 @@ export namespace GtkSource {
|
|
|
8060
8269
|
|
|
8061
8270
|
/**
|
|
8062
8271
|
* @returns the {@link Gio.Icon} for the icon of `proposal`.
|
|
8272
|
+
* @since 3.18
|
|
8063
8273
|
*/
|
|
8064
8274
|
get_gicon(): Gio.Icon | null;
|
|
8065
8275
|
|
|
@@ -8070,6 +8280,7 @@ export namespace GtkSource {
|
|
|
8070
8280
|
|
|
8071
8281
|
/**
|
|
8072
8282
|
* @returns the icon name of `proposal`.
|
|
8283
|
+
* @since 3.18
|
|
8073
8284
|
*/
|
|
8074
8285
|
get_icon_name(): string | null;
|
|
8075
8286
|
|
|
@@ -8155,6 +8366,7 @@ export namespace GtkSource {
|
|
|
8155
8366
|
|
|
8156
8367
|
/**
|
|
8157
8368
|
* Gets the {@link Gio.Icon} for the icon of `provider`.
|
|
8369
|
+
* @since 3.18
|
|
8158
8370
|
* @virtual
|
|
8159
8371
|
*/
|
|
8160
8372
|
vfunc_get_gicon(): Gio.Icon | null;
|
|
@@ -8167,6 +8379,7 @@ export namespace GtkSource {
|
|
|
8167
8379
|
|
|
8168
8380
|
/**
|
|
8169
8381
|
* Gets the icon name of `provider`.
|
|
8382
|
+
* @since 3.18
|
|
8170
8383
|
* @virtual
|
|
8171
8384
|
*/
|
|
8172
8385
|
vfunc_get_icon_name(): string | null;
|
|
@@ -8308,6 +8521,7 @@ export namespace GtkSource {
|
|
|
8308
8521
|
/**
|
|
8309
8522
|
* Gets the {@link Gio.Icon} for the icon of `provider`.
|
|
8310
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
|
|
8311
8525
|
*/
|
|
8312
8526
|
get_gicon(): Gio.Icon | null;
|
|
8313
8527
|
|
|
@@ -8320,6 +8534,7 @@ export namespace GtkSource {
|
|
|
8320
8534
|
/**
|
|
8321
8535
|
* Gets the icon name of `provider`.
|
|
8322
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
|
|
8323
8538
|
*/
|
|
8324
8539
|
get_icon_name(): string | null;
|
|
8325
8540
|
|
|
@@ -8434,36 +8649,42 @@ export namespace GtkSource {
|
|
|
8434
8649
|
* Begin a not undoable action on the buffer. All changes between this call
|
|
8435
8650
|
* and the call to `gtk_source_undo_manager_end_not_undoable_action()` cannot
|
|
8436
8651
|
* be undone. This function should be re-entrant.
|
|
8652
|
+
* @since 2.10
|
|
8437
8653
|
* @virtual
|
|
8438
8654
|
*/
|
|
8439
8655
|
vfunc_begin_not_undoable_action(): void;
|
|
8440
8656
|
|
|
8441
8657
|
/**
|
|
8442
8658
|
* Get whether there are redo operations available.
|
|
8659
|
+
* @since 2.10
|
|
8443
8660
|
* @virtual
|
|
8444
8661
|
*/
|
|
8445
8662
|
vfunc_can_redo(): boolean;
|
|
8446
8663
|
|
|
8447
8664
|
/**
|
|
8448
8665
|
* Emits the {@link GtkSource.UndoManager.SignalSignatures.can_redo_changed | GtkSource.UndoManager::can-redo-changed} signal.
|
|
8666
|
+
* @since 2.10
|
|
8449
8667
|
* @virtual
|
|
8450
8668
|
*/
|
|
8451
8669
|
vfunc_can_redo_changed(): void;
|
|
8452
8670
|
|
|
8453
8671
|
/**
|
|
8454
8672
|
* Get whether there are undo operations available.
|
|
8673
|
+
* @since 2.10
|
|
8455
8674
|
* @virtual
|
|
8456
8675
|
*/
|
|
8457
8676
|
vfunc_can_undo(): boolean;
|
|
8458
8677
|
|
|
8459
8678
|
/**
|
|
8460
8679
|
* Emits the {@link GtkSource.UndoManager.SignalSignatures.can_undo_changed | GtkSource.UndoManager::can-undo-changed} signal.
|
|
8680
|
+
* @since 2.10
|
|
8461
8681
|
* @virtual
|
|
8462
8682
|
*/
|
|
8463
8683
|
vfunc_can_undo_changed(): void;
|
|
8464
8684
|
|
|
8465
8685
|
/**
|
|
8466
8686
|
* Ends a not undoable action on the buffer.
|
|
8687
|
+
* @since 2.10
|
|
8467
8688
|
* @virtual
|
|
8468
8689
|
*/
|
|
8469
8690
|
vfunc_end_not_undoable_action(): void;
|
|
@@ -8472,6 +8693,7 @@ export namespace GtkSource {
|
|
|
8472
8693
|
* Perform a single redo. Calling this function when there are no redo operations
|
|
8473
8694
|
* available is an error. Use `gtk_source_undo_manager_can_redo()` to find out
|
|
8474
8695
|
* if there are redo operations available.
|
|
8696
|
+
* @since 2.10
|
|
8475
8697
|
* @virtual
|
|
8476
8698
|
*/
|
|
8477
8699
|
vfunc_redo(): void;
|
|
@@ -8480,6 +8702,7 @@ export namespace GtkSource {
|
|
|
8480
8702
|
* Perform a single undo. Calling this function when there are no undo operations
|
|
8481
8703
|
* available is an error. Use `gtk_source_undo_manager_can_undo()` to find out
|
|
8482
8704
|
* if there are undo operations available.
|
|
8705
|
+
* @since 2.10
|
|
8483
8706
|
* @virtual
|
|
8484
8707
|
*/
|
|
8485
8708
|
vfunc_undo(): void;
|
|
@@ -8504,33 +8727,39 @@ export namespace GtkSource {
|
|
|
8504
8727
|
* Begin a not undoable action on the buffer. All changes between this call
|
|
8505
8728
|
* and the call to `gtk_source_undo_manager_end_not_undoable_action()` cannot
|
|
8506
8729
|
* be undone. This function should be re-entrant.
|
|
8730
|
+
* @since 2.10
|
|
8507
8731
|
*/
|
|
8508
8732
|
begin_not_undoable_action(): void;
|
|
8509
8733
|
|
|
8510
8734
|
/**
|
|
8511
8735
|
* Get whether there are redo operations available.
|
|
8512
8736
|
* @returns `true` if there are redo operations available, `false` otherwise
|
|
8737
|
+
* @since 2.10
|
|
8513
8738
|
*/
|
|
8514
8739
|
can_redo(): boolean;
|
|
8515
8740
|
|
|
8516
8741
|
/**
|
|
8517
8742
|
* Emits the {@link GtkSource.UndoManager.SignalSignatures.can_redo_changed | GtkSource.UndoManager::can-redo-changed} signal.
|
|
8743
|
+
* @since 2.10
|
|
8518
8744
|
*/
|
|
8519
8745
|
can_redo_changed(): void;
|
|
8520
8746
|
|
|
8521
8747
|
/**
|
|
8522
8748
|
* Get whether there are undo operations available.
|
|
8523
8749
|
* @returns `true` if there are undo operations available, `false` otherwise
|
|
8750
|
+
* @since 2.10
|
|
8524
8751
|
*/
|
|
8525
8752
|
can_undo(): boolean;
|
|
8526
8753
|
|
|
8527
8754
|
/**
|
|
8528
8755
|
* Emits the {@link GtkSource.UndoManager.SignalSignatures.can_undo_changed | GtkSource.UndoManager::can-undo-changed} signal.
|
|
8756
|
+
* @since 2.10
|
|
8529
8757
|
*/
|
|
8530
8758
|
can_undo_changed(): void;
|
|
8531
8759
|
|
|
8532
8760
|
/**
|
|
8533
8761
|
* Ends a not undoable action on the buffer.
|
|
8762
|
+
* @since 2.10
|
|
8534
8763
|
*/
|
|
8535
8764
|
end_not_undoable_action(): void;
|
|
8536
8765
|
|
|
@@ -8538,6 +8767,7 @@ export namespace GtkSource {
|
|
|
8538
8767
|
* Perform a single redo. Calling this function when there are no redo operations
|
|
8539
8768
|
* available is an error. Use `gtk_source_undo_manager_can_redo()` to find out
|
|
8540
8769
|
* if there are redo operations available.
|
|
8770
|
+
* @since 2.10
|
|
8541
8771
|
*/
|
|
8542
8772
|
redo(): void;
|
|
8543
8773
|
|
|
@@ -8545,6 +8775,7 @@ export namespace GtkSource {
|
|
|
8545
8775
|
* Perform a single undo. Calling this function when there are no undo operations
|
|
8546
8776
|
* available is an error. Use `gtk_source_undo_manager_can_undo()` to find out
|
|
8547
8777
|
* if there are undo operations available.
|
|
8778
|
+
* @since 2.10
|
|
8548
8779
|
*/
|
|
8549
8780
|
undo(): void;
|
|
8550
8781
|
}
|