@girs/meta-12 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/meta-12.d.ts +26 -0
- package/package.json +21 -21
package/README.md
CHANGED
|
@@ -5,25 +5,25 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Meta-12 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.
|
|
8
|
+
GJS TypeScript type definitions for Meta-12 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/meta-12
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Import it like any other module:
|
|
20
20
|
```ts
|
|
21
21
|
import Meta from '@girs/meta-12';
|
|
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/meta-12` or `@girs/meta-12/ambient` in your `tsconfig` or entry point Typescript file:
|
|
28
28
|
|
|
29
29
|
`index.ts`:
|
|
@@ -42,7 +42,7 @@ import '@girs/meta-12'
|
|
|
42
42
|
}
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
The ambient module now resolves with types:
|
|
46
46
|
|
|
47
47
|
```ts
|
|
48
48
|
import Meta from 'gi://Meta?version=12';
|
|
@@ -50,7 +50,7 @@ import Meta from 'gi://Meta?version=12';
|
|
|
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/meta-12` or `@girs/meta-12/import` in your `tsconfig` or entry point Typescript file:
|
|
55
55
|
|
|
56
56
|
`index.ts`:
|
|
@@ -69,7 +69,7 @@ import '@girs/meta-12'
|
|
|
69
69
|
}
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
That form carries types as well:
|
|
73
73
|
|
|
74
74
|
```ts
|
|
75
75
|
const Meta = imports.gi.Meta;
|
|
@@ -77,7 +77,7 @@ const Meta = imports.gi.Meta;
|
|
|
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/meta-12.d.ts
CHANGED
|
@@ -2520,6 +2520,7 @@ export namespace Meta {
|
|
|
2520
2520
|
* instance.
|
|
2521
2521
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
2522
2522
|
* @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
|
|
2523
|
+
* @since 2.22
|
|
2523
2524
|
*/
|
|
2524
2525
|
init(cancellable: Gio.Cancellable | null): boolean;
|
|
2525
2526
|
|
|
@@ -2563,6 +2564,7 @@ export namespace Meta {
|
|
|
2563
2564
|
* on the result of `g_object_new()`, regardless of whether it is in fact a new
|
|
2564
2565
|
* instance.
|
|
2565
2566
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
2567
|
+
* @since 2.22
|
|
2566
2568
|
* @virtual
|
|
2567
2569
|
*/
|
|
2568
2570
|
vfunc_init(cancellable: Gio.Cancellable | null): boolean;
|
|
@@ -2913,6 +2915,7 @@ export namespace Meta {
|
|
|
2913
2915
|
* deprecated virtual function. The default implementation will
|
|
2914
2916
|
* call `clutter_actor_add_child()`.
|
|
2915
2917
|
* @param actor the first {@link Clutter.Actor} to add
|
|
2918
|
+
* @deprecated since 1.10: Use `clutter_actor_add_child()` instead.
|
|
2916
2919
|
*/
|
|
2917
2920
|
add_actor(actor: A): void;
|
|
2918
2921
|
|
|
@@ -3000,6 +3003,7 @@ export namespace Meta {
|
|
|
3000
3003
|
* deprecated virtual function. The default implementation will call
|
|
3001
3004
|
* `clutter_actor_remove_child()`.
|
|
3002
3005
|
* @param actor a {@link Clutter.Actor}
|
|
3006
|
+
* @deprecated since 1.10: Use `clutter_actor_remove_child()` instead.
|
|
3003
3007
|
*/
|
|
3004
3008
|
remove_actor(actor: A): void;
|
|
3005
3009
|
|
|
@@ -3025,6 +3029,7 @@ export namespace Meta {
|
|
|
3025
3029
|
* deprecated virtual function. The default implementation will
|
|
3026
3030
|
* call `clutter_actor_add_child()`.
|
|
3027
3031
|
* @param actor the first {@link Clutter.Actor} to add
|
|
3032
|
+
* @deprecated since 1.10: Use `clutter_actor_add_child()` instead.
|
|
3028
3033
|
* @virtual
|
|
3029
3034
|
*/
|
|
3030
3035
|
vfunc_add(actor: A): void;
|
|
@@ -3086,6 +3091,7 @@ export namespace Meta {
|
|
|
3086
3091
|
* deprecated virtual function. The default implementation will call
|
|
3087
3092
|
* `clutter_actor_remove_child()`.
|
|
3088
3093
|
* @param actor a {@link Clutter.Actor}
|
|
3094
|
+
* @deprecated since 1.10: Use `clutter_actor_remove_child()` instead.
|
|
3089
3095
|
* @virtual
|
|
3090
3096
|
*/
|
|
3091
3097
|
vfunc_remove(actor: A): void;
|
|
@@ -3662,6 +3668,7 @@ export namespace Meta {
|
|
|
3662
3668
|
* deprecated virtual function. The default implementation will
|
|
3663
3669
|
* call `clutter_actor_add_child()`.
|
|
3664
3670
|
* @param actor the first {@link Clutter.Actor} to add
|
|
3671
|
+
* @deprecated since 1.10: Use `clutter_actor_add_child()` instead.
|
|
3665
3672
|
*/
|
|
3666
3673
|
add_actor(actor: A): void;
|
|
3667
3674
|
|
|
@@ -3749,6 +3756,7 @@ export namespace Meta {
|
|
|
3749
3756
|
* deprecated virtual function. The default implementation will call
|
|
3750
3757
|
* `clutter_actor_remove_child()`.
|
|
3751
3758
|
* @param actor a {@link Clutter.Actor}
|
|
3759
|
+
* @deprecated since 1.10: Use `clutter_actor_remove_child()` instead.
|
|
3752
3760
|
*/
|
|
3753
3761
|
remove_actor(actor: A): void;
|
|
3754
3762
|
|
|
@@ -3774,6 +3782,7 @@ export namespace Meta {
|
|
|
3774
3782
|
* deprecated virtual function. The default implementation will
|
|
3775
3783
|
* call `clutter_actor_add_child()`.
|
|
3776
3784
|
* @param actor the first {@link Clutter.Actor} to add
|
|
3785
|
+
* @deprecated since 1.10: Use `clutter_actor_add_child()` instead.
|
|
3777
3786
|
* @virtual
|
|
3778
3787
|
*/
|
|
3779
3788
|
vfunc_add(actor: A): void;
|
|
@@ -3835,6 +3844,7 @@ export namespace Meta {
|
|
|
3835
3844
|
* deprecated virtual function. The default implementation will call
|
|
3836
3845
|
* `clutter_actor_remove_child()`.
|
|
3837
3846
|
* @param actor a {@link Clutter.Actor}
|
|
3847
|
+
* @deprecated since 1.10: Use `clutter_actor_remove_child()` instead.
|
|
3838
3848
|
* @virtual
|
|
3839
3849
|
*/
|
|
3840
3850
|
vfunc_remove(actor: A): void;
|
|
@@ -4225,6 +4235,7 @@ export namespace Meta {
|
|
|
4225
4235
|
* instance.
|
|
4226
4236
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
4227
4237
|
* @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
|
|
4238
|
+
* @since 2.22
|
|
4228
4239
|
*/
|
|
4229
4240
|
init(cancellable: Gio.Cancellable | null): boolean;
|
|
4230
4241
|
|
|
@@ -4268,6 +4279,7 @@ export namespace Meta {
|
|
|
4268
4279
|
* on the result of `g_object_new()`, regardless of whether it is in fact a new
|
|
4269
4280
|
* instance.
|
|
4270
4281
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
4282
|
+
* @since 2.22
|
|
4271
4283
|
* @virtual
|
|
4272
4284
|
*/
|
|
4273
4285
|
vfunc_init(cancellable: Gio.Cancellable | null): boolean;
|
|
@@ -6690,6 +6702,7 @@ export namespace Meta {
|
|
|
6690
6702
|
* deprecated virtual function. The default implementation will
|
|
6691
6703
|
* call `clutter_actor_add_child()`.
|
|
6692
6704
|
* @param actor the first {@link Clutter.Actor} to add
|
|
6705
|
+
* @deprecated since 1.10: Use `clutter_actor_add_child()` instead.
|
|
6693
6706
|
*/
|
|
6694
6707
|
add_actor(actor: A): void;
|
|
6695
6708
|
|
|
@@ -6777,6 +6790,7 @@ export namespace Meta {
|
|
|
6777
6790
|
* deprecated virtual function. The default implementation will call
|
|
6778
6791
|
* `clutter_actor_remove_child()`.
|
|
6779
6792
|
* @param actor a {@link Clutter.Actor}
|
|
6793
|
+
* @deprecated since 1.10: Use `clutter_actor_remove_child()` instead.
|
|
6780
6794
|
*/
|
|
6781
6795
|
remove_actor(actor: A): void;
|
|
6782
6796
|
|
|
@@ -6802,6 +6816,7 @@ export namespace Meta {
|
|
|
6802
6816
|
* deprecated virtual function. The default implementation will
|
|
6803
6817
|
* call `clutter_actor_add_child()`.
|
|
6804
6818
|
* @param actor the first {@link Clutter.Actor} to add
|
|
6819
|
+
* @deprecated since 1.10: Use `clutter_actor_add_child()` instead.
|
|
6805
6820
|
* @virtual
|
|
6806
6821
|
*/
|
|
6807
6822
|
vfunc_add(actor: A): void;
|
|
@@ -6863,6 +6878,7 @@ export namespace Meta {
|
|
|
6863
6878
|
* deprecated virtual function. The default implementation will call
|
|
6864
6879
|
* `clutter_actor_remove_child()`.
|
|
6865
6880
|
* @param actor a {@link Clutter.Actor}
|
|
6881
|
+
* @deprecated since 1.10: Use `clutter_actor_remove_child()` instead.
|
|
6866
6882
|
* @virtual
|
|
6867
6883
|
*/
|
|
6868
6884
|
vfunc_remove(actor: A): void;
|
|
@@ -8201,6 +8217,7 @@ export namespace Meta {
|
|
|
8201
8217
|
* instance.
|
|
8202
8218
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
8203
8219
|
* @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
|
|
8220
|
+
* @since 2.22
|
|
8204
8221
|
*/
|
|
8205
8222
|
init(cancellable: Gio.Cancellable | null): boolean;
|
|
8206
8223
|
|
|
@@ -8244,6 +8261,7 @@ export namespace Meta {
|
|
|
8244
8261
|
* on the result of `g_object_new()`, regardless of whether it is in fact a new
|
|
8245
8262
|
* instance.
|
|
8246
8263
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
8264
|
+
* @since 2.22
|
|
8247
8265
|
* @virtual
|
|
8248
8266
|
*/
|
|
8249
8267
|
vfunc_init(cancellable: Gio.Cancellable | null): boolean;
|
|
@@ -8563,6 +8581,7 @@ export namespace Meta {
|
|
|
8563
8581
|
* deprecated virtual function. The default implementation will
|
|
8564
8582
|
* call `clutter_actor_add_child()`.
|
|
8565
8583
|
* @param actor the first {@link Clutter.Actor} to add
|
|
8584
|
+
* @deprecated since 1.10: Use `clutter_actor_add_child()` instead.
|
|
8566
8585
|
*/
|
|
8567
8586
|
add_actor(actor: A): void;
|
|
8568
8587
|
|
|
@@ -8650,6 +8669,7 @@ export namespace Meta {
|
|
|
8650
8669
|
* deprecated virtual function. The default implementation will call
|
|
8651
8670
|
* `clutter_actor_remove_child()`.
|
|
8652
8671
|
* @param actor a {@link Clutter.Actor}
|
|
8672
|
+
* @deprecated since 1.10: Use `clutter_actor_remove_child()` instead.
|
|
8653
8673
|
*/
|
|
8654
8674
|
remove_actor(actor: A): void;
|
|
8655
8675
|
|
|
@@ -8675,6 +8695,7 @@ export namespace Meta {
|
|
|
8675
8695
|
* deprecated virtual function. The default implementation will
|
|
8676
8696
|
* call `clutter_actor_add_child()`.
|
|
8677
8697
|
* @param actor the first {@link Clutter.Actor} to add
|
|
8698
|
+
* @deprecated since 1.10: Use `clutter_actor_add_child()` instead.
|
|
8678
8699
|
* @virtual
|
|
8679
8700
|
*/
|
|
8680
8701
|
vfunc_add(actor: A): void;
|
|
@@ -8736,6 +8757,7 @@ export namespace Meta {
|
|
|
8736
8757
|
* deprecated virtual function. The default implementation will call
|
|
8737
8758
|
* `clutter_actor_remove_child()`.
|
|
8738
8759
|
* @param actor a {@link Clutter.Actor}
|
|
8760
|
+
* @deprecated since 1.10: Use `clutter_actor_remove_child()` instead.
|
|
8739
8761
|
* @virtual
|
|
8740
8762
|
*/
|
|
8741
8763
|
vfunc_remove(actor: A): void;
|
|
@@ -9031,6 +9053,7 @@ export namespace Meta {
|
|
|
9031
9053
|
* deprecated virtual function. The default implementation will
|
|
9032
9054
|
* call `clutter_actor_add_child()`.
|
|
9033
9055
|
* @param actor the first {@link Clutter.Actor} to add
|
|
9056
|
+
* @deprecated since 1.10: Use `clutter_actor_add_child()` instead.
|
|
9034
9057
|
*/
|
|
9035
9058
|
add_actor(actor: A): void;
|
|
9036
9059
|
|
|
@@ -9118,6 +9141,7 @@ export namespace Meta {
|
|
|
9118
9141
|
* deprecated virtual function. The default implementation will call
|
|
9119
9142
|
* `clutter_actor_remove_child()`.
|
|
9120
9143
|
* @param actor a {@link Clutter.Actor}
|
|
9144
|
+
* @deprecated since 1.10: Use `clutter_actor_remove_child()` instead.
|
|
9121
9145
|
*/
|
|
9122
9146
|
remove_actor(actor: A): void;
|
|
9123
9147
|
|
|
@@ -9143,6 +9167,7 @@ export namespace Meta {
|
|
|
9143
9167
|
* deprecated virtual function. The default implementation will
|
|
9144
9168
|
* call `clutter_actor_add_child()`.
|
|
9145
9169
|
* @param actor the first {@link Clutter.Actor} to add
|
|
9170
|
+
* @deprecated since 1.10: Use `clutter_actor_add_child()` instead.
|
|
9146
9171
|
* @virtual
|
|
9147
9172
|
*/
|
|
9148
9173
|
vfunc_add(actor: A): void;
|
|
@@ -9204,6 +9229,7 @@ export namespace Meta {
|
|
|
9204
9229
|
* deprecated virtual function. The default implementation will call
|
|
9205
9230
|
* `clutter_actor_remove_child()`.
|
|
9206
9231
|
* @param actor a {@link Clutter.Actor}
|
|
9232
|
+
* @deprecated since 1.10: Use `clutter_actor_remove_child()` instead.
|
|
9207
9233
|
* @virtual
|
|
9208
9234
|
*/
|
|
9209
9235
|
vfunc_remove(actor: A): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/meta-12",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Meta-12",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "meta-12.js",
|
|
@@ -31,26 +31,26 @@
|
|
|
31
31
|
"test": "tsc --project tsconfig.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@girs/gjs": "^4.
|
|
35
|
-
"@girs/xlib-2.0": "^4.
|
|
36
|
-
"@girs/xfixes-4.0": "^4.
|
|
37
|
-
"@girs/gobject-2.0": "^4.
|
|
38
|
-
"@girs/glib-2.0": "^4.
|
|
39
|
-
"@girs/gdesktopenums-3.0": "^4.
|
|
40
|
-
"@girs/coglpango-12": "^4.
|
|
41
|
-
"@girs/pangocairo-1.0": "^4.
|
|
42
|
-
"@girs/cairo-1.0": "^4.
|
|
43
|
-
"@girs/pango-1.0": "^4.
|
|
44
|
-
"@girs/harfbuzz-0.0": "^4.
|
|
45
|
-
"@girs/freetype2-2.0": "^4.
|
|
46
|
-
"@girs/gio-2.0": "^4.
|
|
47
|
-
"@girs/gmodule-2.0": "^4.
|
|
48
|
-
"@girs/cogl-12": "^4.
|
|
49
|
-
"@girs/graphene-1.0": "^4.
|
|
50
|
-
"@girs/gl-1.0": "^4.
|
|
51
|
-
"@girs/clutter-12": "^4.
|
|
52
|
-
"@girs/json-1.0": "^4.
|
|
53
|
-
"@girs/atk-1.0": "^4.
|
|
34
|
+
"@girs/gjs": "^4.4.0",
|
|
35
|
+
"@girs/xlib-2.0": "^4.4.0",
|
|
36
|
+
"@girs/xfixes-4.0": "^4.4.0",
|
|
37
|
+
"@girs/gobject-2.0": "^4.4.0",
|
|
38
|
+
"@girs/glib-2.0": "^4.4.0",
|
|
39
|
+
"@girs/gdesktopenums-3.0": "^4.4.0",
|
|
40
|
+
"@girs/coglpango-12": "^4.4.0",
|
|
41
|
+
"@girs/pangocairo-1.0": "^4.4.0",
|
|
42
|
+
"@girs/cairo-1.0": "^4.4.0",
|
|
43
|
+
"@girs/pango-1.0": "^4.4.0",
|
|
44
|
+
"@girs/harfbuzz-0.0": "^4.4.0",
|
|
45
|
+
"@girs/freetype2-2.0": "^4.4.0",
|
|
46
|
+
"@girs/gio-2.0": "^4.4.0",
|
|
47
|
+
"@girs/gmodule-2.0": "^4.4.0",
|
|
48
|
+
"@girs/cogl-12": "^4.4.0",
|
|
49
|
+
"@girs/graphene-1.0": "^4.4.0",
|
|
50
|
+
"@girs/gl-1.0": "^4.4.0",
|
|
51
|
+
"@girs/clutter-12": "^4.4.0",
|
|
52
|
+
"@girs/json-1.0": "^4.4.0",
|
|
53
|
+
"@girs/atk-1.0": "^4.4.0" },
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"typescript": "*"
|
|
56
56
|
},
|