@girs/gtksource-5 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-5-surface.d.ts +20 -0
- package/gtksource-5-surface.js +6 -0
- package/gtksource-5.d.ts +158 -0
- package/package.json +16 -16
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for GtkSource-5, generated from library version 5.21.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.
|
|
8
|
+
GJS TypeScript type definitions for GtkSource-5, generated from library version 5.21.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.4.0.
|
|
9
9
|
|
|
10
10
|
## Install
|
|
11
11
|
|
package/gtksource-5-surface.d.ts
CHANGED
|
@@ -288,6 +288,23 @@ export interface Widgets {
|
|
|
288
288
|
/** Every GType this namespace can create. A consumer derives its own tag map. */
|
|
289
289
|
export type WidgetGType = keyof Widgets;
|
|
290
290
|
|
|
291
|
+
// ---------------------------------------------------------------------------
|
|
292
|
+
// Child holders — the same shape, for objects that CARRY a widget without being one.
|
|
293
|
+
//
|
|
294
|
+
// `GtkListItem`, `GtkListHeader`, `GtkColumnViewCell` and `AdwToggle` descend from
|
|
295
|
+
// `GObject.Object` and hold a widget through `set_child`/`get_child`. A renderer places
|
|
296
|
+
// them exactly like a container, so they belong in the vocabulary; a check asking "is
|
|
297
|
+
// this a widget" must still be able to say no. Hence a sibling table rather than four
|
|
298
|
+
// more rows in `Widgets`: concatenate them when you mean both.
|
|
299
|
+
// ---------------------------------------------------------------------------
|
|
300
|
+
|
|
301
|
+
export interface ChildHolders {
|
|
302
|
+
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/** Every GType this namespace holds a child in without it being a widget. */
|
|
306
|
+
export type ChildHolderGType = keyof ChildHolders;
|
|
307
|
+
|
|
291
308
|
/** The writable, optional, GObject-keyed property surface of one GType. */
|
|
292
309
|
export type PropsOf<G extends WidgetGType> = Widgets[G]['props'];
|
|
293
310
|
|
|
@@ -323,6 +340,9 @@ export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
|
|
|
323
340
|
/** Widget GType -> every declaration its members come from, self first. */
|
|
324
341
|
export const DECLS: Readonly<Record<string, readonly string[]>>;
|
|
325
342
|
|
|
343
|
+
/** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
|
|
344
|
+
export const CHILD_HOLDERS: readonly string[];
|
|
345
|
+
|
|
326
346
|
/** Enum GType -> the nicks this surface offers. */
|
|
327
347
|
export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
|
|
328
348
|
|
package/gtksource-5-surface.js
CHANGED
|
@@ -38,6 +38,12 @@ export const DECLS = {
|
|
|
38
38
|
GtkSourceView: ['GtkSourceView', 'GtkTextView', 'GtkWidget', 'GtkAccessible', 'GtkAccessibleText', 'GtkBuildable', 'GtkConstraintTarget', 'GtkScrollable'],
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
+
// The GTypes above that are NOT widgets: they hold one through `set_child`/`get_child`
|
|
42
|
+
// and descend from `GObject.Object`. A renderer places them like a container; a check
|
|
43
|
+
// asking "is this a widget" must not count them. Derived from the accessor pair, never
|
|
44
|
+
// from a list — the count is in the provenance line above.
|
|
45
|
+
export const CHILD_HOLDERS = [];
|
|
46
|
+
|
|
41
47
|
export const ENUM_NICKS = {
|
|
42
48
|
GtkSourceAnnotationStyle: ['none', 'warning', 'error', 'accent'],
|
|
43
49
|
GtkSourceBackgroundPatternType: ['none', 'grid'],
|
package/gtksource-5.d.ts
CHANGED
|
@@ -909,6 +909,7 @@ export namespace GtkSource {
|
|
|
909
909
|
* @param display a {@link GtkSource.HoverDisplay} to populate
|
|
910
910
|
* @param cancellable
|
|
911
911
|
* @param callback
|
|
912
|
+
* @since 5.18
|
|
912
913
|
* @virtual
|
|
913
914
|
*/
|
|
914
915
|
vfunc_populate_hover_async(annotation: Annotation, display: HoverDisplay, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
@@ -916,6 +917,7 @@ export namespace GtkSource {
|
|
|
916
917
|
/**
|
|
917
918
|
* Finishes populating the {@link HoverDisplay} asynchronously.
|
|
918
919
|
* @param result
|
|
920
|
+
* @since 5.18
|
|
919
921
|
* @virtual
|
|
920
922
|
*/
|
|
921
923
|
vfunc_populate_hover_finish(result: Gio.AsyncResult): boolean;
|
|
@@ -924,6 +926,7 @@ export namespace GtkSource {
|
|
|
924
926
|
/**
|
|
925
927
|
* Add an annotation to the provider.
|
|
926
928
|
* @param annotation
|
|
929
|
+
* @since 5.18
|
|
927
930
|
*/
|
|
928
931
|
add_annotation(annotation: Annotation): void;
|
|
929
932
|
|
|
@@ -933,6 +936,7 @@ export namespace GtkSource {
|
|
|
933
936
|
* @param annotation a {@link GtkSource.Annotation}
|
|
934
937
|
* @param display a {@link GtkSource.HoverDisplay} to populate
|
|
935
938
|
* @param cancellable
|
|
939
|
+
* @since 5.18
|
|
936
940
|
*/
|
|
937
941
|
populate_hover_async(annotation: Annotation, display: HoverDisplay, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>;
|
|
938
942
|
|
|
@@ -943,6 +947,7 @@ export namespace GtkSource {
|
|
|
943
947
|
* @param display a {@link GtkSource.HoverDisplay} to populate
|
|
944
948
|
* @param cancellable
|
|
945
949
|
* @param callback
|
|
950
|
+
* @since 5.18
|
|
946
951
|
*/
|
|
947
952
|
populate_hover_async(annotation: Annotation, display: HoverDisplay, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
948
953
|
|
|
@@ -953,6 +958,7 @@ export namespace GtkSource {
|
|
|
953
958
|
* @param display a {@link GtkSource.HoverDisplay} to populate
|
|
954
959
|
* @param cancellable
|
|
955
960
|
* @param callback
|
|
961
|
+
* @since 5.18
|
|
956
962
|
*/
|
|
957
963
|
populate_hover_async(annotation: Annotation, display: HoverDisplay, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
|
|
958
964
|
|
|
@@ -960,11 +966,13 @@ export namespace GtkSource {
|
|
|
960
966
|
* Finishes populating the {@link HoverDisplay} asynchronously.
|
|
961
967
|
* @param result
|
|
962
968
|
* @returns `true` if successful; otherwise `false` and `error` is set.
|
|
969
|
+
* @since 5.18
|
|
963
970
|
*/
|
|
964
971
|
populate_hover_finish(result: Gio.AsyncResult): boolean;
|
|
965
972
|
|
|
966
973
|
/**
|
|
967
974
|
* Removes all annotations from the provider.
|
|
975
|
+
* @since 5.18
|
|
968
976
|
*/
|
|
969
977
|
remove_all(): void;
|
|
970
978
|
|
|
@@ -972,6 +980,7 @@ export namespace GtkSource {
|
|
|
972
980
|
* Remove an annotation from the provider.
|
|
973
981
|
* @param annotation
|
|
974
982
|
* @returns `true` if the annotation was found and removed
|
|
983
|
+
* @since 5.18
|
|
975
984
|
*/
|
|
976
985
|
remove_annotation(annotation: Annotation): boolean;
|
|
977
986
|
}
|
|
@@ -1426,6 +1435,7 @@ export namespace GtkSource {
|
|
|
1426
1435
|
* @param start start of range as a {@link Gtk.TextIter}
|
|
1427
1436
|
* @param end end of range as a {@link Gtk.TextIter}
|
|
1428
1437
|
* @returns a newly-allocated string containing the text with Pango markup, or `null` if `start` and `end` are invalid.
|
|
1438
|
+
* @since 5.18
|
|
1429
1439
|
*/
|
|
1430
1440
|
get_markup(start: Gtk.TextIter, end: Gtk.TextIter): string;
|
|
1431
1441
|
|
|
@@ -2080,6 +2090,7 @@ export namespace GtkSource {
|
|
|
2080
2090
|
* does not interrupts the user's current screen reader output.
|
|
2081
2091
|
* @param message the string to announce
|
|
2082
2092
|
* @param priority the priority of the announcement
|
|
2093
|
+
* @since 4.14
|
|
2083
2094
|
*/
|
|
2084
2095
|
announce(message: string, priority: Gtk.AccessibleAnnouncementPriority): void;
|
|
2085
2096
|
|
|
@@ -2092,6 +2103,7 @@ export namespace GtkSource {
|
|
|
2092
2103
|
* It is left to the accessible implementation to define the scope
|
|
2093
2104
|
* and uniqueness of the identifier.
|
|
2094
2105
|
* @returns the accessible identifier
|
|
2106
|
+
* @since 4.22
|
|
2095
2107
|
*/
|
|
2096
2108
|
get_accessible_id(): string | null;
|
|
2097
2109
|
|
|
@@ -2100,6 +2112,7 @@ export namespace GtkSource {
|
|
|
2100
2112
|
*
|
|
2101
2113
|
* This function returns `NULL` for top level widgets.
|
|
2102
2114
|
* @returns the accessible parent
|
|
2115
|
+
* @since 4.10
|
|
2103
2116
|
*/
|
|
2104
2117
|
get_accessible_parent(): Gtk.Accessible | null;
|
|
2105
2118
|
|
|
@@ -2112,6 +2125,7 @@ export namespace GtkSource {
|
|
|
2112
2125
|
/**
|
|
2113
2126
|
* Retrieves the implementation for the given accessible object.
|
|
2114
2127
|
* @returns the accessible implementation object
|
|
2128
|
+
* @since 4.10
|
|
2115
2129
|
*/
|
|
2116
2130
|
get_at_context(): Gtk.ATContext;
|
|
2117
2131
|
|
|
@@ -2122,18 +2136,21 @@ export namespace GtkSource {
|
|
|
2122
2136
|
* implementations, e.g. to get the bounds from an ignored
|
|
2123
2137
|
* child widget.
|
|
2124
2138
|
* @returns true if the bounds are valid, and false otherwise
|
|
2139
|
+
* @since 4.10
|
|
2125
2140
|
*/
|
|
2126
2141
|
get_bounds(): [boolean, number, number, number, number];
|
|
2127
2142
|
|
|
2128
2143
|
/**
|
|
2129
2144
|
* Retrieves the first accessible child of an accessible object.
|
|
2130
2145
|
* @returns the first accessible child
|
|
2146
|
+
* @since 4.10
|
|
2131
2147
|
*/
|
|
2132
2148
|
get_first_accessible_child(): Gtk.Accessible | null;
|
|
2133
2149
|
|
|
2134
2150
|
/**
|
|
2135
2151
|
* Retrieves the next accessible sibling of an accessible object
|
|
2136
2152
|
* @returns the next accessible sibling
|
|
2153
|
+
* @since 4.10
|
|
2137
2154
|
*/
|
|
2138
2155
|
get_next_accessible_sibling(): Gtk.Accessible | null;
|
|
2139
2156
|
|
|
@@ -2145,6 +2162,7 @@ export namespace GtkSource {
|
|
|
2145
2162
|
* child widget, as is the case for {@link Gtk.Text} wrappers.
|
|
2146
2163
|
* @param state platform state to query
|
|
2147
2164
|
* @returns the value of state for the accessible
|
|
2165
|
+
* @since 4.10
|
|
2148
2166
|
*/
|
|
2149
2167
|
get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
|
|
2150
2168
|
|
|
@@ -2178,6 +2196,7 @@ export namespace GtkSource {
|
|
|
2178
2196
|
* object is the container widget.
|
|
2179
2197
|
* @param parent the parent accessible object
|
|
2180
2198
|
* @param next_sibling the sibling accessible object
|
|
2199
|
+
* @since 4.10
|
|
2181
2200
|
*/
|
|
2182
2201
|
set_accessible_parent(parent: Gtk.Accessible | null, next_sibling: Gtk.Accessible | null): void;
|
|
2183
2202
|
|
|
@@ -2187,6 +2206,7 @@ export namespace GtkSource {
|
|
|
2187
2206
|
* That might be useful when a new child of a custom accessible
|
|
2188
2207
|
* is created, and it needs to be linked to a previous child.
|
|
2189
2208
|
* @param new_sibling the new next accessible sibling to set
|
|
2209
|
+
* @since 4.10
|
|
2190
2210
|
*/
|
|
2191
2211
|
update_next_accessible_sibling(new_sibling: Gtk.Accessible | null): void;
|
|
2192
2212
|
|
|
@@ -2197,6 +2217,7 @@ export namespace GtkSource {
|
|
|
2197
2217
|
* have a platform state but are not widgets. Widgets handle platform
|
|
2198
2218
|
* states automatically.
|
|
2199
2219
|
* @param state the platform state to update
|
|
2220
|
+
* @since 4.18
|
|
2200
2221
|
*/
|
|
2201
2222
|
update_platform_state(state: Gtk.AccessiblePlatformState): void;
|
|
2202
2223
|
|
|
@@ -2244,6 +2265,7 @@ export namespace GtkSource {
|
|
|
2244
2265
|
*
|
|
2245
2266
|
* It is left to the accessible implementation to define the scope
|
|
2246
2267
|
* and uniqueness of the identifier.
|
|
2268
|
+
* @since 4.22
|
|
2247
2269
|
* @virtual
|
|
2248
2270
|
*/
|
|
2249
2271
|
vfunc_get_accessible_id(): string | null;
|
|
@@ -2252,12 +2274,14 @@ export namespace GtkSource {
|
|
|
2252
2274
|
* Retrieves the accessible parent for an accessible object.
|
|
2253
2275
|
*
|
|
2254
2276
|
* This function returns `NULL` for top level widgets.
|
|
2277
|
+
* @since 4.10
|
|
2255
2278
|
* @virtual
|
|
2256
2279
|
*/
|
|
2257
2280
|
vfunc_get_accessible_parent(): Gtk.Accessible | null;
|
|
2258
2281
|
|
|
2259
2282
|
/**
|
|
2260
2283
|
* Retrieves the implementation for the given accessible object.
|
|
2284
|
+
* @since 4.10
|
|
2261
2285
|
* @virtual
|
|
2262
2286
|
*/
|
|
2263
2287
|
vfunc_get_at_context(): Gtk.ATContext | null;
|
|
@@ -2268,18 +2292,21 @@ export namespace GtkSource {
|
|
|
2268
2292
|
* This functionality can be overridden by {@link Gtk.Accessible}
|
|
2269
2293
|
* implementations, e.g. to get the bounds from an ignored
|
|
2270
2294
|
* child widget.
|
|
2295
|
+
* @since 4.10
|
|
2271
2296
|
* @virtual
|
|
2272
2297
|
*/
|
|
2273
2298
|
vfunc_get_bounds(): [boolean, number, number, number, number];
|
|
2274
2299
|
|
|
2275
2300
|
/**
|
|
2276
2301
|
* Retrieves the first accessible child of an accessible object.
|
|
2302
|
+
* @since 4.10
|
|
2277
2303
|
* @virtual
|
|
2278
2304
|
*/
|
|
2279
2305
|
vfunc_get_first_accessible_child(): Gtk.Accessible | null;
|
|
2280
2306
|
|
|
2281
2307
|
/**
|
|
2282
2308
|
* Retrieves the next accessible sibling of an accessible object
|
|
2309
|
+
* @since 4.10
|
|
2283
2310
|
* @virtual
|
|
2284
2311
|
*/
|
|
2285
2312
|
vfunc_get_next_accessible_sibling(): Gtk.Accessible | null;
|
|
@@ -2291,6 +2318,7 @@ export namespace GtkSource {
|
|
|
2291
2318
|
* implementations, e.g. to get platform state from an ignored
|
|
2292
2319
|
* child widget, as is the case for {@link Gtk.Text} wrappers.
|
|
2293
2320
|
* @param state platform state to query
|
|
2321
|
+
* @since 4.10
|
|
2294
2322
|
* @virtual
|
|
2295
2323
|
*/
|
|
2296
2324
|
vfunc_get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
|
|
@@ -2560,6 +2588,7 @@ export namespace GtkSource {
|
|
|
2560
2588
|
* notifications about when the model has been replaced by a new model.
|
|
2561
2589
|
* @param provider a {@link GtkSource.CompletionProvider}
|
|
2562
2590
|
* @returns a {@link Gio.ListModel} or `null`
|
|
2591
|
+
* @since 5.6
|
|
2563
2592
|
*/
|
|
2564
2593
|
get_proposals_for_provider(provider: CompletionProvider): Gio.ListModel | null;
|
|
2565
2594
|
|
|
@@ -2578,6 +2607,7 @@ export namespace GtkSource {
|
|
|
2578
2607
|
/**
|
|
2579
2608
|
* Gets the providers that are associated with the context.
|
|
2580
2609
|
* @returns a {@link Gio.ListModel} of {@link GtkSource.CompletionProvider}
|
|
2610
|
+
* @since 5.6
|
|
2581
2611
|
*/
|
|
2582
2612
|
list_providers(): Gio.ListModel;
|
|
2583
2613
|
|
|
@@ -2603,6 +2633,7 @@ export namespace GtkSource {
|
|
|
2603
2633
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
2604
2634
|
* model.
|
|
2605
2635
|
* @returns the {@link GObject.GType} of the items contained in `list`.
|
|
2636
|
+
* @since 2.44
|
|
2606
2637
|
*/
|
|
2607
2638
|
get_item_type(): GObject.GType;
|
|
2608
2639
|
|
|
@@ -2613,6 +2644,7 @@ export namespace GtkSource {
|
|
|
2613
2644
|
* less efficient than iterating the list with increasing values for
|
|
2614
2645
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
2615
2646
|
* @returns the number of items in `list`.
|
|
2647
|
+
* @since 2.44
|
|
2616
2648
|
*/
|
|
2617
2649
|
get_n_items(): number;
|
|
2618
2650
|
|
|
@@ -2631,6 +2663,7 @@ export namespace GtkSource {
|
|
|
2631
2663
|
* See also: `g_list_model_get_n_items()`
|
|
2632
2664
|
* @param position the position of the item to fetch
|
|
2633
2665
|
* @returns the object at `position`.
|
|
2666
|
+
* @since 2.44
|
|
2634
2667
|
*/
|
|
2635
2668
|
get_item(position: number): A | null;
|
|
2636
2669
|
|
|
@@ -2658,6 +2691,7 @@ export namespace GtkSource {
|
|
|
2658
2691
|
* @param position the position at which `list` changed
|
|
2659
2692
|
* @param removed the number of items removed
|
|
2660
2693
|
* @param added the number of items added
|
|
2694
|
+
* @since 2.44
|
|
2661
2695
|
*/
|
|
2662
2696
|
items_changed(position: number, removed: number, added: number): void;
|
|
2663
2697
|
|
|
@@ -2670,6 +2704,7 @@ export namespace GtkSource {
|
|
|
2670
2704
|
*
|
|
2671
2705
|
* The same {@link GObject.Object} instance may not appear more than once in a {@link Gio.ListModel}.
|
|
2672
2706
|
* @param position the position of the item to fetch
|
|
2707
|
+
* @since 2.44
|
|
2673
2708
|
* @virtual
|
|
2674
2709
|
*/
|
|
2675
2710
|
vfunc_get_item(position: number): A | null;
|
|
@@ -2683,6 +2718,7 @@ export namespace GtkSource {
|
|
|
2683
2718
|
*
|
|
2684
2719
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
2685
2720
|
* model.
|
|
2721
|
+
* @since 2.44
|
|
2686
2722
|
* @virtual
|
|
2687
2723
|
*/
|
|
2688
2724
|
vfunc_get_item_type(): GObject.GType;
|
|
@@ -2693,6 +2729,7 @@ export namespace GtkSource {
|
|
|
2693
2729
|
* Depending on the model implementation, calling this function may be
|
|
2694
2730
|
* less efficient than iterating the list with increasing values for
|
|
2695
2731
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
2732
|
+
* @since 2.44
|
|
2696
2733
|
* @virtual
|
|
2697
2734
|
*/
|
|
2698
2735
|
vfunc_get_n_items(): number;
|
|
@@ -3831,6 +3868,7 @@ export namespace GtkSource {
|
|
|
3831
3868
|
/**
|
|
3832
3869
|
* Gets the maximum expanded size that `loader` will insert into the buffer.
|
|
3833
3870
|
* @returns the maximum expanded size in bytes, or 0 if the limit is disabled.
|
|
3871
|
+
* @since 5.22
|
|
3834
3872
|
*/
|
|
3835
3873
|
get_max_size(): number;
|
|
3836
3874
|
|
|
@@ -3907,6 +3945,7 @@ export namespace GtkSource {
|
|
|
3907
3945
|
* The limit is checked after decompression, so compressed files are limited by
|
|
3908
3946
|
* the size of their uncompressed contents rather than their on-disk size.
|
|
3909
3947
|
* @param max_size maximum expanded size in bytes, or 0 to disable the limit.
|
|
3948
|
+
* @since 5.22
|
|
3910
3949
|
*/
|
|
3911
3950
|
set_max_size(max_size: bigint | number): void;
|
|
3912
3951
|
}
|
|
@@ -4339,6 +4378,7 @@ export namespace GtkSource {
|
|
|
4339
4378
|
* does not interrupts the user's current screen reader output.
|
|
4340
4379
|
* @param message the string to announce
|
|
4341
4380
|
* @param priority the priority of the announcement
|
|
4381
|
+
* @since 4.14
|
|
4342
4382
|
*/
|
|
4343
4383
|
announce(message: string, priority: Gtk.AccessibleAnnouncementPriority): void;
|
|
4344
4384
|
|
|
@@ -4351,6 +4391,7 @@ export namespace GtkSource {
|
|
|
4351
4391
|
* It is left to the accessible implementation to define the scope
|
|
4352
4392
|
* and uniqueness of the identifier.
|
|
4353
4393
|
* @returns the accessible identifier
|
|
4394
|
+
* @since 4.22
|
|
4354
4395
|
*/
|
|
4355
4396
|
get_accessible_id(): string | null;
|
|
4356
4397
|
|
|
@@ -4359,6 +4400,7 @@ export namespace GtkSource {
|
|
|
4359
4400
|
*
|
|
4360
4401
|
* This function returns `NULL` for top level widgets.
|
|
4361
4402
|
* @returns the accessible parent
|
|
4403
|
+
* @since 4.10
|
|
4362
4404
|
*/
|
|
4363
4405
|
get_accessible_parent(): Gtk.Accessible | null;
|
|
4364
4406
|
|
|
@@ -4371,6 +4413,7 @@ export namespace GtkSource {
|
|
|
4371
4413
|
/**
|
|
4372
4414
|
* Retrieves the implementation for the given accessible object.
|
|
4373
4415
|
* @returns the accessible implementation object
|
|
4416
|
+
* @since 4.10
|
|
4374
4417
|
*/
|
|
4375
4418
|
get_at_context(): Gtk.ATContext;
|
|
4376
4419
|
|
|
@@ -4381,18 +4424,21 @@ export namespace GtkSource {
|
|
|
4381
4424
|
* implementations, e.g. to get the bounds from an ignored
|
|
4382
4425
|
* child widget.
|
|
4383
4426
|
* @returns true if the bounds are valid, and false otherwise
|
|
4427
|
+
* @since 4.10
|
|
4384
4428
|
*/
|
|
4385
4429
|
get_bounds(): [boolean, number, number, number, number];
|
|
4386
4430
|
|
|
4387
4431
|
/**
|
|
4388
4432
|
* Retrieves the first accessible child of an accessible object.
|
|
4389
4433
|
* @returns the first accessible child
|
|
4434
|
+
* @since 4.10
|
|
4390
4435
|
*/
|
|
4391
4436
|
get_first_accessible_child(): Gtk.Accessible | null;
|
|
4392
4437
|
|
|
4393
4438
|
/**
|
|
4394
4439
|
* Retrieves the next accessible sibling of an accessible object
|
|
4395
4440
|
* @returns the next accessible sibling
|
|
4441
|
+
* @since 4.10
|
|
4396
4442
|
*/
|
|
4397
4443
|
get_next_accessible_sibling(): Gtk.Accessible | null;
|
|
4398
4444
|
|
|
@@ -4404,6 +4450,7 @@ export namespace GtkSource {
|
|
|
4404
4450
|
* child widget, as is the case for {@link Gtk.Text} wrappers.
|
|
4405
4451
|
* @param state platform state to query
|
|
4406
4452
|
* @returns the value of state for the accessible
|
|
4453
|
+
* @since 4.10
|
|
4407
4454
|
*/
|
|
4408
4455
|
get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
|
|
4409
4456
|
|
|
@@ -4437,6 +4484,7 @@ export namespace GtkSource {
|
|
|
4437
4484
|
* object is the container widget.
|
|
4438
4485
|
* @param parent the parent accessible object
|
|
4439
4486
|
* @param next_sibling the sibling accessible object
|
|
4487
|
+
* @since 4.10
|
|
4440
4488
|
*/
|
|
4441
4489
|
set_accessible_parent(parent: Gtk.Accessible | null, next_sibling: Gtk.Accessible | null): void;
|
|
4442
4490
|
|
|
@@ -4446,6 +4494,7 @@ export namespace GtkSource {
|
|
|
4446
4494
|
* That might be useful when a new child of a custom accessible
|
|
4447
4495
|
* is created, and it needs to be linked to a previous child.
|
|
4448
4496
|
* @param new_sibling the new next accessible sibling to set
|
|
4497
|
+
* @since 4.10
|
|
4449
4498
|
*/
|
|
4450
4499
|
update_next_accessible_sibling(new_sibling: Gtk.Accessible | null): void;
|
|
4451
4500
|
|
|
@@ -4456,6 +4505,7 @@ export namespace GtkSource {
|
|
|
4456
4505
|
* have a platform state but are not widgets. Widgets handle platform
|
|
4457
4506
|
* states automatically.
|
|
4458
4507
|
* @param state the platform state to update
|
|
4508
|
+
* @since 4.18
|
|
4459
4509
|
*/
|
|
4460
4510
|
update_platform_state(state: Gtk.AccessiblePlatformState): void;
|
|
4461
4511
|
|
|
@@ -4503,6 +4553,7 @@ export namespace GtkSource {
|
|
|
4503
4553
|
*
|
|
4504
4554
|
* It is left to the accessible implementation to define the scope
|
|
4505
4555
|
* and uniqueness of the identifier.
|
|
4556
|
+
* @since 4.22
|
|
4506
4557
|
* @virtual
|
|
4507
4558
|
*/
|
|
4508
4559
|
vfunc_get_accessible_id(): string | null;
|
|
@@ -4511,12 +4562,14 @@ export namespace GtkSource {
|
|
|
4511
4562
|
* Retrieves the accessible parent for an accessible object.
|
|
4512
4563
|
*
|
|
4513
4564
|
* This function returns `NULL` for top level widgets.
|
|
4565
|
+
* @since 4.10
|
|
4514
4566
|
* @virtual
|
|
4515
4567
|
*/
|
|
4516
4568
|
vfunc_get_accessible_parent(): Gtk.Accessible | null;
|
|
4517
4569
|
|
|
4518
4570
|
/**
|
|
4519
4571
|
* Retrieves the implementation for the given accessible object.
|
|
4572
|
+
* @since 4.10
|
|
4520
4573
|
* @virtual
|
|
4521
4574
|
*/
|
|
4522
4575
|
vfunc_get_at_context(): Gtk.ATContext | null;
|
|
@@ -4527,18 +4580,21 @@ export namespace GtkSource {
|
|
|
4527
4580
|
* This functionality can be overridden by {@link Gtk.Accessible}
|
|
4528
4581
|
* implementations, e.g. to get the bounds from an ignored
|
|
4529
4582
|
* child widget.
|
|
4583
|
+
* @since 4.10
|
|
4530
4584
|
* @virtual
|
|
4531
4585
|
*/
|
|
4532
4586
|
vfunc_get_bounds(): [boolean, number, number, number, number];
|
|
4533
4587
|
|
|
4534
4588
|
/**
|
|
4535
4589
|
* Retrieves the first accessible child of an accessible object.
|
|
4590
|
+
* @since 4.10
|
|
4536
4591
|
* @virtual
|
|
4537
4592
|
*/
|
|
4538
4593
|
vfunc_get_first_accessible_child(): Gtk.Accessible | null;
|
|
4539
4594
|
|
|
4540
4595
|
/**
|
|
4541
4596
|
* Retrieves the next accessible sibling of an accessible object
|
|
4597
|
+
* @since 4.10
|
|
4542
4598
|
* @virtual
|
|
4543
4599
|
*/
|
|
4544
4600
|
vfunc_get_next_accessible_sibling(): Gtk.Accessible | null;
|
|
@@ -4550,6 +4606,7 @@ export namespace GtkSource {
|
|
|
4550
4606
|
* implementations, e.g. to get platform state from an ignored
|
|
4551
4607
|
* child widget, as is the case for {@link Gtk.Text} wrappers.
|
|
4552
4608
|
* @param state platform state to query
|
|
4609
|
+
* @since 4.10
|
|
4553
4610
|
* @virtual
|
|
4554
4611
|
*/
|
|
4555
4612
|
vfunc_get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
|
|
@@ -4762,6 +4819,7 @@ export namespace GtkSource {
|
|
|
4762
4819
|
* The value for `y` is relative to the renderers widget coordinates.
|
|
4763
4820
|
* @param line a line number starting from zero
|
|
4764
4821
|
* @param mode a {@link GtkSource.GutterRendererAlignmentMode}
|
|
4822
|
+
* @since 5.18
|
|
4765
4823
|
*/
|
|
4766
4824
|
get_line_extent(line: number, mode: GutterRendererAlignmentMode): [number, number];
|
|
4767
4825
|
|
|
@@ -4786,6 +4844,7 @@ export namespace GtkSource {
|
|
|
4786
4844
|
* been set on the class.
|
|
4787
4845
|
* @param line a line contained within `lines`
|
|
4788
4846
|
* @returns `true` if any quark was set for the line
|
|
4847
|
+
* @since 5.6
|
|
4789
4848
|
*/
|
|
4790
4849
|
has_any_class(line: number): boolean;
|
|
4791
4850
|
|
|
@@ -5295,6 +5354,7 @@ export namespace GtkSource {
|
|
|
5295
5354
|
* does not interrupts the user's current screen reader output.
|
|
5296
5355
|
* @param message the string to announce
|
|
5297
5356
|
* @param priority the priority of the announcement
|
|
5357
|
+
* @since 4.14
|
|
5298
5358
|
*/
|
|
5299
5359
|
announce(message: string, priority: Gtk.AccessibleAnnouncementPriority): void;
|
|
5300
5360
|
|
|
@@ -5307,6 +5367,7 @@ export namespace GtkSource {
|
|
|
5307
5367
|
* It is left to the accessible implementation to define the scope
|
|
5308
5368
|
* and uniqueness of the identifier.
|
|
5309
5369
|
* @returns the accessible identifier
|
|
5370
|
+
* @since 4.22
|
|
5310
5371
|
*/
|
|
5311
5372
|
get_accessible_id(): string | null;
|
|
5312
5373
|
|
|
@@ -5315,6 +5376,7 @@ export namespace GtkSource {
|
|
|
5315
5376
|
*
|
|
5316
5377
|
* This function returns `NULL` for top level widgets.
|
|
5317
5378
|
* @returns the accessible parent
|
|
5379
|
+
* @since 4.10
|
|
5318
5380
|
*/
|
|
5319
5381
|
get_accessible_parent(): Gtk.Accessible | null;
|
|
5320
5382
|
|
|
@@ -5327,6 +5389,7 @@ export namespace GtkSource {
|
|
|
5327
5389
|
/**
|
|
5328
5390
|
* Retrieves the implementation for the given accessible object.
|
|
5329
5391
|
* @returns the accessible implementation object
|
|
5392
|
+
* @since 4.10
|
|
5330
5393
|
*/
|
|
5331
5394
|
get_at_context(): Gtk.ATContext;
|
|
5332
5395
|
|
|
@@ -5337,18 +5400,21 @@ export namespace GtkSource {
|
|
|
5337
5400
|
* implementations, e.g. to get the bounds from an ignored
|
|
5338
5401
|
* child widget.
|
|
5339
5402
|
* @returns true if the bounds are valid, and false otherwise
|
|
5403
|
+
* @since 4.10
|
|
5340
5404
|
*/
|
|
5341
5405
|
get_bounds(): [boolean, number, number, number, number];
|
|
5342
5406
|
|
|
5343
5407
|
/**
|
|
5344
5408
|
* Retrieves the first accessible child of an accessible object.
|
|
5345
5409
|
* @returns the first accessible child
|
|
5410
|
+
* @since 4.10
|
|
5346
5411
|
*/
|
|
5347
5412
|
get_first_accessible_child(): Gtk.Accessible | null;
|
|
5348
5413
|
|
|
5349
5414
|
/**
|
|
5350
5415
|
* Retrieves the next accessible sibling of an accessible object
|
|
5351
5416
|
* @returns the next accessible sibling
|
|
5417
|
+
* @since 4.10
|
|
5352
5418
|
*/
|
|
5353
5419
|
get_next_accessible_sibling(): Gtk.Accessible | null;
|
|
5354
5420
|
|
|
@@ -5360,6 +5426,7 @@ export namespace GtkSource {
|
|
|
5360
5426
|
* child widget, as is the case for {@link Gtk.Text} wrappers.
|
|
5361
5427
|
* @param state platform state to query
|
|
5362
5428
|
* @returns the value of state for the accessible
|
|
5429
|
+
* @since 4.10
|
|
5363
5430
|
*/
|
|
5364
5431
|
get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
|
|
5365
5432
|
|
|
@@ -5393,6 +5460,7 @@ export namespace GtkSource {
|
|
|
5393
5460
|
* object is the container widget.
|
|
5394
5461
|
* @param parent the parent accessible object
|
|
5395
5462
|
* @param next_sibling the sibling accessible object
|
|
5463
|
+
* @since 4.10
|
|
5396
5464
|
*/
|
|
5397
5465
|
set_accessible_parent(parent: Gtk.Accessible | null, next_sibling: Gtk.Accessible | null): void;
|
|
5398
5466
|
|
|
@@ -5402,6 +5470,7 @@ export namespace GtkSource {
|
|
|
5402
5470
|
* That might be useful when a new child of a custom accessible
|
|
5403
5471
|
* is created, and it needs to be linked to a previous child.
|
|
5404
5472
|
* @param new_sibling the new next accessible sibling to set
|
|
5473
|
+
* @since 4.10
|
|
5405
5474
|
*/
|
|
5406
5475
|
update_next_accessible_sibling(new_sibling: Gtk.Accessible | null): void;
|
|
5407
5476
|
|
|
@@ -5412,6 +5481,7 @@ export namespace GtkSource {
|
|
|
5412
5481
|
* have a platform state but are not widgets. Widgets handle platform
|
|
5413
5482
|
* states automatically.
|
|
5414
5483
|
* @param state the platform state to update
|
|
5484
|
+
* @since 4.18
|
|
5415
5485
|
*/
|
|
5416
5486
|
update_platform_state(state: Gtk.AccessiblePlatformState): void;
|
|
5417
5487
|
|
|
@@ -5459,6 +5529,7 @@ export namespace GtkSource {
|
|
|
5459
5529
|
*
|
|
5460
5530
|
* It is left to the accessible implementation to define the scope
|
|
5461
5531
|
* and uniqueness of the identifier.
|
|
5532
|
+
* @since 4.22
|
|
5462
5533
|
* @virtual
|
|
5463
5534
|
*/
|
|
5464
5535
|
vfunc_get_accessible_id(): string | null;
|
|
@@ -5467,12 +5538,14 @@ export namespace GtkSource {
|
|
|
5467
5538
|
* Retrieves the accessible parent for an accessible object.
|
|
5468
5539
|
*
|
|
5469
5540
|
* This function returns `NULL` for top level widgets.
|
|
5541
|
+
* @since 4.10
|
|
5470
5542
|
* @virtual
|
|
5471
5543
|
*/
|
|
5472
5544
|
vfunc_get_accessible_parent(): Gtk.Accessible | null;
|
|
5473
5545
|
|
|
5474
5546
|
/**
|
|
5475
5547
|
* Retrieves the implementation for the given accessible object.
|
|
5548
|
+
* @since 4.10
|
|
5476
5549
|
* @virtual
|
|
5477
5550
|
*/
|
|
5478
5551
|
vfunc_get_at_context(): Gtk.ATContext | null;
|
|
@@ -5483,18 +5556,21 @@ export namespace GtkSource {
|
|
|
5483
5556
|
* This functionality can be overridden by {@link Gtk.Accessible}
|
|
5484
5557
|
* implementations, e.g. to get the bounds from an ignored
|
|
5485
5558
|
* child widget.
|
|
5559
|
+
* @since 4.10
|
|
5486
5560
|
* @virtual
|
|
5487
5561
|
*/
|
|
5488
5562
|
vfunc_get_bounds(): [boolean, number, number, number, number];
|
|
5489
5563
|
|
|
5490
5564
|
/**
|
|
5491
5565
|
* Retrieves the first accessible child of an accessible object.
|
|
5566
|
+
* @since 4.10
|
|
5492
5567
|
* @virtual
|
|
5493
5568
|
*/
|
|
5494
5569
|
vfunc_get_first_accessible_child(): Gtk.Accessible | null;
|
|
5495
5570
|
|
|
5496
5571
|
/**
|
|
5497
5572
|
* Retrieves the next accessible sibling of an accessible object
|
|
5573
|
+
* @since 4.10
|
|
5498
5574
|
* @virtual
|
|
5499
5575
|
*/
|
|
5500
5576
|
vfunc_get_next_accessible_sibling(): Gtk.Accessible | null;
|
|
@@ -5506,6 +5582,7 @@ export namespace GtkSource {
|
|
|
5506
5582
|
* implementations, e.g. to get platform state from an ignored
|
|
5507
5583
|
* child widget, as is the case for {@link Gtk.Text} wrappers.
|
|
5508
5584
|
* @param state platform state to query
|
|
5585
|
+
* @since 4.10
|
|
5509
5586
|
* @virtual
|
|
5510
5587
|
*/
|
|
5511
5588
|
vfunc_get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
|
|
@@ -6244,6 +6321,7 @@ export namespace GtkSource {
|
|
|
6244
6321
|
* does not interrupts the user's current screen reader output.
|
|
6245
6322
|
* @param message the string to announce
|
|
6246
6323
|
* @param priority the priority of the announcement
|
|
6324
|
+
* @since 4.14
|
|
6247
6325
|
*/
|
|
6248
6326
|
announce(message: string, priority: Gtk.AccessibleAnnouncementPriority): void;
|
|
6249
6327
|
|
|
@@ -6256,6 +6334,7 @@ export namespace GtkSource {
|
|
|
6256
6334
|
* It is left to the accessible implementation to define the scope
|
|
6257
6335
|
* and uniqueness of the identifier.
|
|
6258
6336
|
* @returns the accessible identifier
|
|
6337
|
+
* @since 4.22
|
|
6259
6338
|
*/
|
|
6260
6339
|
get_accessible_id(): string | null;
|
|
6261
6340
|
|
|
@@ -6264,6 +6343,7 @@ export namespace GtkSource {
|
|
|
6264
6343
|
*
|
|
6265
6344
|
* This function returns `NULL` for top level widgets.
|
|
6266
6345
|
* @returns the accessible parent
|
|
6346
|
+
* @since 4.10
|
|
6267
6347
|
*/
|
|
6268
6348
|
get_accessible_parent(): Gtk.Accessible | null;
|
|
6269
6349
|
|
|
@@ -6276,6 +6356,7 @@ export namespace GtkSource {
|
|
|
6276
6356
|
/**
|
|
6277
6357
|
* Retrieves the implementation for the given accessible object.
|
|
6278
6358
|
* @returns the accessible implementation object
|
|
6359
|
+
* @since 4.10
|
|
6279
6360
|
*/
|
|
6280
6361
|
get_at_context(): Gtk.ATContext;
|
|
6281
6362
|
|
|
@@ -6286,18 +6367,21 @@ export namespace GtkSource {
|
|
|
6286
6367
|
* implementations, e.g. to get the bounds from an ignored
|
|
6287
6368
|
* child widget.
|
|
6288
6369
|
* @returns true if the bounds are valid, and false otherwise
|
|
6370
|
+
* @since 4.10
|
|
6289
6371
|
*/
|
|
6290
6372
|
get_bounds(): [boolean, number, number, number, number];
|
|
6291
6373
|
|
|
6292
6374
|
/**
|
|
6293
6375
|
* Retrieves the first accessible child of an accessible object.
|
|
6294
6376
|
* @returns the first accessible child
|
|
6377
|
+
* @since 4.10
|
|
6295
6378
|
*/
|
|
6296
6379
|
get_first_accessible_child(): Gtk.Accessible | null;
|
|
6297
6380
|
|
|
6298
6381
|
/**
|
|
6299
6382
|
* Retrieves the next accessible sibling of an accessible object
|
|
6300
6383
|
* @returns the next accessible sibling
|
|
6384
|
+
* @since 4.10
|
|
6301
6385
|
*/
|
|
6302
6386
|
get_next_accessible_sibling(): Gtk.Accessible | null;
|
|
6303
6387
|
|
|
@@ -6309,6 +6393,7 @@ export namespace GtkSource {
|
|
|
6309
6393
|
* child widget, as is the case for {@link Gtk.Text} wrappers.
|
|
6310
6394
|
* @param state platform state to query
|
|
6311
6395
|
* @returns the value of state for the accessible
|
|
6396
|
+
* @since 4.10
|
|
6312
6397
|
*/
|
|
6313
6398
|
get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
|
|
6314
6399
|
|
|
@@ -6342,6 +6427,7 @@ export namespace GtkSource {
|
|
|
6342
6427
|
* object is the container widget.
|
|
6343
6428
|
* @param parent the parent accessible object
|
|
6344
6429
|
* @param next_sibling the sibling accessible object
|
|
6430
|
+
* @since 4.10
|
|
6345
6431
|
*/
|
|
6346
6432
|
set_accessible_parent(parent: Gtk.Accessible | null, next_sibling: Gtk.Accessible | null): void;
|
|
6347
6433
|
|
|
@@ -6351,6 +6437,7 @@ export namespace GtkSource {
|
|
|
6351
6437
|
* That might be useful when a new child of a custom accessible
|
|
6352
6438
|
* is created, and it needs to be linked to a previous child.
|
|
6353
6439
|
* @param new_sibling the new next accessible sibling to set
|
|
6440
|
+
* @since 4.10
|
|
6354
6441
|
*/
|
|
6355
6442
|
update_next_accessible_sibling(new_sibling: Gtk.Accessible | null): void;
|
|
6356
6443
|
|
|
@@ -6361,6 +6448,7 @@ export namespace GtkSource {
|
|
|
6361
6448
|
* have a platform state but are not widgets. Widgets handle platform
|
|
6362
6449
|
* states automatically.
|
|
6363
6450
|
* @param state the platform state to update
|
|
6451
|
+
* @since 4.18
|
|
6364
6452
|
*/
|
|
6365
6453
|
update_platform_state(state: Gtk.AccessiblePlatformState): void;
|
|
6366
6454
|
|
|
@@ -6408,6 +6496,7 @@ export namespace GtkSource {
|
|
|
6408
6496
|
*
|
|
6409
6497
|
* It is left to the accessible implementation to define the scope
|
|
6410
6498
|
* and uniqueness of the identifier.
|
|
6499
|
+
* @since 4.22
|
|
6411
6500
|
* @virtual
|
|
6412
6501
|
*/
|
|
6413
6502
|
vfunc_get_accessible_id(): string | null;
|
|
@@ -6416,12 +6505,14 @@ export namespace GtkSource {
|
|
|
6416
6505
|
* Retrieves the accessible parent for an accessible object.
|
|
6417
6506
|
*
|
|
6418
6507
|
* This function returns `NULL` for top level widgets.
|
|
6508
|
+
* @since 4.10
|
|
6419
6509
|
* @virtual
|
|
6420
6510
|
*/
|
|
6421
6511
|
vfunc_get_accessible_parent(): Gtk.Accessible | null;
|
|
6422
6512
|
|
|
6423
6513
|
/**
|
|
6424
6514
|
* Retrieves the implementation for the given accessible object.
|
|
6515
|
+
* @since 4.10
|
|
6425
6516
|
* @virtual
|
|
6426
6517
|
*/
|
|
6427
6518
|
vfunc_get_at_context(): Gtk.ATContext | null;
|
|
@@ -6432,18 +6523,21 @@ export namespace GtkSource {
|
|
|
6432
6523
|
* This functionality can be overridden by {@link Gtk.Accessible}
|
|
6433
6524
|
* implementations, e.g. to get the bounds from an ignored
|
|
6434
6525
|
* child widget.
|
|
6526
|
+
* @since 4.10
|
|
6435
6527
|
* @virtual
|
|
6436
6528
|
*/
|
|
6437
6529
|
vfunc_get_bounds(): [boolean, number, number, number, number];
|
|
6438
6530
|
|
|
6439
6531
|
/**
|
|
6440
6532
|
* Retrieves the first accessible child of an accessible object.
|
|
6533
|
+
* @since 4.10
|
|
6441
6534
|
* @virtual
|
|
6442
6535
|
*/
|
|
6443
6536
|
vfunc_get_first_accessible_child(): Gtk.Accessible | null;
|
|
6444
6537
|
|
|
6445
6538
|
/**
|
|
6446
6539
|
* Retrieves the next accessible sibling of an accessible object
|
|
6540
|
+
* @since 4.10
|
|
6447
6541
|
* @virtual
|
|
6448
6542
|
*/
|
|
6449
6543
|
vfunc_get_next_accessible_sibling(): Gtk.Accessible | null;
|
|
@@ -6455,6 +6549,7 @@ export namespace GtkSource {
|
|
|
6455
6549
|
* implementations, e.g. to get platform state from an ignored
|
|
6456
6550
|
* child widget, as is the case for {@link Gtk.Text} wrappers.
|
|
6457
6551
|
* @param state platform state to query
|
|
6552
|
+
* @since 4.10
|
|
6458
6553
|
* @virtual
|
|
6459
6554
|
*/
|
|
6460
6555
|
vfunc_get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
|
|
@@ -6817,6 +6912,7 @@ export namespace GtkSource {
|
|
|
6817
6912
|
*
|
|
6818
6913
|
* See {@link LanguageManager.set_search_path} for details.
|
|
6819
6914
|
* @param path a directory or a filename.
|
|
6915
|
+
* @since 5.4
|
|
6820
6916
|
*/
|
|
6821
6917
|
append_search_path(path: string): void;
|
|
6822
6918
|
|
|
@@ -6904,6 +7000,7 @@ export namespace GtkSource {
|
|
|
6904
7000
|
*
|
|
6905
7001
|
* See {@link LanguageManager.set_search_path} for details.
|
|
6906
7002
|
* @param path a directory or a filename.
|
|
7003
|
+
* @since 5.4
|
|
6907
7004
|
*/
|
|
6908
7005
|
prepend_search_path(path: string): void;
|
|
6909
7006
|
|
|
@@ -7986,6 +8083,7 @@ export namespace GtkSource {
|
|
|
7986
8083
|
* Specifies a tag whose style should be ignored when compositing the
|
|
7987
8084
|
* document to the printable page.
|
|
7988
8085
|
* @param tag a {@link Gtk.TextTag}
|
|
8086
|
+
* @since 5.2
|
|
7989
8087
|
*/
|
|
7990
8088
|
ignore_tag(tag: Gtk.TextTag): void;
|
|
7991
8089
|
|
|
@@ -9113,6 +9211,7 @@ export namespace GtkSource {
|
|
|
9113
9211
|
|
|
9114
9212
|
/**
|
|
9115
9213
|
* @returns whether to exclude invisible text from the search.
|
|
9214
|
+
* @since 5.12
|
|
9116
9215
|
*/
|
|
9117
9216
|
get_visible_only(): boolean;
|
|
9118
9217
|
|
|
@@ -9168,6 +9267,7 @@ export namespace GtkSource {
|
|
|
9168
9267
|
* If enabled, only visible text will be searched.
|
|
9169
9268
|
* A search match may have invisible text interspersed.
|
|
9170
9269
|
* @param visible_only the setting.
|
|
9270
|
+
* @since 5.12
|
|
9171
9271
|
*/
|
|
9172
9272
|
set_visible_only(visible_only: boolean): void;
|
|
9173
9273
|
|
|
@@ -9854,6 +9954,7 @@ export namespace GtkSource {
|
|
|
9854
9954
|
* This can be used to get an unfiltered list of all of the snippets
|
|
9855
9955
|
* known to the snippet manager.
|
|
9856
9956
|
* @returns a {@link Gio.ListModel} of {@link GtkSource.Snippet}
|
|
9957
|
+
* @since 5.6
|
|
9857
9958
|
*/
|
|
9858
9959
|
list_all(): Gio.ListModel;
|
|
9859
9960
|
|
|
@@ -10560,6 +10661,7 @@ export namespace GtkSource {
|
|
|
10560
10661
|
* Gets a metadata property from the style scheme.
|
|
10561
10662
|
* @param name metadata property name.
|
|
10562
10663
|
* @returns value of property `name` stored in the metadata of `scheme` or `null` if `scheme` does not contain the specified metadata property.
|
|
10664
|
+
* @since 5.4
|
|
10563
10665
|
*/
|
|
10564
10666
|
get_metadata(name: string): string | null;
|
|
10565
10667
|
|
|
@@ -11007,6 +11109,7 @@ export namespace GtkSource {
|
|
|
11007
11109
|
* does not interrupts the user's current screen reader output.
|
|
11008
11110
|
* @param message the string to announce
|
|
11009
11111
|
* @param priority the priority of the announcement
|
|
11112
|
+
* @since 4.14
|
|
11010
11113
|
*/
|
|
11011
11114
|
announce(message: string, priority: Gtk.AccessibleAnnouncementPriority): void;
|
|
11012
11115
|
|
|
@@ -11019,6 +11122,7 @@ export namespace GtkSource {
|
|
|
11019
11122
|
* It is left to the accessible implementation to define the scope
|
|
11020
11123
|
* and uniqueness of the identifier.
|
|
11021
11124
|
* @returns the accessible identifier
|
|
11125
|
+
* @since 4.22
|
|
11022
11126
|
*/
|
|
11023
11127
|
get_accessible_id(): string | null;
|
|
11024
11128
|
|
|
@@ -11027,6 +11131,7 @@ export namespace GtkSource {
|
|
|
11027
11131
|
*
|
|
11028
11132
|
* This function returns `NULL` for top level widgets.
|
|
11029
11133
|
* @returns the accessible parent
|
|
11134
|
+
* @since 4.10
|
|
11030
11135
|
*/
|
|
11031
11136
|
get_accessible_parent(): Gtk.Accessible | null;
|
|
11032
11137
|
|
|
@@ -11039,6 +11144,7 @@ export namespace GtkSource {
|
|
|
11039
11144
|
/**
|
|
11040
11145
|
* Retrieves the implementation for the given accessible object.
|
|
11041
11146
|
* @returns the accessible implementation object
|
|
11147
|
+
* @since 4.10
|
|
11042
11148
|
*/
|
|
11043
11149
|
get_at_context(): Gtk.ATContext;
|
|
11044
11150
|
|
|
@@ -11049,18 +11155,21 @@ export namespace GtkSource {
|
|
|
11049
11155
|
* implementations, e.g. to get the bounds from an ignored
|
|
11050
11156
|
* child widget.
|
|
11051
11157
|
* @returns true if the bounds are valid, and false otherwise
|
|
11158
|
+
* @since 4.10
|
|
11052
11159
|
*/
|
|
11053
11160
|
get_bounds(): [boolean, number, number, number, number];
|
|
11054
11161
|
|
|
11055
11162
|
/**
|
|
11056
11163
|
* Retrieves the first accessible child of an accessible object.
|
|
11057
11164
|
* @returns the first accessible child
|
|
11165
|
+
* @since 4.10
|
|
11058
11166
|
*/
|
|
11059
11167
|
get_first_accessible_child(): Gtk.Accessible | null;
|
|
11060
11168
|
|
|
11061
11169
|
/**
|
|
11062
11170
|
* Retrieves the next accessible sibling of an accessible object
|
|
11063
11171
|
* @returns the next accessible sibling
|
|
11172
|
+
* @since 4.10
|
|
11064
11173
|
*/
|
|
11065
11174
|
get_next_accessible_sibling(): Gtk.Accessible | null;
|
|
11066
11175
|
|
|
@@ -11072,6 +11181,7 @@ export namespace GtkSource {
|
|
|
11072
11181
|
* child widget, as is the case for {@link Gtk.Text} wrappers.
|
|
11073
11182
|
* @param state platform state to query
|
|
11074
11183
|
* @returns the value of state for the accessible
|
|
11184
|
+
* @since 4.10
|
|
11075
11185
|
*/
|
|
11076
11186
|
get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
|
|
11077
11187
|
|
|
@@ -11105,6 +11215,7 @@ export namespace GtkSource {
|
|
|
11105
11215
|
* object is the container widget.
|
|
11106
11216
|
* @param parent the parent accessible object
|
|
11107
11217
|
* @param next_sibling the sibling accessible object
|
|
11218
|
+
* @since 4.10
|
|
11108
11219
|
*/
|
|
11109
11220
|
set_accessible_parent(parent: Gtk.Accessible | null, next_sibling: Gtk.Accessible | null): void;
|
|
11110
11221
|
|
|
@@ -11114,6 +11225,7 @@ export namespace GtkSource {
|
|
|
11114
11225
|
* That might be useful when a new child of a custom accessible
|
|
11115
11226
|
* is created, and it needs to be linked to a previous child.
|
|
11116
11227
|
* @param new_sibling the new next accessible sibling to set
|
|
11228
|
+
* @since 4.10
|
|
11117
11229
|
*/
|
|
11118
11230
|
update_next_accessible_sibling(new_sibling: Gtk.Accessible | null): void;
|
|
11119
11231
|
|
|
@@ -11124,6 +11236,7 @@ export namespace GtkSource {
|
|
|
11124
11236
|
* have a platform state but are not widgets. Widgets handle platform
|
|
11125
11237
|
* states automatically.
|
|
11126
11238
|
* @param state the platform state to update
|
|
11239
|
+
* @since 4.18
|
|
11127
11240
|
*/
|
|
11128
11241
|
update_platform_state(state: Gtk.AccessiblePlatformState): void;
|
|
11129
11242
|
|
|
@@ -11171,6 +11284,7 @@ export namespace GtkSource {
|
|
|
11171
11284
|
*
|
|
11172
11285
|
* It is left to the accessible implementation to define the scope
|
|
11173
11286
|
* and uniqueness of the identifier.
|
|
11287
|
+
* @since 4.22
|
|
11174
11288
|
* @virtual
|
|
11175
11289
|
*/
|
|
11176
11290
|
vfunc_get_accessible_id(): string | null;
|
|
@@ -11179,12 +11293,14 @@ export namespace GtkSource {
|
|
|
11179
11293
|
* Retrieves the accessible parent for an accessible object.
|
|
11180
11294
|
*
|
|
11181
11295
|
* This function returns `NULL` for top level widgets.
|
|
11296
|
+
* @since 4.10
|
|
11182
11297
|
* @virtual
|
|
11183
11298
|
*/
|
|
11184
11299
|
vfunc_get_accessible_parent(): Gtk.Accessible | null;
|
|
11185
11300
|
|
|
11186
11301
|
/**
|
|
11187
11302
|
* Retrieves the implementation for the given accessible object.
|
|
11303
|
+
* @since 4.10
|
|
11188
11304
|
* @virtual
|
|
11189
11305
|
*/
|
|
11190
11306
|
vfunc_get_at_context(): Gtk.ATContext | null;
|
|
@@ -11195,18 +11311,21 @@ export namespace GtkSource {
|
|
|
11195
11311
|
* This functionality can be overridden by {@link Gtk.Accessible}
|
|
11196
11312
|
* implementations, e.g. to get the bounds from an ignored
|
|
11197
11313
|
* child widget.
|
|
11314
|
+
* @since 4.10
|
|
11198
11315
|
* @virtual
|
|
11199
11316
|
*/
|
|
11200
11317
|
vfunc_get_bounds(): [boolean, number, number, number, number];
|
|
11201
11318
|
|
|
11202
11319
|
/**
|
|
11203
11320
|
* Retrieves the first accessible child of an accessible object.
|
|
11321
|
+
* @since 4.10
|
|
11204
11322
|
* @virtual
|
|
11205
11323
|
*/
|
|
11206
11324
|
vfunc_get_first_accessible_child(): Gtk.Accessible | null;
|
|
11207
11325
|
|
|
11208
11326
|
/**
|
|
11209
11327
|
* Retrieves the next accessible sibling of an accessible object
|
|
11328
|
+
* @since 4.10
|
|
11210
11329
|
* @virtual
|
|
11211
11330
|
*/
|
|
11212
11331
|
vfunc_get_next_accessible_sibling(): Gtk.Accessible | null;
|
|
@@ -11218,6 +11337,7 @@ export namespace GtkSource {
|
|
|
11218
11337
|
* implementations, e.g. to get platform state from an ignored
|
|
11219
11338
|
* child widget, as is the case for {@link Gtk.Text} wrappers.
|
|
11220
11339
|
* @param state platform state to query
|
|
11340
|
+
* @since 4.10
|
|
11221
11341
|
* @virtual
|
|
11222
11342
|
*/
|
|
11223
11343
|
vfunc_get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
|
|
@@ -11600,6 +11720,7 @@ export namespace GtkSource {
|
|
|
11600
11720
|
/**
|
|
11601
11721
|
* Gets the {@link GtkSource.StyleScheme} previewed by the widget.
|
|
11602
11722
|
* @returns a {@link GtkSource.StyleScheme}
|
|
11723
|
+
* @since 5.4
|
|
11603
11724
|
*/
|
|
11604
11725
|
get_scheme(): StyleScheme;
|
|
11605
11726
|
|
|
@@ -11672,6 +11793,7 @@ export namespace GtkSource {
|
|
|
11672
11793
|
* does not interrupts the user's current screen reader output.
|
|
11673
11794
|
* @param message the string to announce
|
|
11674
11795
|
* @param priority the priority of the announcement
|
|
11796
|
+
* @since 4.14
|
|
11675
11797
|
*/
|
|
11676
11798
|
announce(message: string, priority: Gtk.AccessibleAnnouncementPriority): void;
|
|
11677
11799
|
|
|
@@ -11684,6 +11806,7 @@ export namespace GtkSource {
|
|
|
11684
11806
|
* It is left to the accessible implementation to define the scope
|
|
11685
11807
|
* and uniqueness of the identifier.
|
|
11686
11808
|
* @returns the accessible identifier
|
|
11809
|
+
* @since 4.22
|
|
11687
11810
|
*/
|
|
11688
11811
|
get_accessible_id(): string | null;
|
|
11689
11812
|
|
|
@@ -11692,6 +11815,7 @@ export namespace GtkSource {
|
|
|
11692
11815
|
*
|
|
11693
11816
|
* This function returns `NULL` for top level widgets.
|
|
11694
11817
|
* @returns the accessible parent
|
|
11818
|
+
* @since 4.10
|
|
11695
11819
|
*/
|
|
11696
11820
|
get_accessible_parent(): Gtk.Accessible | null;
|
|
11697
11821
|
|
|
@@ -11704,6 +11828,7 @@ export namespace GtkSource {
|
|
|
11704
11828
|
/**
|
|
11705
11829
|
* Retrieves the implementation for the given accessible object.
|
|
11706
11830
|
* @returns the accessible implementation object
|
|
11831
|
+
* @since 4.10
|
|
11707
11832
|
*/
|
|
11708
11833
|
get_at_context(): Gtk.ATContext;
|
|
11709
11834
|
|
|
@@ -11714,18 +11839,21 @@ export namespace GtkSource {
|
|
|
11714
11839
|
* implementations, e.g. to get the bounds from an ignored
|
|
11715
11840
|
* child widget.
|
|
11716
11841
|
* @returns true if the bounds are valid, and false otherwise
|
|
11842
|
+
* @since 4.10
|
|
11717
11843
|
*/
|
|
11718
11844
|
get_bounds(): [boolean, number, number, number, number];
|
|
11719
11845
|
|
|
11720
11846
|
/**
|
|
11721
11847
|
* Retrieves the first accessible child of an accessible object.
|
|
11722
11848
|
* @returns the first accessible child
|
|
11849
|
+
* @since 4.10
|
|
11723
11850
|
*/
|
|
11724
11851
|
get_first_accessible_child(): Gtk.Accessible | null;
|
|
11725
11852
|
|
|
11726
11853
|
/**
|
|
11727
11854
|
* Retrieves the next accessible sibling of an accessible object
|
|
11728
11855
|
* @returns the next accessible sibling
|
|
11856
|
+
* @since 4.10
|
|
11729
11857
|
*/
|
|
11730
11858
|
get_next_accessible_sibling(): Gtk.Accessible | null;
|
|
11731
11859
|
|
|
@@ -11737,6 +11865,7 @@ export namespace GtkSource {
|
|
|
11737
11865
|
* child widget, as is the case for {@link Gtk.Text} wrappers.
|
|
11738
11866
|
* @param state platform state to query
|
|
11739
11867
|
* @returns the value of state for the accessible
|
|
11868
|
+
* @since 4.10
|
|
11740
11869
|
*/
|
|
11741
11870
|
get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
|
|
11742
11871
|
|
|
@@ -11770,6 +11899,7 @@ export namespace GtkSource {
|
|
|
11770
11899
|
* object is the container widget.
|
|
11771
11900
|
* @param parent the parent accessible object
|
|
11772
11901
|
* @param next_sibling the sibling accessible object
|
|
11902
|
+
* @since 4.10
|
|
11773
11903
|
*/
|
|
11774
11904
|
set_accessible_parent(parent: Gtk.Accessible | null, next_sibling: Gtk.Accessible | null): void;
|
|
11775
11905
|
|
|
@@ -11779,6 +11909,7 @@ export namespace GtkSource {
|
|
|
11779
11909
|
* That might be useful when a new child of a custom accessible
|
|
11780
11910
|
* is created, and it needs to be linked to a previous child.
|
|
11781
11911
|
* @param new_sibling the new next accessible sibling to set
|
|
11912
|
+
* @since 4.10
|
|
11782
11913
|
*/
|
|
11783
11914
|
update_next_accessible_sibling(new_sibling: Gtk.Accessible | null): void;
|
|
11784
11915
|
|
|
@@ -11789,6 +11920,7 @@ export namespace GtkSource {
|
|
|
11789
11920
|
* have a platform state but are not widgets. Widgets handle platform
|
|
11790
11921
|
* states automatically.
|
|
11791
11922
|
* @param state the platform state to update
|
|
11923
|
+
* @since 4.18
|
|
11792
11924
|
*/
|
|
11793
11925
|
update_platform_state(state: Gtk.AccessiblePlatformState): void;
|
|
11794
11926
|
|
|
@@ -11836,6 +11968,7 @@ export namespace GtkSource {
|
|
|
11836
11968
|
*
|
|
11837
11969
|
* It is left to the accessible implementation to define the scope
|
|
11838
11970
|
* and uniqueness of the identifier.
|
|
11971
|
+
* @since 4.22
|
|
11839
11972
|
* @virtual
|
|
11840
11973
|
*/
|
|
11841
11974
|
vfunc_get_accessible_id(): string | null;
|
|
@@ -11844,12 +11977,14 @@ export namespace GtkSource {
|
|
|
11844
11977
|
* Retrieves the accessible parent for an accessible object.
|
|
11845
11978
|
*
|
|
11846
11979
|
* This function returns `NULL` for top level widgets.
|
|
11980
|
+
* @since 4.10
|
|
11847
11981
|
* @virtual
|
|
11848
11982
|
*/
|
|
11849
11983
|
vfunc_get_accessible_parent(): Gtk.Accessible | null;
|
|
11850
11984
|
|
|
11851
11985
|
/**
|
|
11852
11986
|
* Retrieves the implementation for the given accessible object.
|
|
11987
|
+
* @since 4.10
|
|
11853
11988
|
* @virtual
|
|
11854
11989
|
*/
|
|
11855
11990
|
vfunc_get_at_context(): Gtk.ATContext | null;
|
|
@@ -11860,18 +11995,21 @@ export namespace GtkSource {
|
|
|
11860
11995
|
* This functionality can be overridden by {@link Gtk.Accessible}
|
|
11861
11996
|
* implementations, e.g. to get the bounds from an ignored
|
|
11862
11997
|
* child widget.
|
|
11998
|
+
* @since 4.10
|
|
11863
11999
|
* @virtual
|
|
11864
12000
|
*/
|
|
11865
12001
|
vfunc_get_bounds(): [boolean, number, number, number, number];
|
|
11866
12002
|
|
|
11867
12003
|
/**
|
|
11868
12004
|
* Retrieves the first accessible child of an accessible object.
|
|
12005
|
+
* @since 4.10
|
|
11869
12006
|
* @virtual
|
|
11870
12007
|
*/
|
|
11871
12008
|
vfunc_get_first_accessible_child(): Gtk.Accessible | null;
|
|
11872
12009
|
|
|
11873
12010
|
/**
|
|
11874
12011
|
* Retrieves the next accessible sibling of an accessible object
|
|
12012
|
+
* @since 4.10
|
|
11875
12013
|
* @virtual
|
|
11876
12014
|
*/
|
|
11877
12015
|
vfunc_get_next_accessible_sibling(): Gtk.Accessible | null;
|
|
@@ -11883,6 +12021,7 @@ export namespace GtkSource {
|
|
|
11883
12021
|
* implementations, e.g. to get platform state from an ignored
|
|
11884
12022
|
* child widget, as is the case for {@link Gtk.Text} wrappers.
|
|
11885
12023
|
* @param state platform state to query
|
|
12024
|
+
* @since 4.10
|
|
11886
12025
|
* @virtual
|
|
11887
12026
|
*/
|
|
11888
12027
|
vfunc_get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
|
|
@@ -12890,6 +13029,7 @@ export namespace GtkSource {
|
|
|
12890
13029
|
* The returned object is guaranteed to be the same for the lifetime of `view`.
|
|
12891
13030
|
* Each {@link View} object has a different {@link Annotations}.
|
|
12892
13031
|
* @returns the {@link GtkSource.Annotations} associated with `view`.
|
|
13032
|
+
* @since 5.18
|
|
12893
13033
|
*/
|
|
12894
13034
|
get_annotations(): Annotations;
|
|
12895
13035
|
|
|
@@ -13277,6 +13417,7 @@ export namespace GtkSource {
|
|
|
13277
13417
|
* Implementations of the {@link Gtk.AccessibleText} interface should call this
|
|
13278
13418
|
* function every time the caret has moved, in order to notify assistive
|
|
13279
13419
|
* technologies.
|
|
13420
|
+
* @since 4.14
|
|
13280
13421
|
*/
|
|
13281
13422
|
update_caret_position(): void;
|
|
13282
13423
|
|
|
@@ -13293,6 +13434,7 @@ export namespace GtkSource {
|
|
|
13293
13434
|
* @param change the type of change in the contents
|
|
13294
13435
|
* @param start the starting offset of the change, in characters
|
|
13295
13436
|
* @param end the end offset of the change, in characters
|
|
13437
|
+
* @since 4.14
|
|
13296
13438
|
*/
|
|
13297
13439
|
update_contents(change: Gtk.AccessibleTextContentChange, start: number, end: number): void;
|
|
13298
13440
|
|
|
@@ -13302,6 +13444,7 @@ export namespace GtkSource {
|
|
|
13302
13444
|
* Implementations of the {@link Gtk.AccessibleText} interface should call this
|
|
13303
13445
|
* function every time the selection has moved, in order to notify assistive
|
|
13304
13446
|
* technologies.
|
|
13447
|
+
* @since 4.14
|
|
13305
13448
|
*/
|
|
13306
13449
|
update_selection_bound(): void;
|
|
13307
13450
|
|
|
@@ -13324,12 +13467,14 @@ export namespace GtkSource {
|
|
|
13324
13467
|
* greater than or equal to one, `ranges` will be set to a newly
|
|
13325
13468
|
* allocated array of [struct#Gtk.AccessibleTextRange].
|
|
13326
13469
|
* @param offset the offset, in characters
|
|
13470
|
+
* @since 4.14
|
|
13327
13471
|
* @virtual
|
|
13328
13472
|
*/
|
|
13329
13473
|
vfunc_get_attributes(offset: number): [boolean, Gtk.AccessibleTextRange[] | null, string[] | null, string[] | null];
|
|
13330
13474
|
|
|
13331
13475
|
/**
|
|
13332
13476
|
* Retrieves the position of the caret inside the accessible object.
|
|
13477
|
+
* @since 4.14
|
|
13333
13478
|
* @virtual
|
|
13334
13479
|
*/
|
|
13335
13480
|
vfunc_get_caret_position(): number;
|
|
@@ -13342,6 +13487,7 @@ export namespace GtkSource {
|
|
|
13342
13487
|
* of the accessible object.
|
|
13343
13488
|
* @param start the beginning of the range, in characters
|
|
13344
13489
|
* @param end the end of the range, in characters
|
|
13490
|
+
* @since 4.14
|
|
13345
13491
|
* @virtual
|
|
13346
13492
|
*/
|
|
13347
13493
|
vfunc_get_contents(start: number, end: number): GLib.Bytes | Uint8Array;
|
|
@@ -13353,6 +13499,7 @@ export namespace GtkSource {
|
|
|
13353
13499
|
* The `start` and `end` values contain the boundaries of the text.
|
|
13354
13500
|
* @param offset the offset, in characters
|
|
13355
13501
|
* @param granularity the granularity of the query
|
|
13502
|
+
* @since 4.14
|
|
13356
13503
|
* @virtual
|
|
13357
13504
|
*/
|
|
13358
13505
|
vfunc_get_contents_at(offset: number, granularity: Gtk.AccessibleTextGranularity): [GLib.Bytes | Uint8Array, number, number];
|
|
@@ -13370,6 +13517,7 @@ export namespace GtkSource {
|
|
|
13370
13517
|
*
|
|
13371
13518
|
* GTK provides support for various text attribute names and values, but
|
|
13372
13519
|
* implementations of this interface are free to add their own attributes.
|
|
13520
|
+
* @since 4.14
|
|
13373
13521
|
* @virtual
|
|
13374
13522
|
*/
|
|
13375
13523
|
vfunc_get_default_attributes(): [string[] | null, string[] | null];
|
|
@@ -13379,6 +13527,7 @@ export namespace GtkSource {
|
|
|
13379
13527
|
* @param start the start offset, in characters
|
|
13380
13528
|
* @param end the end offset, in characters, `extents` (out caller-allocates): return location for the extents
|
|
13381
13529
|
* @param extents
|
|
13530
|
+
* @since 4.16
|
|
13382
13531
|
* @virtual
|
|
13383
13532
|
*/
|
|
13384
13533
|
vfunc_get_extents(start: number, end: number, extents: Graphene.Rect): boolean;
|
|
@@ -13386,6 +13535,7 @@ export namespace GtkSource {
|
|
|
13386
13535
|
/**
|
|
13387
13536
|
* Gets the text offset at a given point.
|
|
13388
13537
|
* @param point a point in widget coordinates of `self`
|
|
13538
|
+
* @since 4.16
|
|
13389
13539
|
* @virtual
|
|
13390
13540
|
*/
|
|
13391
13541
|
vfunc_get_offset(point: Graphene.Point): [boolean, number];
|
|
@@ -13396,6 +13546,7 @@ export namespace GtkSource {
|
|
|
13396
13546
|
* If this function returns true, `n_ranges` will be set to a value
|
|
13397
13547
|
* greater than or equal to one, and `ranges` will be set to a newly
|
|
13398
13548
|
* allocated array of [struct#Gtk.AccessibleTextRange].
|
|
13549
|
+
* @since 4.14
|
|
13399
13550
|
* @virtual
|
|
13400
13551
|
*/
|
|
13401
13552
|
vfunc_get_selection(): [boolean, Gtk.AccessibleTextRange[] | null];
|
|
@@ -13403,6 +13554,7 @@ export namespace GtkSource {
|
|
|
13403
13554
|
/**
|
|
13404
13555
|
* Sets the caret position.
|
|
13405
13556
|
* @param offset the text offset in characters
|
|
13557
|
+
* @since 4.22
|
|
13406
13558
|
* @virtual
|
|
13407
13559
|
*/
|
|
13408
13560
|
vfunc_set_caret_position(offset: number): boolean;
|
|
@@ -13411,6 +13563,7 @@ export namespace GtkSource {
|
|
|
13411
13563
|
* Sets the caret position.
|
|
13412
13564
|
* @param i the selection to set
|
|
13413
13565
|
* @param range the range to set the selection to
|
|
13566
|
+
* @since 4.22
|
|
13414
13567
|
* @virtual
|
|
13415
13568
|
*/
|
|
13416
13569
|
vfunc_set_selection(i: number, range: Gtk.AccessibleTextRange): boolean;
|
|
@@ -13690,18 +13843,21 @@ export namespace GtkSource {
|
|
|
13690
13843
|
* user except that this does not emit the
|
|
13691
13844
|
* `GtkSource.VimIMContext::execute-command` signal.
|
|
13692
13845
|
* @param command the command text
|
|
13846
|
+
* @since 5.4
|
|
13693
13847
|
*/
|
|
13694
13848
|
execute_command(command: string): void;
|
|
13695
13849
|
|
|
13696
13850
|
/**
|
|
13697
13851
|
* Gets the current command-bar text as it is entered by the user.
|
|
13698
13852
|
* @returns A string containing the command-bar text
|
|
13853
|
+
* @since 5.4
|
|
13699
13854
|
*/
|
|
13700
13855
|
get_command_bar_text(): string;
|
|
13701
13856
|
|
|
13702
13857
|
/**
|
|
13703
13858
|
* Gets the current command text as it is entered by the user.
|
|
13704
13859
|
* @returns A string containing the command text
|
|
13860
|
+
* @since 5.4
|
|
13705
13861
|
*/
|
|
13706
13862
|
get_command_text(): string;
|
|
13707
13863
|
}
|
|
@@ -14068,6 +14224,7 @@ export namespace GtkSource {
|
|
|
14068
14224
|
*
|
|
14069
14225
|
* Implementing this virtual-function is optional, but can be useful to allow
|
|
14070
14226
|
* external tooling to compare results.
|
|
14227
|
+
* @since 5.6
|
|
14071
14228
|
* @virtual
|
|
14072
14229
|
*/
|
|
14073
14230
|
vfunc_get_typed_text(): string | null;
|
|
@@ -14103,6 +14260,7 @@ export namespace GtkSource {
|
|
|
14103
14260
|
* Implementing this virtual-function is optional, but can be useful to allow
|
|
14104
14261
|
* external tooling to compare results.
|
|
14105
14262
|
* @returns a newly allocated string, or `null`
|
|
14263
|
+
* @since 5.6
|
|
14106
14264
|
*/
|
|
14107
14265
|
get_typed_text(): string | null;
|
|
14108
14266
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gtksource-5",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"libraryVersion": "5.21.0",
|
|
5
5
|
"description": "GJS TypeScript type definitions for GtkSource-5, generated from library version 5.21.0",
|
|
6
6
|
"type": "module",
|
|
@@ -37,21 +37,21 @@
|
|
|
37
37
|
"test": "tsc --project tsconfig.json"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@girs/gjs": "^4.
|
|
41
|
-
"@girs/gtk-4.0": "^4.
|
|
42
|
-
"@girs/gsk-4.0": "^4.
|
|
43
|
-
"@girs/graphene-1.0": "^4.
|
|
44
|
-
"@girs/gobject-2.0": "^4.
|
|
45
|
-
"@girs/glib-2.0": "^4.
|
|
46
|
-
"@girs/gdk-4.0": "^4.
|
|
47
|
-
"@girs/cairo-1.0": "^4.
|
|
48
|
-
"@girs/pangocairo-1.0": "^4.
|
|
49
|
-
"@girs/pango-1.0": "^4.
|
|
50
|
-
"@girs/harfbuzz-0.0": "^4.
|
|
51
|
-
"@girs/freetype2-2.0": "^4.
|
|
52
|
-
"@girs/gio-2.0": "^4.
|
|
53
|
-
"@girs/gmodule-2.0": "^4.
|
|
54
|
-
"@girs/gdkpixbuf-2.0": "^4.
|
|
40
|
+
"@girs/gjs": "^4.4.0",
|
|
41
|
+
"@girs/gtk-4.0": "^4.4.0",
|
|
42
|
+
"@girs/gsk-4.0": "^4.4.0",
|
|
43
|
+
"@girs/graphene-1.0": "^4.4.0",
|
|
44
|
+
"@girs/gobject-2.0": "^4.4.0",
|
|
45
|
+
"@girs/glib-2.0": "^4.4.0",
|
|
46
|
+
"@girs/gdk-4.0": "^4.4.0",
|
|
47
|
+
"@girs/cairo-1.0": "^4.4.0",
|
|
48
|
+
"@girs/pangocairo-1.0": "^4.4.0",
|
|
49
|
+
"@girs/pango-1.0": "^4.4.0",
|
|
50
|
+
"@girs/harfbuzz-0.0": "^4.4.0",
|
|
51
|
+
"@girs/freetype2-2.0": "^4.4.0",
|
|
52
|
+
"@girs/gio-2.0": "^4.4.0",
|
|
53
|
+
"@girs/gmodule-2.0": "^4.4.0",
|
|
54
|
+
"@girs/gdkpixbuf-2.0": "^4.4.0" },
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"typescript": "*"
|
|
57
57
|
},
|