@girs/gobject-2.0 2.80.0-4.0.0-beta.4 → 2.80.3-4.0.0-beta.6
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/gobject-2.0.d.ts +125 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for GObject-2.0, generated from library version 2.80.
|
|
8
|
+
GJS TypeScript type definitions for GObject-2.0, generated from library version 2.80.3 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.6.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/gobject-2.0.d.ts
CHANGED
|
@@ -3036,10 +3036,45 @@ export namespace GObject {
|
|
|
3036
3036
|
|
|
3037
3037
|
// Own virtual methods of GObject.Object
|
|
3038
3038
|
|
|
3039
|
+
/**
|
|
3040
|
+
* the `constructed` function is called by g_object_new() as the
|
|
3041
|
+
* final step of the object creation process. At the point of the call, all
|
|
3042
|
+
* construction properties have been set on the object. The purpose of this
|
|
3043
|
+
* call is to allow for object initialisation steps that can only be performed
|
|
3044
|
+
* after construction properties have been set. `constructed` implementors
|
|
3045
|
+
* should chain up to the `constructed` call of their parent class to allow it
|
|
3046
|
+
* to complete its initialisation.
|
|
3047
|
+
*/
|
|
3039
3048
|
vfunc_constructed(): void;
|
|
3049
|
+
/**
|
|
3050
|
+
* emits property change notification for a bunch
|
|
3051
|
+
* of properties. Overriding `dispatch_properties_changed` should be rarely
|
|
3052
|
+
* needed.
|
|
3053
|
+
* @param n_pspecs
|
|
3054
|
+
* @param pspecs
|
|
3055
|
+
*/
|
|
3040
3056
|
vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: ParamSpec): void;
|
|
3057
|
+
/**
|
|
3058
|
+
* the `dispose` function is supposed to drop all references to other
|
|
3059
|
+
* objects, but keep the instance otherwise intact, so that client method
|
|
3060
|
+
* invocations still work. It may be run multiple times (due to reference
|
|
3061
|
+
* loops). Before returning, `dispose` should chain up to the `dispose` method
|
|
3062
|
+
* of the parent class.
|
|
3063
|
+
*/
|
|
3041
3064
|
vfunc_dispose(): void;
|
|
3065
|
+
/**
|
|
3066
|
+
* instance finalization function, should finish the finalization of
|
|
3067
|
+
* the instance begun in `dispose` and chain up to the `finalize` method of the
|
|
3068
|
+
* parent class.
|
|
3069
|
+
*/
|
|
3042
3070
|
vfunc_finalize(): void;
|
|
3071
|
+
/**
|
|
3072
|
+
* the generic getter for all properties of this type. Should be
|
|
3073
|
+
* overridden for every type with properties.
|
|
3074
|
+
* @param property_id
|
|
3075
|
+
* @param value
|
|
3076
|
+
* @param pspec
|
|
3077
|
+
*/
|
|
3043
3078
|
vfunc_get_property(property_id: number, value: Value | any, pspec: ParamSpec): void;
|
|
3044
3079
|
/**
|
|
3045
3080
|
* Emits a "notify" signal for the property `property_name` on `object`.
|
|
@@ -3055,6 +3090,16 @@ export namespace GObject {
|
|
|
3055
3090
|
* @param pspec
|
|
3056
3091
|
*/
|
|
3057
3092
|
vfunc_notify(pspec: ParamSpec): void;
|
|
3093
|
+
/**
|
|
3094
|
+
* the generic setter for all properties of this type. Should be
|
|
3095
|
+
* overridden for every type with properties. If implementations of
|
|
3096
|
+
* `set_property` don't emit property change notification explicitly, this will
|
|
3097
|
+
* be done implicitly by the type system. However, if the notify signal is
|
|
3098
|
+
* emitted explicitly, the type system will not emit it a second time.
|
|
3099
|
+
* @param property_id
|
|
3100
|
+
* @param value
|
|
3101
|
+
* @param pspec
|
|
3102
|
+
*/
|
|
3058
3103
|
vfunc_set_property(property_id: number, value: Value | any, pspec: ParamSpec): void;
|
|
3059
3104
|
|
|
3060
3105
|
// Own methods of GObject.Object
|
|
@@ -3584,10 +3629,38 @@ export namespace GObject {
|
|
|
3584
3629
|
|
|
3585
3630
|
// Own virtual methods of GObject.ParamSpec
|
|
3586
3631
|
|
|
3632
|
+
/**
|
|
3633
|
+
* The instance finalization function (optional), should chain
|
|
3634
|
+
* up to the finalize method of the parent class.
|
|
3635
|
+
*/
|
|
3587
3636
|
vfunc_finalize(): void;
|
|
3637
|
+
/**
|
|
3638
|
+
* Checks if contents of `value` comply with the specifications
|
|
3639
|
+
* set out by this type, without modifying the value. This vfunc is optional.
|
|
3640
|
+
* If it isn't set, GObject will use `value_validate`. Since 2.74
|
|
3641
|
+
* @param value
|
|
3642
|
+
*/
|
|
3588
3643
|
vfunc_value_is_valid(value: Value | any): boolean;
|
|
3644
|
+
/**
|
|
3645
|
+
* Resets a `value` to the default value for this type
|
|
3646
|
+
* (recommended, the default is g_value_reset()), see
|
|
3647
|
+
* g_param_value_set_default().
|
|
3648
|
+
* @param value
|
|
3649
|
+
*/
|
|
3589
3650
|
vfunc_value_set_default(value: Value | any): void;
|
|
3651
|
+
/**
|
|
3652
|
+
* Ensures that the contents of `value` comply with the
|
|
3653
|
+
* specifications set out by this type (optional), see
|
|
3654
|
+
* g_param_value_validate().
|
|
3655
|
+
* @param value
|
|
3656
|
+
*/
|
|
3590
3657
|
vfunc_value_validate(value: Value | any): boolean;
|
|
3658
|
+
/**
|
|
3659
|
+
* Compares `value1` with `value2` according to this type
|
|
3660
|
+
* (recommended, the default is memcmp()), see g_param_values_cmp().
|
|
3661
|
+
* @param value1
|
|
3662
|
+
* @param value2
|
|
3663
|
+
*/
|
|
3591
3664
|
vfunc_values_cmp(value1: Value | any, value2: Value | any): number;
|
|
3592
3665
|
|
|
3593
3666
|
// Own methods of GObject.ParamSpec
|
|
@@ -3875,7 +3948,14 @@ export namespace GObject {
|
|
|
3875
3948
|
|
|
3876
3949
|
// Own virtual methods of GObject.TypeModule
|
|
3877
3950
|
|
|
3951
|
+
/**
|
|
3952
|
+
* loads the module and registers one or more types using
|
|
3953
|
+
* g_type_module_register_type().
|
|
3954
|
+
*/
|
|
3878
3955
|
vfunc_load(): boolean;
|
|
3956
|
+
/**
|
|
3957
|
+
* unloads the module
|
|
3958
|
+
*/
|
|
3879
3959
|
vfunc_unload(): void;
|
|
3880
3960
|
|
|
3881
3961
|
// Own methods of GObject.TypeModule
|
|
@@ -4317,10 +4397,45 @@ export namespace GObject {
|
|
|
4317
4397
|
* @param closure #GClosure to watch
|
|
4318
4398
|
*/
|
|
4319
4399
|
watch_closure(closure: Closure): void;
|
|
4400
|
+
/**
|
|
4401
|
+
* the `constructed` function is called by g_object_new() as the
|
|
4402
|
+
* final step of the object creation process. At the point of the call, all
|
|
4403
|
+
* construction properties have been set on the object. The purpose of this
|
|
4404
|
+
* call is to allow for object initialisation steps that can only be performed
|
|
4405
|
+
* after construction properties have been set. `constructed` implementors
|
|
4406
|
+
* should chain up to the `constructed` call of their parent class to allow it
|
|
4407
|
+
* to complete its initialisation.
|
|
4408
|
+
*/
|
|
4320
4409
|
vfunc_constructed(): void;
|
|
4410
|
+
/**
|
|
4411
|
+
* emits property change notification for a bunch
|
|
4412
|
+
* of properties. Overriding `dispatch_properties_changed` should be rarely
|
|
4413
|
+
* needed.
|
|
4414
|
+
* @param n_pspecs
|
|
4415
|
+
* @param pspecs
|
|
4416
|
+
*/
|
|
4321
4417
|
vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: ParamSpec): void;
|
|
4418
|
+
/**
|
|
4419
|
+
* the `dispose` function is supposed to drop all references to other
|
|
4420
|
+
* objects, but keep the instance otherwise intact, so that client method
|
|
4421
|
+
* invocations still work. It may be run multiple times (due to reference
|
|
4422
|
+
* loops). Before returning, `dispose` should chain up to the `dispose` method
|
|
4423
|
+
* of the parent class.
|
|
4424
|
+
*/
|
|
4322
4425
|
vfunc_dispose(): void;
|
|
4426
|
+
/**
|
|
4427
|
+
* instance finalization function, should finish the finalization of
|
|
4428
|
+
* the instance begun in `dispose` and chain up to the `finalize` method of the
|
|
4429
|
+
* parent class.
|
|
4430
|
+
*/
|
|
4323
4431
|
vfunc_finalize(): void;
|
|
4432
|
+
/**
|
|
4433
|
+
* the generic getter for all properties of this type. Should be
|
|
4434
|
+
* overridden for every type with properties.
|
|
4435
|
+
* @param property_id
|
|
4436
|
+
* @param value
|
|
4437
|
+
* @param pspec
|
|
4438
|
+
*/
|
|
4324
4439
|
vfunc_get_property(property_id: number, value: Value | any, pspec: ParamSpec): void;
|
|
4325
4440
|
/**
|
|
4326
4441
|
* Emits a "notify" signal for the property `property_name` on `object`.
|
|
@@ -4336,6 +4451,16 @@ export namespace GObject {
|
|
|
4336
4451
|
* @param pspec
|
|
4337
4452
|
*/
|
|
4338
4453
|
vfunc_notify(pspec: ParamSpec): void;
|
|
4454
|
+
/**
|
|
4455
|
+
* the generic setter for all properties of this type. Should be
|
|
4456
|
+
* overridden for every type with properties. If implementations of
|
|
4457
|
+
* `set_property` don't emit property change notification explicitly, this will
|
|
4458
|
+
* be done implicitly by the type system. However, if the notify signal is
|
|
4459
|
+
* emitted explicitly, the type system will not emit it a second time.
|
|
4460
|
+
* @param property_id
|
|
4461
|
+
* @param value
|
|
4462
|
+
* @param pspec
|
|
4463
|
+
*/
|
|
4339
4464
|
vfunc_set_property(property_id: number, value: Value | any, pspec: ParamSpec): void;
|
|
4340
4465
|
disconnect(id: number): void;
|
|
4341
4466
|
set(properties: { [key: string]: any }): void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gobject-2.0",
|
|
3
|
-
"version": "2.80.
|
|
4
|
-
"description": "GJS TypeScript type definitions for GObject-2.0, generated from library version 2.80.
|
|
3
|
+
"version": "2.80.3-4.0.0-beta.6",
|
|
4
|
+
"description": "GJS TypeScript type definitions for GObject-2.0, generated from library version 2.80.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gobject-2.0.js",
|
|
7
7
|
"main": "gobject-2.0.js",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
|
-
"test": "
|
|
26
|
+
"test": "tsc --project tsconfig.json"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@girs/gjs": "^4.0.0-beta.
|
|
30
|
-
"@girs/glib-2.0": "^2.80.
|
|
29
|
+
"@girs/gjs": "^4.0.0-beta.6",
|
|
30
|
+
"@girs/glib-2.0": "^2.80.3-4.0.0-beta.6"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"typescript": "*"
|