@girs/builder-1.0 4.2.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/builder-1.0-surface.d.ts +20 -0
- package/builder-1.0-surface.js +6 -0
- package/builder-1.0.d.ts +48 -1
- package/package.json +22 -22
- package/tsconfig.json +2 -2
package/README.md
CHANGED
|
@@ -5,25 +5,25 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Builder-1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.
|
|
8
|
+
GJS TypeScript type definitions for Builder-1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.4.0.
|
|
9
9
|
|
|
10
10
|
## Install
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Install the type definitions with npm:
|
|
13
13
|
```bash
|
|
14
14
|
npm install @girs/builder-1.0
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Import it like any other module:
|
|
20
20
|
```ts
|
|
21
21
|
import Builder from '@girs/builder-1.0';
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
### Ambient Modules
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
[Ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules) let you write the same import you would in plain JavaScript.
|
|
27
27
|
For this you need to include `@girs/builder-1.0` or `@girs/builder-1.0/ambient` in your `tsconfig` or entry point Typescript file:
|
|
28
28
|
|
|
29
29
|
`index.ts`:
|
|
@@ -42,7 +42,7 @@ import '@girs/builder-1.0'
|
|
|
42
42
|
}
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
The ambient module now resolves with types:
|
|
46
46
|
|
|
47
47
|
```ts
|
|
48
48
|
import Builder from 'gi://Builder?version=1.0';
|
|
@@ -50,7 +50,7 @@ import Builder from 'gi://Builder?version=1.0';
|
|
|
50
50
|
|
|
51
51
|
### Global import
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
GJS's global `imports.gi` works too, with types.
|
|
54
54
|
For this you need to include `@girs/builder-1.0` or `@girs/builder-1.0/import` in your `tsconfig` or entry point Typescript file:
|
|
55
55
|
|
|
56
56
|
`index.ts`:
|
|
@@ -69,7 +69,7 @@ import '@girs/builder-1.0'
|
|
|
69
69
|
}
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
That form carries types as well:
|
|
73
73
|
|
|
74
74
|
```ts
|
|
75
75
|
const Builder = imports.gi.Builder;
|
|
@@ -77,7 +77,7 @@ const Builder = imports.gi.Builder;
|
|
|
77
77
|
|
|
78
78
|
### Bundle
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
Most projects want a bundler. [esbuild](https://esbuild.github.io/) is the smallest thing that works; the [examples directory](https://github.com/gjsify/ts-for-gir/tree/main/examples) has setups for several others.
|
|
81
81
|
|
|
82
82
|
## Other packages
|
|
83
83
|
|
package/builder-1.0-surface.d.ts
CHANGED
|
@@ -154,6 +154,23 @@ export interface Widgets {
|
|
|
154
154
|
/** Every GType this namespace can create. A consumer derives its own tag map. */
|
|
155
155
|
export type WidgetGType = keyof Widgets;
|
|
156
156
|
|
|
157
|
+
// ---------------------------------------------------------------------------
|
|
158
|
+
// Child holders — the same shape, for objects that CARRY a widget without being one.
|
|
159
|
+
//
|
|
160
|
+
// `GtkListItem`, `GtkListHeader`, `GtkColumnViewCell` and `AdwToggle` descend from
|
|
161
|
+
// `GObject.Object` and hold a widget through `set_child`/`get_child`. A renderer places
|
|
162
|
+
// them exactly like a container, so they belong in the vocabulary; a check asking "is
|
|
163
|
+
// this a widget" must still be able to say no. Hence a sibling table rather than four
|
|
164
|
+
// more rows in `Widgets`: concatenate them when you mean both.
|
|
165
|
+
// ---------------------------------------------------------------------------
|
|
166
|
+
|
|
167
|
+
export interface ChildHolders {
|
|
168
|
+
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/** Every GType this namespace holds a child in without it being a widget. */
|
|
172
|
+
export type ChildHolderGType = keyof ChildHolders;
|
|
173
|
+
|
|
157
174
|
/** The writable, optional, GObject-keyed property surface of one GType. */
|
|
158
175
|
export type PropsOf<G extends WidgetGType> = Widgets[G]['props'];
|
|
159
176
|
|
|
@@ -189,6 +206,9 @@ export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
|
|
|
189
206
|
/** Widget GType -> every declaration its members come from, self first. */
|
|
190
207
|
export const DECLS: Readonly<Record<string, readonly string[]>>;
|
|
191
208
|
|
|
209
|
+
/** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
|
|
210
|
+
export const CHILD_HOLDERS: readonly string[];
|
|
211
|
+
|
|
192
212
|
/** Enum GType -> the nicks this surface offers. */
|
|
193
213
|
export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
|
|
194
214
|
|
package/builder-1.0-surface.js
CHANGED
|
@@ -30,6 +30,12 @@ export const DECLS = {
|
|
|
30
30
|
GbWorkbench: ['GbWorkbench', 'GtkApplicationWindow', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable'],
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
+
// The GTypes above that are NOT widgets: they hold one through `set_child`/`get_child`
|
|
34
|
+
// and descend from `GObject.Object`. A renderer places them like a container; a check
|
|
35
|
+
// asking "is this a widget" must not count them. Derived from the accessor pair, never
|
|
36
|
+
// from a list — the count is in the provenance line above.
|
|
37
|
+
export const CHILD_HOLDERS = [];
|
|
38
|
+
|
|
33
39
|
export const ENUM_NICKS = {
|
|
34
40
|
GbViewGridSplit: ['left', 'right', 'move-left', 'move-right'],
|
|
35
41
|
};
|
package/builder-1.0.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ import type Gio from '@girs/gio-2.0';
|
|
|
16
16
|
import type GObject from '@girs/gobject-2.0';
|
|
17
17
|
import type GLib from '@girs/glib-2.0';
|
|
18
18
|
import type GModule from '@girs/gmodule-2.0';
|
|
19
|
-
import type GIRepository from '@girs/girepository-
|
|
19
|
+
import type GIRepository from '@girs/girepository-3.0';
|
|
20
20
|
import type Ide from '@girs/ide-1.0';
|
|
21
21
|
import type Template from '@girs/template-1.0';
|
|
22
22
|
import type Json from '@girs/json-1.0';
|
|
@@ -705,36 +705,42 @@ export namespace Builder {
|
|
|
705
705
|
* display overlayed graphics, like the overshoot indication,
|
|
706
706
|
* at the right position.
|
|
707
707
|
* @returns `true` if `border` has been set
|
|
708
|
+
* @since 3.16
|
|
708
709
|
*/
|
|
709
710
|
get_border(): [boolean, Gtk.Border];
|
|
710
711
|
|
|
711
712
|
/**
|
|
712
713
|
* Retrieves the {@link Gtk.Adjustment} used for horizontal scrolling.
|
|
713
714
|
* @returns horizontal {@link Gtk.Adjustment}.
|
|
715
|
+
* @since 3.0
|
|
714
716
|
*/
|
|
715
717
|
get_hadjustment(): Gtk.Adjustment;
|
|
716
718
|
|
|
717
719
|
/**
|
|
718
720
|
* Gets the horizontal {@link Gtk.ScrollablePolicy}.
|
|
719
721
|
* @returns The horizontal {@link Gtk.ScrollablePolicy}.
|
|
722
|
+
* @since 3.0
|
|
720
723
|
*/
|
|
721
724
|
get_hscroll_policy(): Gtk.ScrollablePolicy;
|
|
722
725
|
|
|
723
726
|
/**
|
|
724
727
|
* Retrieves the {@link Gtk.Adjustment} used for vertical scrolling.
|
|
725
728
|
* @returns vertical {@link Gtk.Adjustment}.
|
|
729
|
+
* @since 3.0
|
|
726
730
|
*/
|
|
727
731
|
get_vadjustment(): Gtk.Adjustment;
|
|
728
732
|
|
|
729
733
|
/**
|
|
730
734
|
* Gets the vertical {@link Gtk.ScrollablePolicy}.
|
|
731
735
|
* @returns The vertical {@link Gtk.ScrollablePolicy}.
|
|
736
|
+
* @since 3.0
|
|
732
737
|
*/
|
|
733
738
|
get_vscroll_policy(): Gtk.ScrollablePolicy;
|
|
734
739
|
|
|
735
740
|
/**
|
|
736
741
|
* Sets the horizontal adjustment of the {@link Gtk.Scrollable}.
|
|
737
742
|
* @param hadjustment a {@link Gtk.Adjustment}
|
|
743
|
+
* @since 3.0
|
|
738
744
|
*/
|
|
739
745
|
set_hadjustment(hadjustment: Gtk.Adjustment | null): void;
|
|
740
746
|
|
|
@@ -743,12 +749,14 @@ export namespace Builder {
|
|
|
743
749
|
* horizontal scrolling should start below the minimum width or
|
|
744
750
|
* below the natural width.
|
|
745
751
|
* @param policy the horizontal {@link Gtk.ScrollablePolicy}
|
|
752
|
+
* @since 3.0
|
|
746
753
|
*/
|
|
747
754
|
set_hscroll_policy(policy: Gtk.ScrollablePolicy): void;
|
|
748
755
|
|
|
749
756
|
/**
|
|
750
757
|
* Sets the vertical adjustment of the {@link Gtk.Scrollable}.
|
|
751
758
|
* @param vadjustment a {@link Gtk.Adjustment}
|
|
759
|
+
* @since 3.0
|
|
752
760
|
*/
|
|
753
761
|
set_vadjustment(vadjustment: Gtk.Adjustment | null): void;
|
|
754
762
|
|
|
@@ -757,6 +765,7 @@ export namespace Builder {
|
|
|
757
765
|
* vertical scrolling should start below the minimum height or
|
|
758
766
|
* below the natural height.
|
|
759
767
|
* @param policy the vertical {@link Gtk.ScrollablePolicy}
|
|
768
|
+
* @since 3.0
|
|
760
769
|
*/
|
|
761
770
|
set_vscroll_policy(policy: Gtk.ScrollablePolicy): void;
|
|
762
771
|
|
|
@@ -766,6 +775,7 @@ export namespace Builder {
|
|
|
766
775
|
* be treeview headers. GTK+ can use this information to
|
|
767
776
|
* display overlayed graphics, like the overshoot indication,
|
|
768
777
|
* at the right position.
|
|
778
|
+
* @since 3.16
|
|
769
779
|
* @virtual
|
|
770
780
|
*/
|
|
771
781
|
vfunc_get_border(): [boolean, Gtk.Border];
|
|
@@ -1459,12 +1469,14 @@ export namespace Builder {
|
|
|
1459
1469
|
/**
|
|
1460
1470
|
* Retrieves the orientation of the `orientable`.
|
|
1461
1471
|
* @returns the orientation of the `orientable`.
|
|
1472
|
+
* @since 2.16
|
|
1462
1473
|
*/
|
|
1463
1474
|
get_orientation(): Gtk.Orientation;
|
|
1464
1475
|
|
|
1465
1476
|
/**
|
|
1466
1477
|
* Sets the orientation of the `orientable`.
|
|
1467
1478
|
* @param orientation the orientable’s new orientation.
|
|
1479
|
+
* @since 2.16
|
|
1468
1480
|
*/
|
|
1469
1481
|
set_orientation(orientation: Gtk.Orientation): void;
|
|
1470
1482
|
}
|
|
@@ -2020,6 +2032,7 @@ export namespace Builder {
|
|
|
2020
2032
|
*
|
|
2021
2033
|
* This function should only be called by {@link Gio.ActionGroup} implementations.
|
|
2022
2034
|
* @param action_name the name of an action in the group
|
|
2035
|
+
* @since 2.28
|
|
2023
2036
|
*/
|
|
2024
2037
|
action_added(action_name: string): void;
|
|
2025
2038
|
|
|
@@ -2029,6 +2042,7 @@ export namespace Builder {
|
|
|
2029
2042
|
* This function should only be called by {@link Gio.ActionGroup} implementations.
|
|
2030
2043
|
* @param action_name the name of an action in the group
|
|
2031
2044
|
* @param enabled whether the action is now enabled
|
|
2045
|
+
* @since 2.28
|
|
2032
2046
|
*/
|
|
2033
2047
|
action_enabled_changed(action_name: string, enabled: boolean): void;
|
|
2034
2048
|
|
|
@@ -2037,6 +2051,7 @@ export namespace Builder {
|
|
|
2037
2051
|
*
|
|
2038
2052
|
* This function should only be called by {@link Gio.ActionGroup} implementations.
|
|
2039
2053
|
* @param action_name the name of an action in the group
|
|
2054
|
+
* @since 2.28
|
|
2040
2055
|
*/
|
|
2041
2056
|
action_removed(action_name: string): void;
|
|
2042
2057
|
|
|
@@ -2046,6 +2061,7 @@ export namespace Builder {
|
|
|
2046
2061
|
* This function should only be called by {@link Gio.ActionGroup} implementations.
|
|
2047
2062
|
* @param action_name the name of an action in the group
|
|
2048
2063
|
* @param state the new state of the named action
|
|
2064
|
+
* @since 2.28
|
|
2049
2065
|
*/
|
|
2050
2066
|
action_state_changed(action_name: string, state: GLib.Variant): void;
|
|
2051
2067
|
|
|
@@ -2085,6 +2101,7 @@ export namespace Builder {
|
|
|
2085
2101
|
* ```
|
|
2086
2102
|
* @param action_name the name of the action to activate
|
|
2087
2103
|
* @param parameter parameters to the activation
|
|
2104
|
+
* @since 2.28
|
|
2088
2105
|
*/
|
|
2089
2106
|
activate_action(action_name: string, parameter: GLib.Variant | null): void;
|
|
2090
2107
|
|
|
@@ -2102,6 +2119,7 @@ export namespace Builder {
|
|
|
2102
2119
|
* If the `value` GVariant is floating, it is consumed.
|
|
2103
2120
|
* @param action_name the name of the action to request the change on
|
|
2104
2121
|
* @param value the new state
|
|
2122
|
+
* @since 2.28
|
|
2105
2123
|
*/
|
|
2106
2124
|
change_action_state(action_name: string, value: GLib.Variant): void;
|
|
2107
2125
|
|
|
@@ -2112,6 +2130,7 @@ export namespace Builder {
|
|
|
2112
2130
|
* have its state changed from outside callers.
|
|
2113
2131
|
* @param action_name the name of the action to query
|
|
2114
2132
|
* @returns whether the action is currently enabled
|
|
2133
|
+
* @since 2.28
|
|
2115
2134
|
*/
|
|
2116
2135
|
get_action_enabled(action_name: string): boolean;
|
|
2117
2136
|
|
|
@@ -2131,6 +2150,7 @@ export namespace Builder {
|
|
|
2131
2150
|
* with the same name but a different parameter type.
|
|
2132
2151
|
* @param action_name the name of the action to query
|
|
2133
2152
|
* @returns the parameter type
|
|
2153
|
+
* @since 2.28
|
|
2134
2154
|
*/
|
|
2135
2155
|
get_action_parameter_type(action_name: string): GLib.VariantType | null;
|
|
2136
2156
|
|
|
@@ -2145,6 +2165,7 @@ export namespace Builder {
|
|
|
2145
2165
|
* {@link GLib.Variant.unref} when it is no longer required.
|
|
2146
2166
|
* @param action_name the name of the action to query
|
|
2147
2167
|
* @returns the current state of the action
|
|
2168
|
+
* @since 2.28
|
|
2148
2169
|
*/
|
|
2149
2170
|
get_action_state(action_name: string): GLib.Variant | null;
|
|
2150
2171
|
|
|
@@ -2169,6 +2190,7 @@ export namespace Builder {
|
|
|
2169
2190
|
* {@link GLib.Variant.unref} when it is no longer required.
|
|
2170
2191
|
* @param action_name the name of the action to query
|
|
2171
2192
|
* @returns the state range hint
|
|
2193
|
+
* @since 2.28
|
|
2172
2194
|
*/
|
|
2173
2195
|
get_action_state_hint(action_name: string): GLib.Variant | null;
|
|
2174
2196
|
|
|
@@ -2191,6 +2213,7 @@ export namespace Builder {
|
|
|
2191
2213
|
* with the same name but a different state type.
|
|
2192
2214
|
* @param action_name the name of the action to query
|
|
2193
2215
|
* @returns the state type, if the action is stateful
|
|
2216
|
+
* @since 2.28
|
|
2194
2217
|
*/
|
|
2195
2218
|
get_action_state_type(action_name: string): GLib.VariantType | null;
|
|
2196
2219
|
|
|
@@ -2198,6 +2221,7 @@ export namespace Builder {
|
|
|
2198
2221
|
* Checks if the named action exists within `action_group`.
|
|
2199
2222
|
* @param action_name the name of the action to check for
|
|
2200
2223
|
* @returns whether the named action exists
|
|
2224
|
+
* @since 2.28
|
|
2201
2225
|
*/
|
|
2202
2226
|
has_action(action_name: string): boolean;
|
|
2203
2227
|
|
|
@@ -2207,6 +2231,7 @@ export namespace Builder {
|
|
|
2207
2231
|
* The caller is responsible for freeing the list with {@link GLib.strfreev} when
|
|
2208
2232
|
* it is no longer required.
|
|
2209
2233
|
* @returns a `NULL`-terminated array of the names of the actions in the group
|
|
2234
|
+
* @since 2.28
|
|
2210
2235
|
*/
|
|
2211
2236
|
list_actions(): string[];
|
|
2212
2237
|
|
|
@@ -2240,6 +2265,7 @@ export namespace Builder {
|
|
|
2240
2265
|
* fields may or may not have been modified.
|
|
2241
2266
|
* @param action_name the name of an action in the group
|
|
2242
2267
|
* @returns `TRUE` if the action exists, else `FALSE`
|
|
2268
|
+
* @since 2.32
|
|
2243
2269
|
*/
|
|
2244
2270
|
query_action(action_name: string): [boolean, boolean, GLib.VariantType | null, GLib.VariantType | null, GLib.Variant | null, GLib.Variant | null];
|
|
2245
2271
|
|
|
@@ -2248,6 +2274,7 @@ export namespace Builder {
|
|
|
2248
2274
|
*
|
|
2249
2275
|
* This function should only be called by {@link Gio.ActionGroup} implementations.
|
|
2250
2276
|
* @param action_name the name of an action in the group
|
|
2277
|
+
* @since 2.28
|
|
2251
2278
|
* @virtual
|
|
2252
2279
|
*/
|
|
2253
2280
|
vfunc_action_added(action_name: string): void;
|
|
@@ -2258,6 +2285,7 @@ export namespace Builder {
|
|
|
2258
2285
|
* This function should only be called by {@link Gio.ActionGroup} implementations.
|
|
2259
2286
|
* @param action_name the name of an action in the group
|
|
2260
2287
|
* @param enabled whether the action is now enabled
|
|
2288
|
+
* @since 2.28
|
|
2261
2289
|
* @virtual
|
|
2262
2290
|
*/
|
|
2263
2291
|
vfunc_action_enabled_changed(action_name: string, enabled: boolean): void;
|
|
@@ -2267,6 +2295,7 @@ export namespace Builder {
|
|
|
2267
2295
|
*
|
|
2268
2296
|
* This function should only be called by {@link Gio.ActionGroup} implementations.
|
|
2269
2297
|
* @param action_name the name of an action in the group
|
|
2298
|
+
* @since 2.28
|
|
2270
2299
|
* @virtual
|
|
2271
2300
|
*/
|
|
2272
2301
|
vfunc_action_removed(action_name: string): void;
|
|
@@ -2277,6 +2306,7 @@ export namespace Builder {
|
|
|
2277
2306
|
* This function should only be called by {@link Gio.ActionGroup} implementations.
|
|
2278
2307
|
* @param action_name the name of an action in the group
|
|
2279
2308
|
* @param state the new state of the named action
|
|
2309
|
+
* @since 2.28
|
|
2280
2310
|
* @virtual
|
|
2281
2311
|
*/
|
|
2282
2312
|
vfunc_action_state_changed(action_name: string, state: GLib.Variant): void;
|
|
@@ -2317,6 +2347,7 @@ export namespace Builder {
|
|
|
2317
2347
|
* ```
|
|
2318
2348
|
* @param action_name the name of the action to activate
|
|
2319
2349
|
* @param parameter parameters to the activation
|
|
2350
|
+
* @since 2.28
|
|
2320
2351
|
* @virtual
|
|
2321
2352
|
*/
|
|
2322
2353
|
vfunc_activate_action(action_name: string, parameter: GLib.Variant | null): void;
|
|
@@ -2335,6 +2366,7 @@ export namespace Builder {
|
|
|
2335
2366
|
* If the `value` GVariant is floating, it is consumed.
|
|
2336
2367
|
* @param action_name the name of the action to request the change on
|
|
2337
2368
|
* @param value the new state
|
|
2369
|
+
* @since 2.28
|
|
2338
2370
|
* @virtual
|
|
2339
2371
|
*/
|
|
2340
2372
|
vfunc_change_action_state(action_name: string, value: GLib.Variant): void;
|
|
@@ -2345,6 +2377,7 @@ export namespace Builder {
|
|
|
2345
2377
|
* An action must be enabled in order to be activated or in order to
|
|
2346
2378
|
* have its state changed from outside callers.
|
|
2347
2379
|
* @param action_name the name of the action to query
|
|
2380
|
+
* @since 2.28
|
|
2348
2381
|
* @virtual
|
|
2349
2382
|
*/
|
|
2350
2383
|
vfunc_get_action_enabled(action_name: string): boolean;
|
|
@@ -2364,6 +2397,7 @@ export namespace Builder {
|
|
|
2364
2397
|
* possible for an action to be removed and for a new action to be added
|
|
2365
2398
|
* with the same name but a different parameter type.
|
|
2366
2399
|
* @param action_name the name of the action to query
|
|
2400
|
+
* @since 2.28
|
|
2367
2401
|
* @virtual
|
|
2368
2402
|
*/
|
|
2369
2403
|
vfunc_get_action_parameter_type(action_name: string): GLib.VariantType | null;
|
|
@@ -2378,6 +2412,7 @@ export namespace Builder {
|
|
|
2378
2412
|
* The return value (if non-`NULL`) should be freed with
|
|
2379
2413
|
* {@link GLib.Variant.unref} when it is no longer required.
|
|
2380
2414
|
* @param action_name the name of the action to query
|
|
2415
|
+
* @since 2.28
|
|
2381
2416
|
* @virtual
|
|
2382
2417
|
*/
|
|
2383
2418
|
vfunc_get_action_state(action_name: string): GLib.Variant | null;
|
|
@@ -2402,6 +2437,7 @@ export namespace Builder {
|
|
|
2402
2437
|
* The return value (if non-`NULL`) should be freed with
|
|
2403
2438
|
* {@link GLib.Variant.unref} when it is no longer required.
|
|
2404
2439
|
* @param action_name the name of the action to query
|
|
2440
|
+
* @since 2.28
|
|
2405
2441
|
* @virtual
|
|
2406
2442
|
*/
|
|
2407
2443
|
vfunc_get_action_state_hint(action_name: string): GLib.Variant | null;
|
|
@@ -2424,6 +2460,7 @@ export namespace Builder {
|
|
|
2424
2460
|
* possible for an action to be removed and for a new action to be added
|
|
2425
2461
|
* with the same name but a different state type.
|
|
2426
2462
|
* @param action_name the name of the action to query
|
|
2463
|
+
* @since 2.28
|
|
2427
2464
|
* @virtual
|
|
2428
2465
|
*/
|
|
2429
2466
|
vfunc_get_action_state_type(action_name: string): GLib.VariantType | null;
|
|
@@ -2431,6 +2468,7 @@ export namespace Builder {
|
|
|
2431
2468
|
/**
|
|
2432
2469
|
* Checks if the named action exists within `action_group`.
|
|
2433
2470
|
* @param action_name the name of the action to check for
|
|
2471
|
+
* @since 2.28
|
|
2434
2472
|
* @virtual
|
|
2435
2473
|
*/
|
|
2436
2474
|
vfunc_has_action(action_name: string): boolean;
|
|
@@ -2440,6 +2478,7 @@ export namespace Builder {
|
|
|
2440
2478
|
*
|
|
2441
2479
|
* The caller is responsible for freeing the list with {@link GLib.strfreev} when
|
|
2442
2480
|
* it is no longer required.
|
|
2481
|
+
* @since 2.28
|
|
2443
2482
|
* @virtual
|
|
2444
2483
|
*/
|
|
2445
2484
|
vfunc_list_actions(): string[];
|
|
@@ -2473,6 +2512,7 @@ export namespace Builder {
|
|
|
2473
2512
|
* filled. If the action doesn’t exist, `FALSE` is returned and the
|
|
2474
2513
|
* fields may or may not have been modified.
|
|
2475
2514
|
* @param action_name the name of an action in the group
|
|
2515
|
+
* @since 2.32
|
|
2476
2516
|
* @virtual
|
|
2477
2517
|
*/
|
|
2478
2518
|
vfunc_query_action(action_name: string): [boolean, boolean, GLib.VariantType | null, GLib.VariantType | null, GLib.Variant | null, GLib.Variant | null];
|
|
@@ -2485,6 +2525,7 @@ export namespace Builder {
|
|
|
2485
2525
|
*
|
|
2486
2526
|
* The action map takes its own reference on `action`.
|
|
2487
2527
|
* @param action a {@link Gio.Action}
|
|
2528
|
+
* @since 2.32
|
|
2488
2529
|
*/
|
|
2489
2530
|
add_action(action: Gio.Action): void;
|
|
2490
2531
|
|
|
@@ -2501,6 +2542,7 @@ export namespace Builder {
|
|
|
2501
2542
|
* If no such action exists, returns `NULL`.
|
|
2502
2543
|
* @param action_name the name of an action
|
|
2503
2544
|
* @returns a {@link Gio.Action}
|
|
2545
|
+
* @since 2.32
|
|
2504
2546
|
*/
|
|
2505
2547
|
lookup_action(action_name: string): Gio.Action | null;
|
|
2506
2548
|
|
|
@@ -2509,6 +2551,7 @@ export namespace Builder {
|
|
|
2509
2551
|
*
|
|
2510
2552
|
* If no action of this name is in the map then nothing happens.
|
|
2511
2553
|
* @param action_name the name of the action
|
|
2554
|
+
* @since 2.32
|
|
2512
2555
|
*/
|
|
2513
2556
|
remove_action(action_name: string): void;
|
|
2514
2557
|
|
|
@@ -2536,6 +2579,7 @@ export namespace Builder {
|
|
|
2536
2579
|
* }
|
|
2537
2580
|
* ```
|
|
2538
2581
|
* @param entries a pointer to the first item in an array of {@link Gio.ActionEntry} structs
|
|
2582
|
+
* @since 2.78
|
|
2539
2583
|
*/
|
|
2540
2584
|
remove_action_entries(entries: Gio.ActionEntry[]): void;
|
|
2541
2585
|
|
|
@@ -2547,6 +2591,7 @@ export namespace Builder {
|
|
|
2547
2591
|
*
|
|
2548
2592
|
* The action map takes its own reference on `action`.
|
|
2549
2593
|
* @param action a {@link Gio.Action}
|
|
2594
|
+
* @since 2.32
|
|
2550
2595
|
* @virtual
|
|
2551
2596
|
*/
|
|
2552
2597
|
vfunc_add_action(action: Gio.Action): void;
|
|
@@ -2556,6 +2601,7 @@ export namespace Builder {
|
|
|
2556
2601
|
*
|
|
2557
2602
|
* If no such action exists, returns `NULL`.
|
|
2558
2603
|
* @param action_name the name of an action
|
|
2604
|
+
* @since 2.32
|
|
2559
2605
|
* @virtual
|
|
2560
2606
|
*/
|
|
2561
2607
|
vfunc_lookup_action(action_name: string): Gio.Action | null;
|
|
@@ -2565,6 +2611,7 @@ export namespace Builder {
|
|
|
2565
2611
|
*
|
|
2566
2612
|
* If no action of this name is in the map then nothing happens.
|
|
2567
2613
|
* @param action_name the name of the action
|
|
2614
|
+
* @since 2.32
|
|
2568
2615
|
* @virtual
|
|
2569
2616
|
*/
|
|
2570
2617
|
vfunc_remove_action(action_name: string): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/builder-1.0",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Builder-1.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "builder-1.0.js",
|
|
@@ -36,27 +36,27 @@
|
|
|
36
36
|
"test": "tsc --project tsconfig.json"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@girs/gjs": "^4.
|
|
40
|
-
"@girs/peas-1.0": "^4.
|
|
41
|
-
"@girs/gio-2.0": "^4.
|
|
42
|
-
"@girs/gobject-2.0": "^4.
|
|
43
|
-
"@girs/glib-2.0": "^4.
|
|
44
|
-
"@girs/gmodule-2.0": "^4.
|
|
45
|
-
"@girs/girepository-
|
|
46
|
-
"@girs/ide-1.0": "^4.
|
|
47
|
-
"@girs/template-1.0": "^4.
|
|
48
|
-
"@girs/json-1.0": "^4.
|
|
49
|
-
"@girs/gtksource-3.0": "^4.
|
|
50
|
-
"@girs/gtk-3.0": "^4.
|
|
51
|
-
"@girs/xlib-2.0": "^4.
|
|
52
|
-
"@girs/gdk-3.0": "^4.
|
|
53
|
-
"@girs/cairo-1.0": "^4.
|
|
54
|
-
"@girs/pango-1.0": "^4.
|
|
55
|
-
"@girs/harfbuzz-0.0": "^4.
|
|
56
|
-
"@girs/freetype2-2.0": "^4.
|
|
57
|
-
"@girs/gdkpixbuf-2.0": "^4.
|
|
58
|
-
"@girs/atk-1.0": "^4.
|
|
59
|
-
"@girs/dazzle-1.0": "^4.
|
|
39
|
+
"@girs/gjs": "^4.4.0",
|
|
40
|
+
"@girs/peas-1.0": "^4.4.0",
|
|
41
|
+
"@girs/gio-2.0": "^4.4.0",
|
|
42
|
+
"@girs/gobject-2.0": "^4.4.0",
|
|
43
|
+
"@girs/glib-2.0": "^4.4.0",
|
|
44
|
+
"@girs/gmodule-2.0": "^4.4.0",
|
|
45
|
+
"@girs/girepository-3.0": "^4.4.0",
|
|
46
|
+
"@girs/ide-1.0": "^4.4.0",
|
|
47
|
+
"@girs/template-1.0": "^4.4.0",
|
|
48
|
+
"@girs/json-1.0": "^4.4.0",
|
|
49
|
+
"@girs/gtksource-3.0": "^4.4.0",
|
|
50
|
+
"@girs/gtk-3.0": "^4.4.0",
|
|
51
|
+
"@girs/xlib-2.0": "^4.4.0",
|
|
52
|
+
"@girs/gdk-3.0": "^4.4.0",
|
|
53
|
+
"@girs/cairo-1.0": "^4.4.0",
|
|
54
|
+
"@girs/pango-1.0": "^4.4.0",
|
|
55
|
+
"@girs/harfbuzz-0.0": "^4.4.0",
|
|
56
|
+
"@girs/freetype2-2.0": "^4.4.0",
|
|
57
|
+
"@girs/gdkpixbuf-2.0": "^4.4.0",
|
|
58
|
+
"@girs/atk-1.0": "^4.4.0",
|
|
59
|
+
"@girs/dazzle-1.0": "^4.4.0" },
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"typescript": "*"
|
|
62
62
|
},
|
package/tsconfig.json
CHANGED