@girs/gobject-2.0 2.83.3-4.0.0-beta.21 → 2.84.0-4.0.0-beta.23
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 +128 -20
- package/package.json +4 -4
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.
|
|
8
|
+
GJS TypeScript type definitions for GObject-2.0, generated from library version 2.84.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.23.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/gobject-2.0.d.ts
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
* The based EJS template file is used for the generated .d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
+
import '@girs/gjs';
|
|
11
|
+
|
|
10
12
|
// Module dependencies
|
|
11
13
|
import type GLib from '@girs/glib-2.0';
|
|
12
14
|
|
|
@@ -2750,20 +2752,23 @@ export namespace GObject {
|
|
|
2750
2752
|
*/
|
|
2751
2753
|
NO_HOOKS,
|
|
2752
2754
|
/**
|
|
2753
|
-
* Varargs signal emission will always collect the
|
|
2754
|
-
*
|
|
2755
|
+
* Varargs signal emission will always collect the arguments, even if there
|
|
2756
|
+
* are no signal handlers connected.
|
|
2755
2757
|
*/
|
|
2756
2758
|
MUST_COLLECT,
|
|
2757
2759
|
/**
|
|
2758
|
-
* The signal is deprecated and will be removed
|
|
2759
|
-
*
|
|
2760
|
-
*
|
|
2760
|
+
* The signal is deprecated and will be removed in a future version.
|
|
2761
|
+
*
|
|
2762
|
+
* A warning will be generated if it is connected while running with
|
|
2763
|
+
* `G_ENABLE_DIAGNOSTIC=1`.
|
|
2761
2764
|
*/
|
|
2762
2765
|
DEPRECATED,
|
|
2763
2766
|
/**
|
|
2764
|
-
*
|
|
2765
|
-
*
|
|
2766
|
-
*
|
|
2767
|
+
* The signal accumulator was invoked for the first time.
|
|
2768
|
+
*
|
|
2769
|
+
* This flag is only used in [callback`GObject`.SignalAccumulator][accumulator functions]
|
|
2770
|
+
* for the `run_type` field of the [struct`GObject`.SignalInvocationHint], to
|
|
2771
|
+
* mark the first call to the accumulator function for a signal emission.
|
|
2767
2772
|
*/
|
|
2768
2773
|
ACCUMULATOR_FIRST_RUN,
|
|
2769
2774
|
}
|
|
@@ -3594,7 +3599,21 @@ export namespace GObject {
|
|
|
3594
3599
|
* @returns the data if found, or %NULL if no such data exists.
|
|
3595
3600
|
*/
|
|
3596
3601
|
get_data(key: string): any | null;
|
|
3597
|
-
|
|
3602
|
+
/**
|
|
3603
|
+
* Gets a property of an object.
|
|
3604
|
+
*
|
|
3605
|
+
* The value can be:
|
|
3606
|
+
* - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
|
|
3607
|
+
* - a GObject.Value initialized with the expected type of the property
|
|
3608
|
+
* - a GObject.Value initialized with a type to which the expected type of the property can be transformed
|
|
3609
|
+
*
|
|
3610
|
+
* In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
|
|
3611
|
+
*
|
|
3612
|
+
* Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
|
|
3613
|
+
* @param property_name The name of the property to get
|
|
3614
|
+
* @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
|
|
3615
|
+
*/
|
|
3616
|
+
get_property(property_name: string, value: Value | any): any;
|
|
3598
3617
|
/**
|
|
3599
3618
|
* This function gets back user data pointers stored via
|
|
3600
3619
|
* g_object_set_qdata().
|
|
@@ -3722,7 +3741,12 @@ export namespace GObject {
|
|
|
3722
3741
|
* @param data data to associate with that key
|
|
3723
3742
|
*/
|
|
3724
3743
|
set_data(key: string, data?: any | null): void;
|
|
3725
|
-
|
|
3744
|
+
/**
|
|
3745
|
+
* Sets a property on an object.
|
|
3746
|
+
* @param property_name The name of the property to set
|
|
3747
|
+
* @param value The value to set the property to
|
|
3748
|
+
*/
|
|
3749
|
+
set_property(property_name: string, value: Value | any): void;
|
|
3726
3750
|
/**
|
|
3727
3751
|
* Remove a specified datum from the object's data associations,
|
|
3728
3752
|
* without invoking the association's destroy handler.
|
|
@@ -3807,11 +3831,31 @@ export namespace GObject {
|
|
|
3807
3831
|
* @param closure #GClosure to watch
|
|
3808
3832
|
*/
|
|
3809
3833
|
watch_closure(closure: Closure): void;
|
|
3834
|
+
/**
|
|
3835
|
+
* Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.
|
|
3836
|
+
* @param id Handler ID of the handler to be disconnected
|
|
3837
|
+
*/
|
|
3810
3838
|
disconnect(id: number): void;
|
|
3839
|
+
/**
|
|
3840
|
+
* Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
|
|
3841
|
+
* @param properties Object containing the properties to set
|
|
3842
|
+
*/
|
|
3811
3843
|
set(properties: { [key: string]: any }): void;
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3844
|
+
/**
|
|
3845
|
+
* Blocks a handler of an instance so it will not be called during any signal emissions
|
|
3846
|
+
* @param id Handler ID of the handler to be blocked
|
|
3847
|
+
*/
|
|
3848
|
+
block_signal_handler(id: number): void;
|
|
3849
|
+
/**
|
|
3850
|
+
* Unblocks a handler so it will be called again during any signal emissions
|
|
3851
|
+
* @param id Handler ID of the handler to be unblocked
|
|
3852
|
+
*/
|
|
3853
|
+
unblock_signal_handler(id: number): void;
|
|
3854
|
+
/**
|
|
3855
|
+
* Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
|
|
3856
|
+
* @param detailedName Name of the signal to stop emission of
|
|
3857
|
+
*/
|
|
3858
|
+
stop_emission_by_name(detailedName: string): void;
|
|
3815
3859
|
}
|
|
3816
3860
|
|
|
3817
3861
|
/**
|
|
@@ -4096,11 +4140,19 @@ export namespace GObject {
|
|
|
4096
4140
|
flags: ParamFlags | number,
|
|
4097
4141
|
boxedType: GType<T> | { $gtype: GType<T> },
|
|
4098
4142
|
): ParamSpec<T>;
|
|
4143
|
+
/**
|
|
4144
|
+
* Creates a new GParamSpecObject instance specifying a property holding object references.
|
|
4145
|
+
* @param name The name of the property
|
|
4146
|
+
* @param nick A human readable name for the property (can be null)
|
|
4147
|
+
* @param blurb A longer description of the property (can be null)
|
|
4148
|
+
* @param flags The flags for this property (e.g. READABLE, WRITABLE)
|
|
4149
|
+
* @param objectType The GType of the object
|
|
4150
|
+
*/
|
|
4099
4151
|
static object<T>(
|
|
4100
4152
|
name: string,
|
|
4101
4153
|
nick: string | null,
|
|
4102
4154
|
blurb: string | null,
|
|
4103
|
-
flags:
|
|
4155
|
+
flags: ParamFlags | number,
|
|
4104
4156
|
objectType: GType<T> | { $gtype: GType<T> },
|
|
4105
4157
|
): ParamSpec<T>;
|
|
4106
4158
|
/**
|
|
@@ -4118,7 +4170,19 @@ export namespace GObject {
|
|
|
4118
4170
|
flags: ParamFlags | number,
|
|
4119
4171
|
paramType: any,
|
|
4120
4172
|
): ParamSpec;
|
|
4121
|
-
|
|
4173
|
+
/**
|
|
4174
|
+
* Creates a new ParamSpec instance for JavaScript object properties.
|
|
4175
|
+
* @param name The name of the property
|
|
4176
|
+
* @param nick A human readable name for the property (can be null)
|
|
4177
|
+
* @param blurb A longer description of the property (can be null)
|
|
4178
|
+
* @param flags The flags for this property (e.g. READABLE, WRITABLE)
|
|
4179
|
+
*/
|
|
4180
|
+
static jsobject<T>(
|
|
4181
|
+
name: string,
|
|
4182
|
+
nick: string | null,
|
|
4183
|
+
blurb: string | null,
|
|
4184
|
+
flags: ParamFlags | number,
|
|
4185
|
+
): ParamSpec<T>;
|
|
4122
4186
|
|
|
4123
4187
|
// Virtual methods
|
|
4124
4188
|
|
|
@@ -4235,6 +4299,11 @@ export namespace GObject {
|
|
|
4235
4299
|
* @returns the user data pointer set, or %NULL
|
|
4236
4300
|
*/
|
|
4237
4301
|
steal_qdata(quark: GLib.Quark): any | null;
|
|
4302
|
+
/**
|
|
4303
|
+
* Registers a property override for a property introduced in a parent class or inherited interface.
|
|
4304
|
+
* @param name The name of the property to override
|
|
4305
|
+
* @param oclass The object class or type that contains the property to override
|
|
4306
|
+
*/
|
|
4238
4307
|
override(name: string, oclass: Object | Function | GType): void;
|
|
4239
4308
|
}
|
|
4240
4309
|
|
|
@@ -4687,7 +4756,21 @@ export namespace GObject {
|
|
|
4687
4756
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4688
4757
|
*/
|
|
4689
4758
|
get_data(key: string): any | null;
|
|
4690
|
-
|
|
4759
|
+
/**
|
|
4760
|
+
* Gets a property of an object.
|
|
4761
|
+
*
|
|
4762
|
+
* The value can be:
|
|
4763
|
+
* - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
|
|
4764
|
+
* - a GObject.Value initialized with the expected type of the property
|
|
4765
|
+
* - a GObject.Value initialized with a type to which the expected type of the property can be transformed
|
|
4766
|
+
*
|
|
4767
|
+
* In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
|
|
4768
|
+
*
|
|
4769
|
+
* Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
|
|
4770
|
+
* @param property_name The name of the property to get
|
|
4771
|
+
* @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
|
|
4772
|
+
*/
|
|
4773
|
+
get_property(property_name: string, value: Value | any): any;
|
|
4691
4774
|
/**
|
|
4692
4775
|
* This function gets back user data pointers stored via
|
|
4693
4776
|
* g_object_set_qdata().
|
|
@@ -4815,7 +4898,12 @@ export namespace GObject {
|
|
|
4815
4898
|
* @param data data to associate with that key
|
|
4816
4899
|
*/
|
|
4817
4900
|
set_data(key: string, data?: any | null): void;
|
|
4818
|
-
|
|
4901
|
+
/**
|
|
4902
|
+
* Sets a property on an object.
|
|
4903
|
+
* @param property_name The name of the property to set
|
|
4904
|
+
* @param value The value to set the property to
|
|
4905
|
+
*/
|
|
4906
|
+
set_property(property_name: string, value: Value | any): void;
|
|
4819
4907
|
/**
|
|
4820
4908
|
* Remove a specified datum from the object's data associations,
|
|
4821
4909
|
* without invoking the association's destroy handler.
|
|
@@ -4965,11 +5053,31 @@ export namespace GObject {
|
|
|
4965
5053
|
* @param pspec
|
|
4966
5054
|
*/
|
|
4967
5055
|
vfunc_set_property(property_id: number, value: Value | any, pspec: ParamSpec): void;
|
|
5056
|
+
/**
|
|
5057
|
+
* Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.
|
|
5058
|
+
* @param id Handler ID of the handler to be disconnected
|
|
5059
|
+
*/
|
|
4968
5060
|
disconnect(id: number): void;
|
|
5061
|
+
/**
|
|
5062
|
+
* Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
|
|
5063
|
+
* @param properties Object containing the properties to set
|
|
5064
|
+
*/
|
|
4969
5065
|
set(properties: { [key: string]: any }): void;
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
5066
|
+
/**
|
|
5067
|
+
* Blocks a handler of an instance so it will not be called during any signal emissions
|
|
5068
|
+
* @param id Handler ID of the handler to be blocked
|
|
5069
|
+
*/
|
|
5070
|
+
block_signal_handler(id: number): void;
|
|
5071
|
+
/**
|
|
5072
|
+
* Unblocks a handler so it will be called again during any signal emissions
|
|
5073
|
+
* @param id Handler ID of the handler to be unblocked
|
|
5074
|
+
*/
|
|
5075
|
+
unblock_signal_handler(id: number): void;
|
|
5076
|
+
/**
|
|
5077
|
+
* Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
|
|
5078
|
+
* @param detailedName Name of the signal to stop emission of
|
|
5079
|
+
*/
|
|
5080
|
+
stop_emission_by_name(detailedName: string): void;
|
|
4973
5081
|
}
|
|
4974
5082
|
|
|
4975
5083
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gobject-2.0",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "GJS TypeScript type definitions for GObject-2.0, generated from library version 2.
|
|
3
|
+
"version": "2.84.0-4.0.0-beta.23",
|
|
4
|
+
"description": "GJS TypeScript type definitions for GObject-2.0, generated from library version 2.84.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gobject-2.0.js",
|
|
7
7
|
"main": "gobject-2.0.js",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"test": "tsc --project tsconfig.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@girs/gjs": "^4.0.0-beta.
|
|
35
|
-
"@girs/glib-2.0": "^2.
|
|
34
|
+
"@girs/gjs": "^4.0.0-beta.23",
|
|
35
|
+
"@girs/glib-2.0": "^2.84.0-4.0.0-beta.23"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"typescript": "*"
|