@girs/peas-2 2.0.0-4.0.0-beta.21 → 2.0.0-4.0.0-beta.24
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/package.json +6 -6
- package/peas-2.d.ts +310 -64
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Peas-2, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.
|
|
8
|
+
GJS TypeScript type definitions for Peas-2, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.24.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/peas-2",
|
|
3
|
-
"version": "2.0.0-4.0.0-beta.
|
|
3
|
+
"version": "2.0.0-4.0.0-beta.24",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Peas-2, generated from library version 2.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "peas-2.js",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"test": "tsc --project tsconfig.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@girs/gio-2.0": "^2.
|
|
35
|
-
"@girs/gjs": "^4.0.0-beta.
|
|
36
|
-
"@girs/glib-2.0": "^2.
|
|
37
|
-
"@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.
|
|
38
|
-
"@girs/gobject-2.0": "^2.
|
|
34
|
+
"@girs/gio-2.0": "^2.84.2-4.0.0-beta.24",
|
|
35
|
+
"@girs/gjs": "^4.0.0-beta.24",
|
|
36
|
+
"@girs/glib-2.0": "^2.84.2-4.0.0-beta.24",
|
|
37
|
+
"@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.24",
|
|
38
|
+
"@girs/gobject-2.0": "^2.84.2-4.0.0-beta.24"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"typescript": "*"
|
package/peas-2.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 Gio from '@girs/gio-2.0';
|
|
12
14
|
import type GObject from '@girs/gobject-2.0';
|
|
@@ -56,14 +58,12 @@ export namespace Peas {
|
|
|
56
58
|
(parameters: GObject.Parameter[]): GObject.Object;
|
|
57
59
|
}
|
|
58
60
|
namespace Engine {
|
|
59
|
-
// Signal
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
interface UnloadPlugin {
|
|
66
|
-
(info: PluginInfo): void;
|
|
61
|
+
// Signal signatures
|
|
62
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
63
|
+
'load-plugin': (arg0: PluginInfo) => void;
|
|
64
|
+
'unload-plugin': (arg0: PluginInfo) => void;
|
|
65
|
+
'notify::loaded-plugins': (pspec: GObject.ParamSpec) => void;
|
|
66
|
+
'notify::nonglobal-loaders': (pspec: GObject.ParamSpec) => void;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
// Constructor properties interface
|
|
@@ -148,6 +148,15 @@ export namespace Peas {
|
|
|
148
148
|
*/
|
|
149
149
|
get nonglobalLoaders(): boolean;
|
|
150
150
|
|
|
151
|
+
/**
|
|
152
|
+
* Compile-time signal type information.
|
|
153
|
+
*
|
|
154
|
+
* This instance property is generated only for TypeScript type checking.
|
|
155
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
156
|
+
* @internal
|
|
157
|
+
*/
|
|
158
|
+
$signals: Engine.SignalSignatures;
|
|
159
|
+
|
|
151
160
|
// Constructors
|
|
152
161
|
|
|
153
162
|
constructor(properties?: Partial<Engine.ConstructorProps>, ...args: any[]);
|
|
@@ -160,15 +169,21 @@ export namespace Peas {
|
|
|
160
169
|
|
|
161
170
|
// Signals
|
|
162
171
|
|
|
163
|
-
connect
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
+
connect<K extends keyof Engine.SignalSignatures>(
|
|
173
|
+
signal: K,
|
|
174
|
+
callback: GObject.SignalCallback<this, Engine.SignalSignatures[K]>,
|
|
175
|
+
): number;
|
|
176
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
177
|
+
connect_after<K extends keyof Engine.SignalSignatures>(
|
|
178
|
+
signal: K,
|
|
179
|
+
callback: GObject.SignalCallback<this, Engine.SignalSignatures[K]>,
|
|
180
|
+
): number;
|
|
181
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
182
|
+
emit<K extends keyof Engine.SignalSignatures>(
|
|
183
|
+
signal: K,
|
|
184
|
+
...args: GObject.GjsParameters<Engine.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
185
|
+
): void;
|
|
186
|
+
emit(signal: string, ...args: any[]): void;
|
|
172
187
|
|
|
173
188
|
// Static methods
|
|
174
189
|
|
|
@@ -237,11 +252,9 @@ export namespace Peas {
|
|
|
237
252
|
* Enable a loader, enables a loader for plugins.
|
|
238
253
|
*
|
|
239
254
|
* The C plugin loader is always enabled. The other plugin
|
|
240
|
-
* loaders are:
|
|
255
|
+
* loaders are: gjs, lua5.1, python and python3.
|
|
241
256
|
*
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
-
* For instance, the following code will enable Python 3 plugins
|
|
257
|
+
* For instance, the following code will enable Python 2 plugins
|
|
245
258
|
* to be loaded:
|
|
246
259
|
*
|
|
247
260
|
* ```c
|
|
@@ -530,7 +543,21 @@ export namespace Peas {
|
|
|
530
543
|
* @returns the data if found, or %NULL if no such data exists.
|
|
531
544
|
*/
|
|
532
545
|
get_data(key: string): any | null;
|
|
533
|
-
|
|
546
|
+
/**
|
|
547
|
+
* Gets a property of an object.
|
|
548
|
+
*
|
|
549
|
+
* The value can be:
|
|
550
|
+
* - 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)
|
|
551
|
+
* - a GObject.Value initialized with the expected type of the property
|
|
552
|
+
* - a GObject.Value initialized with a type to which the expected type of the property can be transformed
|
|
553
|
+
*
|
|
554
|
+
* In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
|
|
555
|
+
*
|
|
556
|
+
* Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
|
|
557
|
+
* @param property_name The name of the property to get
|
|
558
|
+
* @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
|
|
559
|
+
*/
|
|
560
|
+
get_property(property_name: string, value: GObject.Value | any): any;
|
|
534
561
|
/**
|
|
535
562
|
* This function gets back user data pointers stored via
|
|
536
563
|
* g_object_set_qdata().
|
|
@@ -658,7 +685,12 @@ export namespace Peas {
|
|
|
658
685
|
* @param data data to associate with that key
|
|
659
686
|
*/
|
|
660
687
|
set_data(key: string, data?: any | null): void;
|
|
661
|
-
|
|
688
|
+
/**
|
|
689
|
+
* Sets a property on an object.
|
|
690
|
+
* @param property_name The name of the property to set
|
|
691
|
+
* @param value The value to set the property to
|
|
692
|
+
*/
|
|
693
|
+
set_property(property_name: string, value: GObject.Value | any): void;
|
|
662
694
|
/**
|
|
663
695
|
* Remove a specified datum from the object's data associations,
|
|
664
696
|
* without invoking the association's destroy handler.
|
|
@@ -808,14 +840,40 @@ export namespace Peas {
|
|
|
808
840
|
* @param pspec
|
|
809
841
|
*/
|
|
810
842
|
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
843
|
+
/**
|
|
844
|
+
* 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.
|
|
845
|
+
* @param id Handler ID of the handler to be disconnected
|
|
846
|
+
*/
|
|
811
847
|
disconnect(id: number): void;
|
|
848
|
+
/**
|
|
849
|
+
* Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
|
|
850
|
+
* @param properties Object containing the properties to set
|
|
851
|
+
*/
|
|
812
852
|
set(properties: { [key: string]: any }): void;
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
853
|
+
/**
|
|
854
|
+
* Blocks a handler of an instance so it will not be called during any signal emissions
|
|
855
|
+
* @param id Handler ID of the handler to be blocked
|
|
856
|
+
*/
|
|
857
|
+
block_signal_handler(id: number): void;
|
|
858
|
+
/**
|
|
859
|
+
* Unblocks a handler so it will be called again during any signal emissions
|
|
860
|
+
* @param id Handler ID of the handler to be unblocked
|
|
861
|
+
*/
|
|
862
|
+
unblock_signal_handler(id: number): void;
|
|
863
|
+
/**
|
|
864
|
+
* Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
|
|
865
|
+
* @param detailedName Name of the signal to stop emission of
|
|
866
|
+
*/
|
|
867
|
+
stop_emission_by_name(detailedName: string): void;
|
|
816
868
|
}
|
|
817
869
|
|
|
818
870
|
namespace ExtensionBase {
|
|
871
|
+
// Signal signatures
|
|
872
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
873
|
+
'notify::data-dir': (pspec: GObject.ParamSpec) => void;
|
|
874
|
+
'notify::plugin-info': (pspec: GObject.ParamSpec) => void;
|
|
875
|
+
}
|
|
876
|
+
|
|
819
877
|
// Constructor properties interface
|
|
820
878
|
|
|
821
879
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
@@ -868,12 +926,39 @@ export namespace Peas {
|
|
|
868
926
|
*/
|
|
869
927
|
get pluginInfo(): PluginInfo;
|
|
870
928
|
|
|
929
|
+
/**
|
|
930
|
+
* Compile-time signal type information.
|
|
931
|
+
*
|
|
932
|
+
* This instance property is generated only for TypeScript type checking.
|
|
933
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
934
|
+
* @internal
|
|
935
|
+
*/
|
|
936
|
+
$signals: ExtensionBase.SignalSignatures;
|
|
937
|
+
|
|
871
938
|
// Constructors
|
|
872
939
|
|
|
873
940
|
constructor(properties?: Partial<ExtensionBase.ConstructorProps>, ...args: any[]);
|
|
874
941
|
|
|
875
942
|
_init(...args: any[]): void;
|
|
876
943
|
|
|
944
|
+
// Signals
|
|
945
|
+
|
|
946
|
+
connect<K extends keyof ExtensionBase.SignalSignatures>(
|
|
947
|
+
signal: K,
|
|
948
|
+
callback: GObject.SignalCallback<this, ExtensionBase.SignalSignatures[K]>,
|
|
949
|
+
): number;
|
|
950
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
951
|
+
connect_after<K extends keyof ExtensionBase.SignalSignatures>(
|
|
952
|
+
signal: K,
|
|
953
|
+
callback: GObject.SignalCallback<this, ExtensionBase.SignalSignatures[K]>,
|
|
954
|
+
): number;
|
|
955
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
956
|
+
emit<K extends keyof ExtensionBase.SignalSignatures>(
|
|
957
|
+
signal: K,
|
|
958
|
+
...args: GObject.GjsParameters<ExtensionBase.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
959
|
+
): void;
|
|
960
|
+
emit(signal: string, ...args: any[]): void;
|
|
961
|
+
|
|
877
962
|
// Methods
|
|
878
963
|
|
|
879
964
|
/**
|
|
@@ -890,14 +975,13 @@ export namespace Peas {
|
|
|
890
975
|
}
|
|
891
976
|
|
|
892
977
|
namespace ExtensionSet {
|
|
893
|
-
// Signal
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
(
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
(info: PluginInfo, extension: GObject.Object): void;
|
|
978
|
+
// Signal signatures
|
|
979
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
980
|
+
'extension-added': (arg0: PluginInfo, arg1: GObject.Object) => void;
|
|
981
|
+
'extension-removed': (arg0: PluginInfo, arg1: GObject.Object) => void;
|
|
982
|
+
'notify::construct-properties': (pspec: GObject.ParamSpec) => void;
|
|
983
|
+
'notify::engine': (pspec: GObject.ParamSpec) => void;
|
|
984
|
+
'notify::extension-type': (pspec: GObject.ParamSpec) => void;
|
|
901
985
|
}
|
|
902
986
|
|
|
903
987
|
// Constructor properties interface
|
|
@@ -977,6 +1061,15 @@ export namespace Peas {
|
|
|
977
1061
|
get extension_type(): GObject.GType;
|
|
978
1062
|
get extensionType(): GObject.GType;
|
|
979
1063
|
|
|
1064
|
+
/**
|
|
1065
|
+
* Compile-time signal type information.
|
|
1066
|
+
*
|
|
1067
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1068
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1069
|
+
* @internal
|
|
1070
|
+
*/
|
|
1071
|
+
$signals: ExtensionSet.SignalSignatures;
|
|
1072
|
+
|
|
980
1073
|
// Constructors
|
|
981
1074
|
|
|
982
1075
|
constructor(properties?: Partial<ExtensionSet.ConstructorProps>, ...args: any[]);
|
|
@@ -992,27 +1085,21 @@ export namespace Peas {
|
|
|
992
1085
|
|
|
993
1086
|
// Signals
|
|
994
1087
|
|
|
995
|
-
connect
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
connect(
|
|
999
|
-
signal: 'extension-added',
|
|
1000
|
-
callback: (_source: this, info: PluginInfo, extension: GObject.Object) => void,
|
|
1001
|
-
): number;
|
|
1002
|
-
connect_after(
|
|
1003
|
-
signal: 'extension-added',
|
|
1004
|
-
callback: (_source: this, info: PluginInfo, extension: GObject.Object) => void,
|
|
1088
|
+
connect<K extends keyof ExtensionSet.SignalSignatures>(
|
|
1089
|
+
signal: K,
|
|
1090
|
+
callback: GObject.SignalCallback<this, ExtensionSet.SignalSignatures[K]>,
|
|
1005
1091
|
): number;
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
signal:
|
|
1009
|
-
callback:
|
|
1092
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1093
|
+
connect_after<K extends keyof ExtensionSet.SignalSignatures>(
|
|
1094
|
+
signal: K,
|
|
1095
|
+
callback: GObject.SignalCallback<this, ExtensionSet.SignalSignatures[K]>,
|
|
1010
1096
|
): number;
|
|
1011
|
-
connect_after(
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1097
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1098
|
+
emit<K extends keyof ExtensionSet.SignalSignatures>(
|
|
1099
|
+
signal: K,
|
|
1100
|
+
...args: GObject.GjsParameters<ExtensionSet.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1101
|
+
): void;
|
|
1102
|
+
emit(signal: string, ...args: any[]): void;
|
|
1016
1103
|
|
|
1017
1104
|
// Methods
|
|
1018
1105
|
|
|
@@ -1242,7 +1329,21 @@ export namespace Peas {
|
|
|
1242
1329
|
* @returns the data if found, or %NULL if no such data exists.
|
|
1243
1330
|
*/
|
|
1244
1331
|
get_data(key: string): any | null;
|
|
1245
|
-
|
|
1332
|
+
/**
|
|
1333
|
+
* Gets a property of an object.
|
|
1334
|
+
*
|
|
1335
|
+
* The value can be:
|
|
1336
|
+
* - 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)
|
|
1337
|
+
* - a GObject.Value initialized with the expected type of the property
|
|
1338
|
+
* - a GObject.Value initialized with a type to which the expected type of the property can be transformed
|
|
1339
|
+
*
|
|
1340
|
+
* In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
|
|
1341
|
+
*
|
|
1342
|
+
* Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
|
|
1343
|
+
* @param property_name The name of the property to get
|
|
1344
|
+
* @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
|
|
1345
|
+
*/
|
|
1346
|
+
get_property(property_name: string, value: GObject.Value | any): any;
|
|
1246
1347
|
/**
|
|
1247
1348
|
* This function gets back user data pointers stored via
|
|
1248
1349
|
* g_object_set_qdata().
|
|
@@ -1370,7 +1471,12 @@ export namespace Peas {
|
|
|
1370
1471
|
* @param data data to associate with that key
|
|
1371
1472
|
*/
|
|
1372
1473
|
set_data(key: string, data?: any | null): void;
|
|
1373
|
-
|
|
1474
|
+
/**
|
|
1475
|
+
* Sets a property on an object.
|
|
1476
|
+
* @param property_name The name of the property to set
|
|
1477
|
+
* @param value The value to set the property to
|
|
1478
|
+
*/
|
|
1479
|
+
set_property(property_name: string, value: GObject.Value | any): void;
|
|
1374
1480
|
/**
|
|
1375
1481
|
* Remove a specified datum from the object's data associations,
|
|
1376
1482
|
* without invoking the association's destroy handler.
|
|
@@ -1520,14 +1626,43 @@ export namespace Peas {
|
|
|
1520
1626
|
* @param pspec
|
|
1521
1627
|
*/
|
|
1522
1628
|
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
1629
|
+
/**
|
|
1630
|
+
* 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.
|
|
1631
|
+
* @param id Handler ID of the handler to be disconnected
|
|
1632
|
+
*/
|
|
1523
1633
|
disconnect(id: number): void;
|
|
1634
|
+
/**
|
|
1635
|
+
* Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
|
|
1636
|
+
* @param properties Object containing the properties to set
|
|
1637
|
+
*/
|
|
1524
1638
|
set(properties: { [key: string]: any }): void;
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1639
|
+
/**
|
|
1640
|
+
* Blocks a handler of an instance so it will not be called during any signal emissions
|
|
1641
|
+
* @param id Handler ID of the handler to be blocked
|
|
1642
|
+
*/
|
|
1643
|
+
block_signal_handler(id: number): void;
|
|
1644
|
+
/**
|
|
1645
|
+
* Unblocks a handler so it will be called again during any signal emissions
|
|
1646
|
+
* @param id Handler ID of the handler to be unblocked
|
|
1647
|
+
*/
|
|
1648
|
+
unblock_signal_handler(id: number): void;
|
|
1649
|
+
/**
|
|
1650
|
+
* Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
|
|
1651
|
+
* @param detailedName Name of the signal to stop emission of
|
|
1652
|
+
*/
|
|
1653
|
+
stop_emission_by_name(detailedName: string): void;
|
|
1528
1654
|
}
|
|
1529
1655
|
|
|
1530
1656
|
namespace ObjectModule {
|
|
1657
|
+
// Signal signatures
|
|
1658
|
+
interface SignalSignatures extends GObject.TypeModule.SignalSignatures {
|
|
1659
|
+
'notify::local-linkage': (pspec: GObject.ParamSpec) => void;
|
|
1660
|
+
'notify::module-name': (pspec: GObject.ParamSpec) => void;
|
|
1661
|
+
'notify::path': (pspec: GObject.ParamSpec) => void;
|
|
1662
|
+
'notify::resident': (pspec: GObject.ParamSpec) => void;
|
|
1663
|
+
'notify::symbol': (pspec: GObject.ParamSpec) => void;
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1531
1666
|
// Constructor properties interface
|
|
1532
1667
|
|
|
1533
1668
|
interface ConstructorProps extends GObject.TypeModule.ConstructorProps, GObject.TypePlugin.ConstructorProps {
|
|
@@ -1568,12 +1703,39 @@ export namespace Peas {
|
|
|
1568
1703
|
get resident(): boolean;
|
|
1569
1704
|
get symbol(): string;
|
|
1570
1705
|
|
|
1706
|
+
/**
|
|
1707
|
+
* Compile-time signal type information.
|
|
1708
|
+
*
|
|
1709
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1710
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1711
|
+
* @internal
|
|
1712
|
+
*/
|
|
1713
|
+
$signals: ObjectModule.SignalSignatures;
|
|
1714
|
+
|
|
1571
1715
|
// Constructors
|
|
1572
1716
|
|
|
1573
1717
|
constructor(properties?: Partial<ObjectModule.ConstructorProps>, ...args: any[]);
|
|
1574
1718
|
|
|
1575
1719
|
_init(...args: any[]): void;
|
|
1576
1720
|
|
|
1721
|
+
// Signals
|
|
1722
|
+
|
|
1723
|
+
connect<K extends keyof ObjectModule.SignalSignatures>(
|
|
1724
|
+
signal: K,
|
|
1725
|
+
callback: GObject.SignalCallback<this, ObjectModule.SignalSignatures[K]>,
|
|
1726
|
+
): number;
|
|
1727
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1728
|
+
connect_after<K extends keyof ObjectModule.SignalSignatures>(
|
|
1729
|
+
signal: K,
|
|
1730
|
+
callback: GObject.SignalCallback<this, ObjectModule.SignalSignatures[K]>,
|
|
1731
|
+
): number;
|
|
1732
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1733
|
+
emit<K extends keyof ObjectModule.SignalSignatures>(
|
|
1734
|
+
signal: K,
|
|
1735
|
+
...args: GObject.GjsParameters<ObjectModule.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1736
|
+
): void;
|
|
1737
|
+
emit(signal: string, ...args: any[]): void;
|
|
1738
|
+
|
|
1577
1739
|
// Methods
|
|
1578
1740
|
|
|
1579
1741
|
/**
|
|
@@ -1750,7 +1912,21 @@ export namespace Peas {
|
|
|
1750
1912
|
* @returns the data if found, or %NULL if no such data exists.
|
|
1751
1913
|
*/
|
|
1752
1914
|
get_data(key: string): any | null;
|
|
1753
|
-
|
|
1915
|
+
/**
|
|
1916
|
+
* Gets a property of an object.
|
|
1917
|
+
*
|
|
1918
|
+
* The value can be:
|
|
1919
|
+
* - 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)
|
|
1920
|
+
* - a GObject.Value initialized with the expected type of the property
|
|
1921
|
+
* - a GObject.Value initialized with a type to which the expected type of the property can be transformed
|
|
1922
|
+
*
|
|
1923
|
+
* In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
|
|
1924
|
+
*
|
|
1925
|
+
* Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
|
|
1926
|
+
* @param property_name The name of the property to get
|
|
1927
|
+
* @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
|
|
1928
|
+
*/
|
|
1929
|
+
get_property(property_name: string, value: GObject.Value | any): any;
|
|
1754
1930
|
/**
|
|
1755
1931
|
* This function gets back user data pointers stored via
|
|
1756
1932
|
* g_object_set_qdata().
|
|
@@ -1878,7 +2054,12 @@ export namespace Peas {
|
|
|
1878
2054
|
* @param data data to associate with that key
|
|
1879
2055
|
*/
|
|
1880
2056
|
set_data(key: string, data?: any | null): void;
|
|
1881
|
-
|
|
2057
|
+
/**
|
|
2058
|
+
* Sets a property on an object.
|
|
2059
|
+
* @param property_name The name of the property to set
|
|
2060
|
+
* @param value The value to set the property to
|
|
2061
|
+
*/
|
|
2062
|
+
set_property(property_name: string, value: GObject.Value | any): void;
|
|
1882
2063
|
/**
|
|
1883
2064
|
* Remove a specified datum from the object's data associations,
|
|
1884
2065
|
* without invoking the association's destroy handler.
|
|
@@ -2028,14 +2209,52 @@ export namespace Peas {
|
|
|
2028
2209
|
* @param pspec
|
|
2029
2210
|
*/
|
|
2030
2211
|
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
2212
|
+
/**
|
|
2213
|
+
* 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.
|
|
2214
|
+
* @param id Handler ID of the handler to be disconnected
|
|
2215
|
+
*/
|
|
2031
2216
|
disconnect(id: number): void;
|
|
2217
|
+
/**
|
|
2218
|
+
* Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
|
|
2219
|
+
* @param properties Object containing the properties to set
|
|
2220
|
+
*/
|
|
2032
2221
|
set(properties: { [key: string]: any }): void;
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2222
|
+
/**
|
|
2223
|
+
* Blocks a handler of an instance so it will not be called during any signal emissions
|
|
2224
|
+
* @param id Handler ID of the handler to be blocked
|
|
2225
|
+
*/
|
|
2226
|
+
block_signal_handler(id: number): void;
|
|
2227
|
+
/**
|
|
2228
|
+
* Unblocks a handler so it will be called again during any signal emissions
|
|
2229
|
+
* @param id Handler ID of the handler to be unblocked
|
|
2230
|
+
*/
|
|
2231
|
+
unblock_signal_handler(id: number): void;
|
|
2232
|
+
/**
|
|
2233
|
+
* Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
|
|
2234
|
+
* @param detailedName Name of the signal to stop emission of
|
|
2235
|
+
*/
|
|
2236
|
+
stop_emission_by_name(detailedName: string): void;
|
|
2036
2237
|
}
|
|
2037
2238
|
|
|
2038
2239
|
namespace PluginInfo {
|
|
2240
|
+
// Signal signatures
|
|
2241
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
2242
|
+
'notify::authors': (pspec: GObject.ParamSpec) => void;
|
|
2243
|
+
'notify::builtin': (pspec: GObject.ParamSpec) => void;
|
|
2244
|
+
'notify::copyright': (pspec: GObject.ParamSpec) => void;
|
|
2245
|
+
'notify::dependencies': (pspec: GObject.ParamSpec) => void;
|
|
2246
|
+
'notify::description': (pspec: GObject.ParamSpec) => void;
|
|
2247
|
+
'notify::help-uri': (pspec: GObject.ParamSpec) => void;
|
|
2248
|
+
'notify::hidden': (pspec: GObject.ParamSpec) => void;
|
|
2249
|
+
'notify::icon-name': (pspec: GObject.ParamSpec) => void;
|
|
2250
|
+
'notify::loaded': (pspec: GObject.ParamSpec) => void;
|
|
2251
|
+
'notify::module-dir': (pspec: GObject.ParamSpec) => void;
|
|
2252
|
+
'notify::module-name': (pspec: GObject.ParamSpec) => void;
|
|
2253
|
+
'notify::name': (pspec: GObject.ParamSpec) => void;
|
|
2254
|
+
'notify::version': (pspec: GObject.ParamSpec) => void;
|
|
2255
|
+
'notify::website': (pspec: GObject.ParamSpec) => void;
|
|
2256
|
+
}
|
|
2257
|
+
|
|
2039
2258
|
// Constructor properties interface
|
|
2040
2259
|
|
|
2041
2260
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
@@ -2077,7 +2296,7 @@ export namespace Peas {
|
|
|
2077
2296
|
* Authors=Steve Frécinaux <code`istique`.net>
|
|
2078
2297
|
* Copyright=Copyright © 2009-10 Steve Frécinaux
|
|
2079
2298
|
* Website=https://wiki.gnome.org/Projects/Libpeas
|
|
2080
|
-
* Help=
|
|
2299
|
+
* Help=http://library.gnome.org/devel/libpeas/stable/
|
|
2081
2300
|
* Hidden=false
|
|
2082
2301
|
* ```
|
|
2083
2302
|
*/
|
|
@@ -2105,12 +2324,39 @@ export namespace Peas {
|
|
|
2105
2324
|
get version(): string;
|
|
2106
2325
|
get website(): string;
|
|
2107
2326
|
|
|
2327
|
+
/**
|
|
2328
|
+
* Compile-time signal type information.
|
|
2329
|
+
*
|
|
2330
|
+
* This instance property is generated only for TypeScript type checking.
|
|
2331
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
2332
|
+
* @internal
|
|
2333
|
+
*/
|
|
2334
|
+
$signals: PluginInfo.SignalSignatures;
|
|
2335
|
+
|
|
2108
2336
|
// Constructors
|
|
2109
2337
|
|
|
2110
2338
|
constructor(properties?: Partial<PluginInfo.ConstructorProps>, ...args: any[]);
|
|
2111
2339
|
|
|
2112
2340
|
_init(...args: any[]): void;
|
|
2113
2341
|
|
|
2342
|
+
// Signals
|
|
2343
|
+
|
|
2344
|
+
connect<K extends keyof PluginInfo.SignalSignatures>(
|
|
2345
|
+
signal: K,
|
|
2346
|
+
callback: GObject.SignalCallback<this, PluginInfo.SignalSignatures[K]>,
|
|
2347
|
+
): number;
|
|
2348
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
2349
|
+
connect_after<K extends keyof PluginInfo.SignalSignatures>(
|
|
2350
|
+
signal: K,
|
|
2351
|
+
callback: GObject.SignalCallback<this, PluginInfo.SignalSignatures[K]>,
|
|
2352
|
+
): number;
|
|
2353
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
2354
|
+
emit<K extends keyof PluginInfo.SignalSignatures>(
|
|
2355
|
+
signal: K,
|
|
2356
|
+
...args: GObject.GjsParameters<PluginInfo.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
2357
|
+
): void;
|
|
2358
|
+
emit(signal: string, ...args: any[]): void;
|
|
2359
|
+
|
|
2114
2360
|
// Static methods
|
|
2115
2361
|
|
|
2116
2362
|
static error_quark(): GLib.Quark;
|