@girs/plasma-1.0 1.0.0-3.0.0-beta.12
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 +31 -0
- package/package.json +56 -0
- package/plasma-1.0.cjs +9 -0
- package/plasma-1.0.d.cts +546 -0
- package/plasma-1.0.d.ts +551 -0
- package/plasma-1.0.js +8 -0
- package/tsconfig.doc.json +19 -0
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
# Plasma-1.0
|
|
3
|
+
|
|
4
|
+
GJS TypeScript type definitions for Plasma-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gjs) v3.0.0-beta.12.
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
To use this type definitions, install them with NPM like this:
|
|
9
|
+
```bash
|
|
10
|
+
npm install @girs/plasma-1.0
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
You can import this package into your project like this:
|
|
16
|
+
```ts
|
|
17
|
+
import Plasma from '@girs/plasma-1.0';
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Or if you prefer CommonJS, you can also use this:
|
|
21
|
+
```ts
|
|
22
|
+
const Plasma = require('@girs/plasma-1.0');
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
If you use [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules), you can also import this module like you would do this in JavaScript:
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
import Plasma from 'gi://Plasma?version=1.0';
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Depending on your project configuration, it is recommended to use a bundler like [esbuild](https://esbuild.github.io/). You can find examples using different bundlers [here](https://github.com/gjsify/ts-for-gir/tree/main/examples).
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@girs/plasma-1.0",
|
|
3
|
+
"version": "1.0.0-3.0.0-beta.12",
|
|
4
|
+
"description": "GJS TypeScript type definitions for Plasma-1.0, generated from library version 1.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "plasma-1.0.js",
|
|
7
|
+
"main": "plasma-1.0.js",
|
|
8
|
+
"typedoc": {
|
|
9
|
+
"entryPoint": "./plasma-1.0.d.ts",
|
|
10
|
+
"readmeFile": "./README.md",
|
|
11
|
+
"displayName": "Plasma-1.0",
|
|
12
|
+
"tsconfig": "./tsconfig.doc.json"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": {
|
|
17
|
+
"types": "./plasma-1.0.d.ts",
|
|
18
|
+
"default": "./plasma-1.0.js"
|
|
19
|
+
},
|
|
20
|
+
"require": {
|
|
21
|
+
"types": "./plasma-1.0.d.cts",
|
|
22
|
+
"default": "./plasma-1.0.cjs"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"test": "yarn test:esm && yarn test:cjs",
|
|
28
|
+
"test:esm": "tsc --noEmit plasma-1.0.d.ts",
|
|
29
|
+
"test:cjs": "tsc --noEmit plasma-1.0.d.cts"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@girs/arrow-1.0": "^7.0.0-3.0.0-beta.12",
|
|
33
|
+
"@girs/arrowcuda-1.0": "^1.0.0-3.0.0-beta.12",
|
|
34
|
+
"@girs/gio-2.0": "^2.75.1-3.0.0-beta.12",
|
|
35
|
+
"@girs/glib-2.0": "^2.75.1-3.0.0-beta.12",
|
|
36
|
+
"@girs/gobject-2.0": "^2.75.1-3.0.0-beta.12"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"typescript": "^*"
|
|
40
|
+
},
|
|
41
|
+
"keywords": [
|
|
42
|
+
"Gir",
|
|
43
|
+
"TypeScript",
|
|
44
|
+
"Plasma-1.0"
|
|
45
|
+
],
|
|
46
|
+
"author": "ts-for-gir",
|
|
47
|
+
"license": "Apache-2.0",
|
|
48
|
+
"repository": {
|
|
49
|
+
"type": "git",
|
|
50
|
+
"url": "git+https://github.com/gjsify/ts-for-gir.git"
|
|
51
|
+
},
|
|
52
|
+
"bugs": {
|
|
53
|
+
"url": "https://github.com/gjsify/ts-for-gir/issues"
|
|
54
|
+
},
|
|
55
|
+
"homepage": "https://github.com/gjsify/ts-for-gir#readme"
|
|
56
|
+
}
|
package/plasma-1.0.cjs
ADDED
package/plasma-1.0.d.cts
ADDED
|
@@ -0,0 +1,546 @@
|
|
|
1
|
+
|
|
2
|
+
/*
|
|
3
|
+
* Type Definitions for Gjs (https://gjs.guide/)
|
|
4
|
+
*
|
|
5
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
6
|
+
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gjs
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Plasma-1.0
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type ArrowCUDA from '@girs/arrowcuda-1.0';
|
|
13
|
+
import type Arrow from '@girs/arrow-1.0';
|
|
14
|
+
import type Gio from '@girs/gio-2.0';
|
|
15
|
+
import type GObject from '@girs/gobject-2.0';
|
|
16
|
+
import type GLib from '@girs/glib-2.0';
|
|
17
|
+
|
|
18
|
+
export module Client {
|
|
19
|
+
|
|
20
|
+
// Constructor properties interface
|
|
21
|
+
|
|
22
|
+
export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
23
|
+
|
|
24
|
+
// Own constructor properties of Plasma-1.0.Plasma.Client
|
|
25
|
+
|
|
26
|
+
client?: any | null
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface Client {
|
|
32
|
+
|
|
33
|
+
// Own properties of Plasma-1.0.Plasma.Client
|
|
34
|
+
|
|
35
|
+
readonly client: any
|
|
36
|
+
|
|
37
|
+
// Own fields of Plasma-1.0.Plasma.Client
|
|
38
|
+
|
|
39
|
+
parent_instance: GObject.Object
|
|
40
|
+
|
|
41
|
+
// Owm methods of Plasma-1.0.Plasma.Client
|
|
42
|
+
|
|
43
|
+
create(id: ObjectID, data_size: number, options: ClientCreateOptions | null): CreatedObject | null
|
|
44
|
+
disconnect(): boolean
|
|
45
|
+
refer_object(id: ObjectID, timeout_ms: number): ReferredObject | null
|
|
46
|
+
|
|
47
|
+
// Class property signals of Plasma-1.0.Plasma.Client
|
|
48
|
+
|
|
49
|
+
connect(sigName: "notify::client", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
|
|
50
|
+
connect_after(sigName: "notify::client", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
|
|
51
|
+
emit(sigName: "notify::client", ...args: any[]): void
|
|
52
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
53
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
54
|
+
emit(sigName: string, ...args: any[]): void
|
|
55
|
+
disconnect(id: number): void
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export class Client extends GObject.Object {
|
|
59
|
+
|
|
60
|
+
// Own properties of Plasma-1.0.Plasma.Client
|
|
61
|
+
|
|
62
|
+
static name: string
|
|
63
|
+
static $gtype: GObject.GType<Client>
|
|
64
|
+
|
|
65
|
+
// Constructors of Plasma-1.0.Plasma.Client
|
|
66
|
+
|
|
67
|
+
constructor(config?: Client.ConstructorProperties)
|
|
68
|
+
constructor(store_socket_name: string | null, options: ClientOptions | null)
|
|
69
|
+
static new(store_socket_name: string | null, options: ClientOptions | null): Client
|
|
70
|
+
_init(config?: Client.ConstructorProperties): void
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export module ClientCreateOptions {
|
|
74
|
+
|
|
75
|
+
// Constructor properties interface
|
|
76
|
+
|
|
77
|
+
export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
78
|
+
|
|
79
|
+
// Own constructor properties of Plasma-1.0.Plasma.ClientCreateOptions
|
|
80
|
+
|
|
81
|
+
gpu_device?: number | null
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface ClientCreateOptions {
|
|
87
|
+
|
|
88
|
+
// Own properties of Plasma-1.0.Plasma.ClientCreateOptions
|
|
89
|
+
|
|
90
|
+
gpu_device: number
|
|
91
|
+
|
|
92
|
+
// Own fields of Plasma-1.0.Plasma.ClientCreateOptions
|
|
93
|
+
|
|
94
|
+
parent_instance: GObject.Object
|
|
95
|
+
|
|
96
|
+
// Owm methods of Plasma-1.0.Plasma.ClientCreateOptions
|
|
97
|
+
|
|
98
|
+
get_metadata(): Uint8Array | null
|
|
99
|
+
set_metadata(metadata: Uint8Array | null): void
|
|
100
|
+
|
|
101
|
+
// Class property signals of Plasma-1.0.Plasma.ClientCreateOptions
|
|
102
|
+
|
|
103
|
+
connect(sigName: "notify::gpu-device", callback: (($obj: ClientCreateOptions, pspec: GObject.ParamSpec) => void)): number
|
|
104
|
+
connect_after(sigName: "notify::gpu-device", callback: (($obj: ClientCreateOptions, pspec: GObject.ParamSpec) => void)): number
|
|
105
|
+
emit(sigName: "notify::gpu-device", ...args: any[]): void
|
|
106
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
107
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
108
|
+
emit(sigName: string, ...args: any[]): void
|
|
109
|
+
disconnect(id: number): void
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export class ClientCreateOptions extends GObject.Object {
|
|
113
|
+
|
|
114
|
+
// Own properties of Plasma-1.0.Plasma.ClientCreateOptions
|
|
115
|
+
|
|
116
|
+
static name: string
|
|
117
|
+
static $gtype: GObject.GType<ClientCreateOptions>
|
|
118
|
+
|
|
119
|
+
// Constructors of Plasma-1.0.Plasma.ClientCreateOptions
|
|
120
|
+
|
|
121
|
+
constructor(config?: ClientCreateOptions.ConstructorProperties)
|
|
122
|
+
constructor()
|
|
123
|
+
static new(): ClientCreateOptions
|
|
124
|
+
_init(config?: ClientCreateOptions.ConstructorProperties): void
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export module ClientOptions {
|
|
128
|
+
|
|
129
|
+
// Constructor properties interface
|
|
130
|
+
|
|
131
|
+
export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
132
|
+
|
|
133
|
+
// Own constructor properties of Plasma-1.0.Plasma.ClientOptions
|
|
134
|
+
|
|
135
|
+
n_retries?: number | null
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface ClientOptions {
|
|
141
|
+
|
|
142
|
+
// Own properties of Plasma-1.0.Plasma.ClientOptions
|
|
143
|
+
|
|
144
|
+
n_retries: number
|
|
145
|
+
|
|
146
|
+
// Own fields of Plasma-1.0.Plasma.ClientOptions
|
|
147
|
+
|
|
148
|
+
parent_instance: GObject.Object
|
|
149
|
+
|
|
150
|
+
// Owm methods of Plasma-1.0.Plasma.ClientOptions
|
|
151
|
+
|
|
152
|
+
get_n_retries(): number
|
|
153
|
+
set_n_retries(n_retries: number): void
|
|
154
|
+
|
|
155
|
+
// Class property signals of Plasma-1.0.Plasma.ClientOptions
|
|
156
|
+
|
|
157
|
+
connect(sigName: "notify::n-retries", callback: (($obj: ClientOptions, pspec: GObject.ParamSpec) => void)): number
|
|
158
|
+
connect_after(sigName: "notify::n-retries", callback: (($obj: ClientOptions, pspec: GObject.ParamSpec) => void)): number
|
|
159
|
+
emit(sigName: "notify::n-retries", ...args: any[]): void
|
|
160
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
161
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
162
|
+
emit(sigName: string, ...args: any[]): void
|
|
163
|
+
disconnect(id: number): void
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export class ClientOptions extends GObject.Object {
|
|
167
|
+
|
|
168
|
+
// Own properties of Plasma-1.0.Plasma.ClientOptions
|
|
169
|
+
|
|
170
|
+
static name: string
|
|
171
|
+
static $gtype: GObject.GType<ClientOptions>
|
|
172
|
+
|
|
173
|
+
// Constructors of Plasma-1.0.Plasma.ClientOptions
|
|
174
|
+
|
|
175
|
+
constructor(config?: ClientOptions.ConstructorProperties)
|
|
176
|
+
constructor()
|
|
177
|
+
static new(): ClientOptions
|
|
178
|
+
_init(config?: ClientOptions.ConstructorProperties): void
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export module CreatedObject {
|
|
182
|
+
|
|
183
|
+
// Constructor properties interface
|
|
184
|
+
|
|
185
|
+
export interface ConstructorProperties extends Object.ConstructorProperties {
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export interface CreatedObject {
|
|
191
|
+
|
|
192
|
+
// Own fields of Plasma-1.0.Plasma.CreatedObject
|
|
193
|
+
|
|
194
|
+
parent_instance: Object & GObject.Object
|
|
195
|
+
|
|
196
|
+
// Owm methods of Plasma-1.0.Plasma.CreatedObject
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Aborts the object in the object store. You can't use the aborted
|
|
200
|
+
* object anymore.
|
|
201
|
+
* @returns %TRUE on success, %FALSE on error.
|
|
202
|
+
*/
|
|
203
|
+
abort(): boolean
|
|
204
|
+
/**
|
|
205
|
+
* Seals the object in the object store. You can't use the sealed
|
|
206
|
+
* object anymore.
|
|
207
|
+
* @returns %TRUE on success, %FALSE on error.
|
|
208
|
+
*/
|
|
209
|
+
seal(): boolean
|
|
210
|
+
|
|
211
|
+
// Class property signals of Plasma-1.0.Plasma.CreatedObject
|
|
212
|
+
|
|
213
|
+
connect(sigName: "notify::client", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
214
|
+
connect_after(sigName: "notify::client", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
215
|
+
emit(sigName: "notify::client", ...args: any[]): void
|
|
216
|
+
connect(sigName: "notify::data", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
217
|
+
connect_after(sigName: "notify::data", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
218
|
+
emit(sigName: "notify::data", ...args: any[]): void
|
|
219
|
+
connect(sigName: "notify::gpu-device", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
220
|
+
connect_after(sigName: "notify::gpu-device", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
221
|
+
emit(sigName: "notify::gpu-device", ...args: any[]): void
|
|
222
|
+
connect(sigName: "notify::id", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
223
|
+
connect_after(sigName: "notify::id", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
224
|
+
emit(sigName: "notify::id", ...args: any[]): void
|
|
225
|
+
connect(sigName: "notify::metadata", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
226
|
+
connect_after(sigName: "notify::metadata", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
227
|
+
emit(sigName: "notify::metadata", ...args: any[]): void
|
|
228
|
+
connect(sigName: "notify::raw-data", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
229
|
+
connect_after(sigName: "notify::raw-data", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
230
|
+
emit(sigName: "notify::raw-data", ...args: any[]): void
|
|
231
|
+
connect(sigName: "notify::raw-metadata", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
232
|
+
connect_after(sigName: "notify::raw-metadata", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
233
|
+
emit(sigName: "notify::raw-metadata", ...args: any[]): void
|
|
234
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
235
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
236
|
+
emit(sigName: string, ...args: any[]): void
|
|
237
|
+
disconnect(id: number): void
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export class CreatedObject extends Object {
|
|
241
|
+
|
|
242
|
+
// Own properties of Plasma-1.0.Plasma.CreatedObject
|
|
243
|
+
|
|
244
|
+
static name: string
|
|
245
|
+
static $gtype: GObject.GType<CreatedObject>
|
|
246
|
+
|
|
247
|
+
// Constructors of Plasma-1.0.Plasma.CreatedObject
|
|
248
|
+
|
|
249
|
+
constructor(config?: CreatedObject.ConstructorProperties)
|
|
250
|
+
_init(config?: CreatedObject.ConstructorProperties): void
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export module Object {
|
|
254
|
+
|
|
255
|
+
// Constructor properties interface
|
|
256
|
+
|
|
257
|
+
export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
258
|
+
|
|
259
|
+
// Own constructor properties of Plasma-1.0.Plasma.Object
|
|
260
|
+
|
|
261
|
+
client?: Client | null
|
|
262
|
+
data?: Arrow.Buffer | null
|
|
263
|
+
gpu_device?: number | null
|
|
264
|
+
id?: ObjectID | null
|
|
265
|
+
metadata?: Arrow.Buffer | null
|
|
266
|
+
raw_data?: any | null
|
|
267
|
+
raw_metadata?: any | null
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export interface Object {
|
|
273
|
+
|
|
274
|
+
// Own properties of Plasma-1.0.Plasma.Object
|
|
275
|
+
|
|
276
|
+
readonly client: Client
|
|
277
|
+
readonly data: Arrow.Buffer
|
|
278
|
+
readonly gpu_device: number
|
|
279
|
+
readonly id: ObjectID
|
|
280
|
+
readonly metadata: Arrow.Buffer
|
|
281
|
+
readonly raw_data: any
|
|
282
|
+
readonly raw_metadata: any
|
|
283
|
+
|
|
284
|
+
// Own fields of Plasma-1.0.Plasma.Object
|
|
285
|
+
|
|
286
|
+
parent_instance: GObject.Object
|
|
287
|
+
|
|
288
|
+
// Class property signals of Plasma-1.0.Plasma.Object
|
|
289
|
+
|
|
290
|
+
connect(sigName: "notify::client", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
291
|
+
connect_after(sigName: "notify::client", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
292
|
+
emit(sigName: "notify::client", ...args: any[]): void
|
|
293
|
+
connect(sigName: "notify::data", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
294
|
+
connect_after(sigName: "notify::data", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
295
|
+
emit(sigName: "notify::data", ...args: any[]): void
|
|
296
|
+
connect(sigName: "notify::gpu-device", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
297
|
+
connect_after(sigName: "notify::gpu-device", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
298
|
+
emit(sigName: "notify::gpu-device", ...args: any[]): void
|
|
299
|
+
connect(sigName: "notify::id", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
300
|
+
connect_after(sigName: "notify::id", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
301
|
+
emit(sigName: "notify::id", ...args: any[]): void
|
|
302
|
+
connect(sigName: "notify::metadata", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
303
|
+
connect_after(sigName: "notify::metadata", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
304
|
+
emit(sigName: "notify::metadata", ...args: any[]): void
|
|
305
|
+
connect(sigName: "notify::raw-data", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
306
|
+
connect_after(sigName: "notify::raw-data", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
307
|
+
emit(sigName: "notify::raw-data", ...args: any[]): void
|
|
308
|
+
connect(sigName: "notify::raw-metadata", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
309
|
+
connect_after(sigName: "notify::raw-metadata", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
310
|
+
emit(sigName: "notify::raw-metadata", ...args: any[]): void
|
|
311
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
312
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
313
|
+
emit(sigName: string, ...args: any[]): void
|
|
314
|
+
disconnect(id: number): void
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export class Object extends GObject.Object {
|
|
318
|
+
|
|
319
|
+
// Own properties of Plasma-1.0.Plasma.Object
|
|
320
|
+
|
|
321
|
+
static name: string
|
|
322
|
+
static $gtype: GObject.GType<Object>
|
|
323
|
+
|
|
324
|
+
// Constructors of Plasma-1.0.Plasma.Object
|
|
325
|
+
|
|
326
|
+
constructor(config?: Object.ConstructorProperties)
|
|
327
|
+
_init(config?: Object.ConstructorProperties): void
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export module ObjectID {
|
|
331
|
+
|
|
332
|
+
// Constructor properties interface
|
|
333
|
+
|
|
334
|
+
export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export interface ObjectID {
|
|
340
|
+
|
|
341
|
+
// Own fields of Plasma-1.0.Plasma.ObjectID
|
|
342
|
+
|
|
343
|
+
parent_instance: GObject.Object
|
|
344
|
+
|
|
345
|
+
// Owm methods of Plasma-1.0.Plasma.ObjectID
|
|
346
|
+
|
|
347
|
+
to_binary(): Uint8Array
|
|
348
|
+
to_hex(): string | null
|
|
349
|
+
|
|
350
|
+
// Class property signals of Plasma-1.0.Plasma.ObjectID
|
|
351
|
+
|
|
352
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
353
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
354
|
+
emit(sigName: string, ...args: any[]): void
|
|
355
|
+
disconnect(id: number): void
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
export class ObjectID extends GObject.Object {
|
|
359
|
+
|
|
360
|
+
// Own properties of Plasma-1.0.Plasma.ObjectID
|
|
361
|
+
|
|
362
|
+
static name: string
|
|
363
|
+
static $gtype: GObject.GType<ObjectID>
|
|
364
|
+
|
|
365
|
+
// Constructors of Plasma-1.0.Plasma.ObjectID
|
|
366
|
+
|
|
367
|
+
constructor(config?: ObjectID.ConstructorProperties)
|
|
368
|
+
constructor(id: Uint8Array)
|
|
369
|
+
static new(id: Uint8Array): ObjectID
|
|
370
|
+
_init(config?: ObjectID.ConstructorProperties): void
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
export module ReferredObject {
|
|
374
|
+
|
|
375
|
+
// Constructor properties interface
|
|
376
|
+
|
|
377
|
+
export interface ConstructorProperties extends Object.ConstructorProperties {
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
export interface ReferredObject {
|
|
383
|
+
|
|
384
|
+
// Own fields of Plasma-1.0.Plasma.ReferredObject
|
|
385
|
+
|
|
386
|
+
parent_instance: Object & GObject.Object
|
|
387
|
+
|
|
388
|
+
// Owm methods of Plasma-1.0.Plasma.ReferredObject
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Releases the object explicitly. The object is no longer valid.
|
|
392
|
+
* @returns %TRUE on success, %FALSE on error.
|
|
393
|
+
*/
|
|
394
|
+
release(): boolean
|
|
395
|
+
|
|
396
|
+
// Class property signals of Plasma-1.0.Plasma.ReferredObject
|
|
397
|
+
|
|
398
|
+
connect(sigName: "notify::client", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
399
|
+
connect_after(sigName: "notify::client", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
400
|
+
emit(sigName: "notify::client", ...args: any[]): void
|
|
401
|
+
connect(sigName: "notify::data", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
402
|
+
connect_after(sigName: "notify::data", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
403
|
+
emit(sigName: "notify::data", ...args: any[]): void
|
|
404
|
+
connect(sigName: "notify::gpu-device", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
405
|
+
connect_after(sigName: "notify::gpu-device", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
406
|
+
emit(sigName: "notify::gpu-device", ...args: any[]): void
|
|
407
|
+
connect(sigName: "notify::id", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
408
|
+
connect_after(sigName: "notify::id", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
409
|
+
emit(sigName: "notify::id", ...args: any[]): void
|
|
410
|
+
connect(sigName: "notify::metadata", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
411
|
+
connect_after(sigName: "notify::metadata", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
412
|
+
emit(sigName: "notify::metadata", ...args: any[]): void
|
|
413
|
+
connect(sigName: "notify::raw-data", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
414
|
+
connect_after(sigName: "notify::raw-data", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
415
|
+
emit(sigName: "notify::raw-data", ...args: any[]): void
|
|
416
|
+
connect(sigName: "notify::raw-metadata", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
417
|
+
connect_after(sigName: "notify::raw-metadata", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
418
|
+
emit(sigName: "notify::raw-metadata", ...args: any[]): void
|
|
419
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
420
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
421
|
+
emit(sigName: string, ...args: any[]): void
|
|
422
|
+
disconnect(id: number): void
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
export class ReferredObject extends Object {
|
|
426
|
+
|
|
427
|
+
// Own properties of Plasma-1.0.Plasma.ReferredObject
|
|
428
|
+
|
|
429
|
+
static name: string
|
|
430
|
+
static $gtype: GObject.GType<ReferredObject>
|
|
431
|
+
|
|
432
|
+
// Constructors of Plasma-1.0.Plasma.ReferredObject
|
|
433
|
+
|
|
434
|
+
constructor(config?: ReferredObject.ConstructorProperties)
|
|
435
|
+
_init(config?: ReferredObject.ConstructorProperties): void
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
export interface ClientClass {
|
|
439
|
+
|
|
440
|
+
// Own fields of Plasma-1.0.Plasma.ClientClass
|
|
441
|
+
|
|
442
|
+
parent_class: GObject.ObjectClass
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
export abstract class ClientClass {
|
|
446
|
+
|
|
447
|
+
// Own properties of Plasma-1.0.Plasma.ClientClass
|
|
448
|
+
|
|
449
|
+
static name: string
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
export interface ClientCreateOptionsClass {
|
|
453
|
+
|
|
454
|
+
// Own fields of Plasma-1.0.Plasma.ClientCreateOptionsClass
|
|
455
|
+
|
|
456
|
+
parent_class: GObject.ObjectClass
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
export abstract class ClientCreateOptionsClass {
|
|
460
|
+
|
|
461
|
+
// Own properties of Plasma-1.0.Plasma.ClientCreateOptionsClass
|
|
462
|
+
|
|
463
|
+
static name: string
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
export interface ClientOptionsClass {
|
|
467
|
+
|
|
468
|
+
// Own fields of Plasma-1.0.Plasma.ClientOptionsClass
|
|
469
|
+
|
|
470
|
+
parent_class: GObject.ObjectClass
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
export abstract class ClientOptionsClass {
|
|
474
|
+
|
|
475
|
+
// Own properties of Plasma-1.0.Plasma.ClientOptionsClass
|
|
476
|
+
|
|
477
|
+
static name: string
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
export interface CreatedObjectClass {
|
|
481
|
+
|
|
482
|
+
// Own fields of Plasma-1.0.Plasma.CreatedObjectClass
|
|
483
|
+
|
|
484
|
+
parent_class: ObjectClass
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
export abstract class CreatedObjectClass {
|
|
488
|
+
|
|
489
|
+
// Own properties of Plasma-1.0.Plasma.CreatedObjectClass
|
|
490
|
+
|
|
491
|
+
static name: string
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
export interface ObjectClass {
|
|
495
|
+
|
|
496
|
+
// Own fields of Plasma-1.0.Plasma.ObjectClass
|
|
497
|
+
|
|
498
|
+
parent_class: GObject.ObjectClass
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
export abstract class ObjectClass {
|
|
502
|
+
|
|
503
|
+
// Own properties of Plasma-1.0.Plasma.ObjectClass
|
|
504
|
+
|
|
505
|
+
static name: string
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
export interface ObjectIDClass {
|
|
509
|
+
|
|
510
|
+
// Own fields of Plasma-1.0.Plasma.ObjectIDClass
|
|
511
|
+
|
|
512
|
+
parent_class: GObject.ObjectClass
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
export abstract class ObjectIDClass {
|
|
516
|
+
|
|
517
|
+
// Own properties of Plasma-1.0.Plasma.ObjectIDClass
|
|
518
|
+
|
|
519
|
+
static name: string
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
export interface ReferredObjectClass {
|
|
523
|
+
|
|
524
|
+
// Own fields of Plasma-1.0.Plasma.ReferredObjectClass
|
|
525
|
+
|
|
526
|
+
parent_class: ObjectClass
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
export abstract class ReferredObjectClass {
|
|
530
|
+
|
|
531
|
+
// Own properties of Plasma-1.0.Plasma.ReferredObjectClass
|
|
532
|
+
|
|
533
|
+
static name: string
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Name of the imported GIR library
|
|
538
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
539
|
+
*/
|
|
540
|
+
export const __name__: string
|
|
541
|
+
/**
|
|
542
|
+
* Version of the imported GIR library
|
|
543
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
544
|
+
*/
|
|
545
|
+
export const __version__: string
|
|
546
|
+
// END
|
package/plasma-1.0.d.ts
ADDED
|
@@ -0,0 +1,551 @@
|
|
|
1
|
+
|
|
2
|
+
/*
|
|
3
|
+
* Type Definitions for Gjs (https://gjs.guide/)
|
|
4
|
+
*
|
|
5
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
6
|
+
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gjs
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Plasma-1.0
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type ArrowCUDA from '@girs/arrowcuda-1.0';
|
|
13
|
+
import type Arrow from '@girs/arrow-1.0';
|
|
14
|
+
import type Gio from '@girs/gio-2.0';
|
|
15
|
+
import type GObject from '@girs/gobject-2.0';
|
|
16
|
+
import type GLib from '@girs/glib-2.0';
|
|
17
|
+
|
|
18
|
+
export namespace Plasma {
|
|
19
|
+
|
|
20
|
+
module Client {
|
|
21
|
+
|
|
22
|
+
// Constructor properties interface
|
|
23
|
+
|
|
24
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
25
|
+
|
|
26
|
+
// Own constructor properties of Plasma-1.0.Plasma.Client
|
|
27
|
+
|
|
28
|
+
client?: any | null
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface Client {
|
|
34
|
+
|
|
35
|
+
// Own properties of Plasma-1.0.Plasma.Client
|
|
36
|
+
|
|
37
|
+
readonly client: any
|
|
38
|
+
|
|
39
|
+
// Own fields of Plasma-1.0.Plasma.Client
|
|
40
|
+
|
|
41
|
+
parent_instance: GObject.Object
|
|
42
|
+
|
|
43
|
+
// Owm methods of Plasma-1.0.Plasma.Client
|
|
44
|
+
|
|
45
|
+
create(id: ObjectID, data_size: number, options: ClientCreateOptions | null): CreatedObject | null
|
|
46
|
+
disconnect(): boolean
|
|
47
|
+
refer_object(id: ObjectID, timeout_ms: number): ReferredObject | null
|
|
48
|
+
|
|
49
|
+
// Class property signals of Plasma-1.0.Plasma.Client
|
|
50
|
+
|
|
51
|
+
connect(sigName: "notify::client", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
|
|
52
|
+
connect_after(sigName: "notify::client", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
|
|
53
|
+
emit(sigName: "notify::client", ...args: any[]): void
|
|
54
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
55
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
56
|
+
emit(sigName: string, ...args: any[]): void
|
|
57
|
+
disconnect(id: number): void
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
class Client extends GObject.Object {
|
|
61
|
+
|
|
62
|
+
// Own properties of Plasma-1.0.Plasma.Client
|
|
63
|
+
|
|
64
|
+
static name: string
|
|
65
|
+
static $gtype: GObject.GType<Client>
|
|
66
|
+
|
|
67
|
+
// Constructors of Plasma-1.0.Plasma.Client
|
|
68
|
+
|
|
69
|
+
constructor(config?: Client.ConstructorProperties)
|
|
70
|
+
constructor(store_socket_name: string | null, options: ClientOptions | null)
|
|
71
|
+
static new(store_socket_name: string | null, options: ClientOptions | null): Client
|
|
72
|
+
_init(config?: Client.ConstructorProperties): void
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
module ClientCreateOptions {
|
|
76
|
+
|
|
77
|
+
// Constructor properties interface
|
|
78
|
+
|
|
79
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
80
|
+
|
|
81
|
+
// Own constructor properties of Plasma-1.0.Plasma.ClientCreateOptions
|
|
82
|
+
|
|
83
|
+
gpu_device?: number | null
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
interface ClientCreateOptions {
|
|
89
|
+
|
|
90
|
+
// Own properties of Plasma-1.0.Plasma.ClientCreateOptions
|
|
91
|
+
|
|
92
|
+
gpu_device: number
|
|
93
|
+
|
|
94
|
+
// Own fields of Plasma-1.0.Plasma.ClientCreateOptions
|
|
95
|
+
|
|
96
|
+
parent_instance: GObject.Object
|
|
97
|
+
|
|
98
|
+
// Owm methods of Plasma-1.0.Plasma.ClientCreateOptions
|
|
99
|
+
|
|
100
|
+
get_metadata(): Uint8Array | null
|
|
101
|
+
set_metadata(metadata: Uint8Array | null): void
|
|
102
|
+
|
|
103
|
+
// Class property signals of Plasma-1.0.Plasma.ClientCreateOptions
|
|
104
|
+
|
|
105
|
+
connect(sigName: "notify::gpu-device", callback: (($obj: ClientCreateOptions, pspec: GObject.ParamSpec) => void)): number
|
|
106
|
+
connect_after(sigName: "notify::gpu-device", callback: (($obj: ClientCreateOptions, pspec: GObject.ParamSpec) => void)): number
|
|
107
|
+
emit(sigName: "notify::gpu-device", ...args: any[]): void
|
|
108
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
109
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
110
|
+
emit(sigName: string, ...args: any[]): void
|
|
111
|
+
disconnect(id: number): void
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
class ClientCreateOptions extends GObject.Object {
|
|
115
|
+
|
|
116
|
+
// Own properties of Plasma-1.0.Plasma.ClientCreateOptions
|
|
117
|
+
|
|
118
|
+
static name: string
|
|
119
|
+
static $gtype: GObject.GType<ClientCreateOptions>
|
|
120
|
+
|
|
121
|
+
// Constructors of Plasma-1.0.Plasma.ClientCreateOptions
|
|
122
|
+
|
|
123
|
+
constructor(config?: ClientCreateOptions.ConstructorProperties)
|
|
124
|
+
constructor()
|
|
125
|
+
static new(): ClientCreateOptions
|
|
126
|
+
_init(config?: ClientCreateOptions.ConstructorProperties): void
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
module ClientOptions {
|
|
130
|
+
|
|
131
|
+
// Constructor properties interface
|
|
132
|
+
|
|
133
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
134
|
+
|
|
135
|
+
// Own constructor properties of Plasma-1.0.Plasma.ClientOptions
|
|
136
|
+
|
|
137
|
+
n_retries?: number | null
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
interface ClientOptions {
|
|
143
|
+
|
|
144
|
+
// Own properties of Plasma-1.0.Plasma.ClientOptions
|
|
145
|
+
|
|
146
|
+
n_retries: number
|
|
147
|
+
|
|
148
|
+
// Own fields of Plasma-1.0.Plasma.ClientOptions
|
|
149
|
+
|
|
150
|
+
parent_instance: GObject.Object
|
|
151
|
+
|
|
152
|
+
// Owm methods of Plasma-1.0.Plasma.ClientOptions
|
|
153
|
+
|
|
154
|
+
get_n_retries(): number
|
|
155
|
+
set_n_retries(n_retries: number): void
|
|
156
|
+
|
|
157
|
+
// Class property signals of Plasma-1.0.Plasma.ClientOptions
|
|
158
|
+
|
|
159
|
+
connect(sigName: "notify::n-retries", callback: (($obj: ClientOptions, pspec: GObject.ParamSpec) => void)): number
|
|
160
|
+
connect_after(sigName: "notify::n-retries", callback: (($obj: ClientOptions, pspec: GObject.ParamSpec) => void)): number
|
|
161
|
+
emit(sigName: "notify::n-retries", ...args: any[]): void
|
|
162
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
163
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
164
|
+
emit(sigName: string, ...args: any[]): void
|
|
165
|
+
disconnect(id: number): void
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
class ClientOptions extends GObject.Object {
|
|
169
|
+
|
|
170
|
+
// Own properties of Plasma-1.0.Plasma.ClientOptions
|
|
171
|
+
|
|
172
|
+
static name: string
|
|
173
|
+
static $gtype: GObject.GType<ClientOptions>
|
|
174
|
+
|
|
175
|
+
// Constructors of Plasma-1.0.Plasma.ClientOptions
|
|
176
|
+
|
|
177
|
+
constructor(config?: ClientOptions.ConstructorProperties)
|
|
178
|
+
constructor()
|
|
179
|
+
static new(): ClientOptions
|
|
180
|
+
_init(config?: ClientOptions.ConstructorProperties): void
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
module CreatedObject {
|
|
184
|
+
|
|
185
|
+
// Constructor properties interface
|
|
186
|
+
|
|
187
|
+
interface ConstructorProperties extends Object.ConstructorProperties {
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
interface CreatedObject {
|
|
193
|
+
|
|
194
|
+
// Own fields of Plasma-1.0.Plasma.CreatedObject
|
|
195
|
+
|
|
196
|
+
parent_instance: Object & GObject.Object
|
|
197
|
+
|
|
198
|
+
// Owm methods of Plasma-1.0.Plasma.CreatedObject
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Aborts the object in the object store. You can't use the aborted
|
|
202
|
+
* object anymore.
|
|
203
|
+
* @returns %TRUE on success, %FALSE on error.
|
|
204
|
+
*/
|
|
205
|
+
abort(): boolean
|
|
206
|
+
/**
|
|
207
|
+
* Seals the object in the object store. You can't use the sealed
|
|
208
|
+
* object anymore.
|
|
209
|
+
* @returns %TRUE on success, %FALSE on error.
|
|
210
|
+
*/
|
|
211
|
+
seal(): boolean
|
|
212
|
+
|
|
213
|
+
// Class property signals of Plasma-1.0.Plasma.CreatedObject
|
|
214
|
+
|
|
215
|
+
connect(sigName: "notify::client", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
216
|
+
connect_after(sigName: "notify::client", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
217
|
+
emit(sigName: "notify::client", ...args: any[]): void
|
|
218
|
+
connect(sigName: "notify::data", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
219
|
+
connect_after(sigName: "notify::data", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
220
|
+
emit(sigName: "notify::data", ...args: any[]): void
|
|
221
|
+
connect(sigName: "notify::gpu-device", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
222
|
+
connect_after(sigName: "notify::gpu-device", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
223
|
+
emit(sigName: "notify::gpu-device", ...args: any[]): void
|
|
224
|
+
connect(sigName: "notify::id", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
225
|
+
connect_after(sigName: "notify::id", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
226
|
+
emit(sigName: "notify::id", ...args: any[]): void
|
|
227
|
+
connect(sigName: "notify::metadata", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
228
|
+
connect_after(sigName: "notify::metadata", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
229
|
+
emit(sigName: "notify::metadata", ...args: any[]): void
|
|
230
|
+
connect(sigName: "notify::raw-data", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
231
|
+
connect_after(sigName: "notify::raw-data", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
232
|
+
emit(sigName: "notify::raw-data", ...args: any[]): void
|
|
233
|
+
connect(sigName: "notify::raw-metadata", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
234
|
+
connect_after(sigName: "notify::raw-metadata", callback: (($obj: CreatedObject, pspec: GObject.ParamSpec) => void)): number
|
|
235
|
+
emit(sigName: "notify::raw-metadata", ...args: any[]): void
|
|
236
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
237
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
238
|
+
emit(sigName: string, ...args: any[]): void
|
|
239
|
+
disconnect(id: number): void
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
class CreatedObject extends Object {
|
|
243
|
+
|
|
244
|
+
// Own properties of Plasma-1.0.Plasma.CreatedObject
|
|
245
|
+
|
|
246
|
+
static name: string
|
|
247
|
+
static $gtype: GObject.GType<CreatedObject>
|
|
248
|
+
|
|
249
|
+
// Constructors of Plasma-1.0.Plasma.CreatedObject
|
|
250
|
+
|
|
251
|
+
constructor(config?: CreatedObject.ConstructorProperties)
|
|
252
|
+
_init(config?: CreatedObject.ConstructorProperties): void
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
module Object {
|
|
256
|
+
|
|
257
|
+
// Constructor properties interface
|
|
258
|
+
|
|
259
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
260
|
+
|
|
261
|
+
// Own constructor properties of Plasma-1.0.Plasma.Object
|
|
262
|
+
|
|
263
|
+
client?: Client | null
|
|
264
|
+
data?: Arrow.Buffer | null
|
|
265
|
+
gpu_device?: number | null
|
|
266
|
+
id?: ObjectID | null
|
|
267
|
+
metadata?: Arrow.Buffer | null
|
|
268
|
+
raw_data?: any | null
|
|
269
|
+
raw_metadata?: any | null
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
interface Object {
|
|
275
|
+
|
|
276
|
+
// Own properties of Plasma-1.0.Plasma.Object
|
|
277
|
+
|
|
278
|
+
readonly client: Client
|
|
279
|
+
readonly data: Arrow.Buffer
|
|
280
|
+
readonly gpu_device: number
|
|
281
|
+
readonly id: ObjectID
|
|
282
|
+
readonly metadata: Arrow.Buffer
|
|
283
|
+
readonly raw_data: any
|
|
284
|
+
readonly raw_metadata: any
|
|
285
|
+
|
|
286
|
+
// Own fields of Plasma-1.0.Plasma.Object
|
|
287
|
+
|
|
288
|
+
parent_instance: GObject.Object
|
|
289
|
+
|
|
290
|
+
// Class property signals of Plasma-1.0.Plasma.Object
|
|
291
|
+
|
|
292
|
+
connect(sigName: "notify::client", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
293
|
+
connect_after(sigName: "notify::client", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
294
|
+
emit(sigName: "notify::client", ...args: any[]): void
|
|
295
|
+
connect(sigName: "notify::data", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
296
|
+
connect_after(sigName: "notify::data", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
297
|
+
emit(sigName: "notify::data", ...args: any[]): void
|
|
298
|
+
connect(sigName: "notify::gpu-device", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
299
|
+
connect_after(sigName: "notify::gpu-device", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
300
|
+
emit(sigName: "notify::gpu-device", ...args: any[]): void
|
|
301
|
+
connect(sigName: "notify::id", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
302
|
+
connect_after(sigName: "notify::id", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
303
|
+
emit(sigName: "notify::id", ...args: any[]): void
|
|
304
|
+
connect(sigName: "notify::metadata", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
305
|
+
connect_after(sigName: "notify::metadata", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
306
|
+
emit(sigName: "notify::metadata", ...args: any[]): void
|
|
307
|
+
connect(sigName: "notify::raw-data", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
308
|
+
connect_after(sigName: "notify::raw-data", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
309
|
+
emit(sigName: "notify::raw-data", ...args: any[]): void
|
|
310
|
+
connect(sigName: "notify::raw-metadata", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
311
|
+
connect_after(sigName: "notify::raw-metadata", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number
|
|
312
|
+
emit(sigName: "notify::raw-metadata", ...args: any[]): void
|
|
313
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
314
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
315
|
+
emit(sigName: string, ...args: any[]): void
|
|
316
|
+
disconnect(id: number): void
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
class Object extends GObject.Object {
|
|
320
|
+
|
|
321
|
+
// Own properties of Plasma-1.0.Plasma.Object
|
|
322
|
+
|
|
323
|
+
static name: string
|
|
324
|
+
static $gtype: GObject.GType<Object>
|
|
325
|
+
|
|
326
|
+
// Constructors of Plasma-1.0.Plasma.Object
|
|
327
|
+
|
|
328
|
+
constructor(config?: Object.ConstructorProperties)
|
|
329
|
+
_init(config?: Object.ConstructorProperties): void
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
module ObjectID {
|
|
333
|
+
|
|
334
|
+
// Constructor properties interface
|
|
335
|
+
|
|
336
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
interface ObjectID {
|
|
342
|
+
|
|
343
|
+
// Own fields of Plasma-1.0.Plasma.ObjectID
|
|
344
|
+
|
|
345
|
+
parent_instance: GObject.Object
|
|
346
|
+
|
|
347
|
+
// Owm methods of Plasma-1.0.Plasma.ObjectID
|
|
348
|
+
|
|
349
|
+
to_binary(): Uint8Array
|
|
350
|
+
to_hex(): string | null
|
|
351
|
+
|
|
352
|
+
// Class property signals of Plasma-1.0.Plasma.ObjectID
|
|
353
|
+
|
|
354
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
355
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
356
|
+
emit(sigName: string, ...args: any[]): void
|
|
357
|
+
disconnect(id: number): void
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
class ObjectID extends GObject.Object {
|
|
361
|
+
|
|
362
|
+
// Own properties of Plasma-1.0.Plasma.ObjectID
|
|
363
|
+
|
|
364
|
+
static name: string
|
|
365
|
+
static $gtype: GObject.GType<ObjectID>
|
|
366
|
+
|
|
367
|
+
// Constructors of Plasma-1.0.Plasma.ObjectID
|
|
368
|
+
|
|
369
|
+
constructor(config?: ObjectID.ConstructorProperties)
|
|
370
|
+
constructor(id: Uint8Array)
|
|
371
|
+
static new(id: Uint8Array): ObjectID
|
|
372
|
+
_init(config?: ObjectID.ConstructorProperties): void
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
module ReferredObject {
|
|
376
|
+
|
|
377
|
+
// Constructor properties interface
|
|
378
|
+
|
|
379
|
+
interface ConstructorProperties extends Object.ConstructorProperties {
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
interface ReferredObject {
|
|
385
|
+
|
|
386
|
+
// Own fields of Plasma-1.0.Plasma.ReferredObject
|
|
387
|
+
|
|
388
|
+
parent_instance: Object & GObject.Object
|
|
389
|
+
|
|
390
|
+
// Owm methods of Plasma-1.0.Plasma.ReferredObject
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Releases the object explicitly. The object is no longer valid.
|
|
394
|
+
* @returns %TRUE on success, %FALSE on error.
|
|
395
|
+
*/
|
|
396
|
+
release(): boolean
|
|
397
|
+
|
|
398
|
+
// Class property signals of Plasma-1.0.Plasma.ReferredObject
|
|
399
|
+
|
|
400
|
+
connect(sigName: "notify::client", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
401
|
+
connect_after(sigName: "notify::client", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
402
|
+
emit(sigName: "notify::client", ...args: any[]): void
|
|
403
|
+
connect(sigName: "notify::data", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
404
|
+
connect_after(sigName: "notify::data", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
405
|
+
emit(sigName: "notify::data", ...args: any[]): void
|
|
406
|
+
connect(sigName: "notify::gpu-device", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
407
|
+
connect_after(sigName: "notify::gpu-device", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
408
|
+
emit(sigName: "notify::gpu-device", ...args: any[]): void
|
|
409
|
+
connect(sigName: "notify::id", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
410
|
+
connect_after(sigName: "notify::id", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
411
|
+
emit(sigName: "notify::id", ...args: any[]): void
|
|
412
|
+
connect(sigName: "notify::metadata", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
413
|
+
connect_after(sigName: "notify::metadata", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
414
|
+
emit(sigName: "notify::metadata", ...args: any[]): void
|
|
415
|
+
connect(sigName: "notify::raw-data", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
416
|
+
connect_after(sigName: "notify::raw-data", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
417
|
+
emit(sigName: "notify::raw-data", ...args: any[]): void
|
|
418
|
+
connect(sigName: "notify::raw-metadata", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
419
|
+
connect_after(sigName: "notify::raw-metadata", callback: (($obj: ReferredObject, pspec: GObject.ParamSpec) => void)): number
|
|
420
|
+
emit(sigName: "notify::raw-metadata", ...args: any[]): void
|
|
421
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
422
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
423
|
+
emit(sigName: string, ...args: any[]): void
|
|
424
|
+
disconnect(id: number): void
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
class ReferredObject extends Object {
|
|
428
|
+
|
|
429
|
+
// Own properties of Plasma-1.0.Plasma.ReferredObject
|
|
430
|
+
|
|
431
|
+
static name: string
|
|
432
|
+
static $gtype: GObject.GType<ReferredObject>
|
|
433
|
+
|
|
434
|
+
// Constructors of Plasma-1.0.Plasma.ReferredObject
|
|
435
|
+
|
|
436
|
+
constructor(config?: ReferredObject.ConstructorProperties)
|
|
437
|
+
_init(config?: ReferredObject.ConstructorProperties): void
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
interface ClientClass {
|
|
441
|
+
|
|
442
|
+
// Own fields of Plasma-1.0.Plasma.ClientClass
|
|
443
|
+
|
|
444
|
+
parent_class: GObject.ObjectClass
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
abstract class ClientClass {
|
|
448
|
+
|
|
449
|
+
// Own properties of Plasma-1.0.Plasma.ClientClass
|
|
450
|
+
|
|
451
|
+
static name: string
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
interface ClientCreateOptionsClass {
|
|
455
|
+
|
|
456
|
+
// Own fields of Plasma-1.0.Plasma.ClientCreateOptionsClass
|
|
457
|
+
|
|
458
|
+
parent_class: GObject.ObjectClass
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
abstract class ClientCreateOptionsClass {
|
|
462
|
+
|
|
463
|
+
// Own properties of Plasma-1.0.Plasma.ClientCreateOptionsClass
|
|
464
|
+
|
|
465
|
+
static name: string
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
interface ClientOptionsClass {
|
|
469
|
+
|
|
470
|
+
// Own fields of Plasma-1.0.Plasma.ClientOptionsClass
|
|
471
|
+
|
|
472
|
+
parent_class: GObject.ObjectClass
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
abstract class ClientOptionsClass {
|
|
476
|
+
|
|
477
|
+
// Own properties of Plasma-1.0.Plasma.ClientOptionsClass
|
|
478
|
+
|
|
479
|
+
static name: string
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
interface CreatedObjectClass {
|
|
483
|
+
|
|
484
|
+
// Own fields of Plasma-1.0.Plasma.CreatedObjectClass
|
|
485
|
+
|
|
486
|
+
parent_class: ObjectClass
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
abstract class CreatedObjectClass {
|
|
490
|
+
|
|
491
|
+
// Own properties of Plasma-1.0.Plasma.CreatedObjectClass
|
|
492
|
+
|
|
493
|
+
static name: string
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
interface ObjectClass {
|
|
497
|
+
|
|
498
|
+
// Own fields of Plasma-1.0.Plasma.ObjectClass
|
|
499
|
+
|
|
500
|
+
parent_class: GObject.ObjectClass
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
abstract class ObjectClass {
|
|
504
|
+
|
|
505
|
+
// Own properties of Plasma-1.0.Plasma.ObjectClass
|
|
506
|
+
|
|
507
|
+
static name: string
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
interface ObjectIDClass {
|
|
511
|
+
|
|
512
|
+
// Own fields of Plasma-1.0.Plasma.ObjectIDClass
|
|
513
|
+
|
|
514
|
+
parent_class: GObject.ObjectClass
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
abstract class ObjectIDClass {
|
|
518
|
+
|
|
519
|
+
// Own properties of Plasma-1.0.Plasma.ObjectIDClass
|
|
520
|
+
|
|
521
|
+
static name: string
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
interface ReferredObjectClass {
|
|
525
|
+
|
|
526
|
+
// Own fields of Plasma-1.0.Plasma.ReferredObjectClass
|
|
527
|
+
|
|
528
|
+
parent_class: ObjectClass
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
abstract class ReferredObjectClass {
|
|
532
|
+
|
|
533
|
+
// Own properties of Plasma-1.0.Plasma.ReferredObjectClass
|
|
534
|
+
|
|
535
|
+
static name: string
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* Name of the imported GIR library
|
|
540
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
541
|
+
*/
|
|
542
|
+
const __name__: string
|
|
543
|
+
/**
|
|
544
|
+
* Version of the imported GIR library
|
|
545
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
546
|
+
*/
|
|
547
|
+
const __version__: string
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
export default Plasma;
|
|
551
|
+
// END
|
package/plasma-1.0.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
// General settings for code interpretation
|
|
4
|
+
"target": "ESNext",
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"experimentalDecorators": true,
|
|
7
|
+
"moduleResolution": "node",
|
|
8
|
+
"noEmit": true,
|
|
9
|
+
"noEmitOnError": false,
|
|
10
|
+
"baseUrl": "./",
|
|
11
|
+
"rootDir": ".",
|
|
12
|
+
// General settings for code generation
|
|
13
|
+
"removeComments": false,
|
|
14
|
+
"inlineSourceMap": false,
|
|
15
|
+
"inlineSources": false,
|
|
16
|
+
"newLine": "LF"
|
|
17
|
+
},
|
|
18
|
+
"include": ["./plasma-1.0.d.ts"]
|
|
19
|
+
}
|