@girs/gtkfrdp-0.2 0.2.0-4.0.0-beta.3
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 +86 -0
- package/gtkfrdp-0.2-ambient.d.ts +12 -0
- package/gtkfrdp-0.2-ambient.js +2 -0
- package/gtkfrdp-0.2-import.d.ts +12 -0
- package/gtkfrdp-0.2-import.js +3 -0
- package/gtkfrdp-0.2.d.ts +787 -0
- package/gtkfrdp-0.2.js +6 -0
- package/package.json +65 -0
- package/tsconfig.json +23 -0
- package/typedoc.json +7 -0
package/README.md
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
|
|
2
|
+
# GtkFrdp-0.2
|
|
3
|
+
|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
GJS TypeScript type definitions for GtkFrdp-0.2, generated from library version 0.2.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.3.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
To use this type definitions, install them with NPM:
|
|
14
|
+
```bash
|
|
15
|
+
npm install @girs/gtkfrdp-0.2
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
You can import this package into your project like this:
|
|
21
|
+
```ts
|
|
22
|
+
import GtkFrdp from '@girs/gtkfrdp-0.2';
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Ambient Modules
|
|
26
|
+
|
|
27
|
+
You can also use [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules) to import this module like you would do this in JavaScript.
|
|
28
|
+
For this you need to include `@girs/gtkfrdp-0.2` or `@girs/gtkfrdp-0.2/ambient` in your `tsconfig` or entry point Typescript file:
|
|
29
|
+
|
|
30
|
+
`index.ts`:
|
|
31
|
+
```ts
|
|
32
|
+
import '@girs/gtkfrdp-0.2'
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
`tsconfig.json`:
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"compilerOptions": {
|
|
39
|
+
...
|
|
40
|
+
},
|
|
41
|
+
"include": ["@girs/gtkfrdp-0.2"],
|
|
42
|
+
...
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Now you can import the ambient module with TypeScript support:
|
|
47
|
+
|
|
48
|
+
```ts
|
|
49
|
+
import GtkFrdp from 'gi://GtkFrdp?version=0.2';
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Global import
|
|
53
|
+
|
|
54
|
+
You can also import the module with Typescript support using the global `imports.gi` object of GJS.
|
|
55
|
+
For this you need to include `@girs/gtkfrdp-0.2` or `@girs/gtkfrdp-0.2/import` in your `tsconfig` or entry point Typescript file:
|
|
56
|
+
|
|
57
|
+
`index.ts`:
|
|
58
|
+
```ts
|
|
59
|
+
import '@girs/gtkfrdp-0.2'
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
`tsconfig.json`:
|
|
63
|
+
```json
|
|
64
|
+
{
|
|
65
|
+
"compilerOptions": {
|
|
66
|
+
...
|
|
67
|
+
},
|
|
68
|
+
"include": ["@girs/gtkfrdp-0.2"],
|
|
69
|
+
...
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Now you have also type support for this, too:
|
|
74
|
+
|
|
75
|
+
```ts
|
|
76
|
+
const GtkFrdp = imports.gi.GtkFrdp;
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Bundle
|
|
80
|
+
|
|
81
|
+
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).
|
|
82
|
+
|
|
83
|
+
## Other packages
|
|
84
|
+
|
|
85
|
+
All existing pre-generated packages can be found on [gjsify/types](https://github.com/gjsify/types).
|
|
86
|
+
|
package/gtkfrdp-0.2.d.ts
ADDED
|
@@ -0,0 +1,787 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Type Definitions for Gjs (https://gjs.guide/)
|
|
3
|
+
*
|
|
4
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
5
|
+
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import './gtkfrdp-0.2-ambient.d.ts';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* GtkFrdp-0.2
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import type Gtk from '@girs/gtk-3.0';
|
|
15
|
+
import type xlib from '@girs/xlib-2.0';
|
|
16
|
+
import type Gdk from '@girs/gdk-3.0';
|
|
17
|
+
import type cairo from '@girs/cairo-1.0';
|
|
18
|
+
import type GObject from '@girs/gobject-2.0';
|
|
19
|
+
import type GLib from '@girs/glib-2.0';
|
|
20
|
+
import type Pango from '@girs/pango-1.0';
|
|
21
|
+
import type HarfBuzz from '@girs/harfbuzz-0.0';
|
|
22
|
+
import type freetype2 from '@girs/freetype2-2.0';
|
|
23
|
+
import type Gio from '@girs/gio-2.0';
|
|
24
|
+
import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
|
|
25
|
+
import type GModule from '@girs/gmodule-2.0';
|
|
26
|
+
import type Atk from '@girs/atk-1.0';
|
|
27
|
+
|
|
28
|
+
export namespace GtkFrdp {
|
|
29
|
+
enum ErrConnect {
|
|
30
|
+
CONNECT_CANCELLED,
|
|
31
|
+
AUTHENTICATION_FAILED,
|
|
32
|
+
SECURITY_NEGO_CONNECT_FAILED,
|
|
33
|
+
}
|
|
34
|
+
enum KeyEvent {
|
|
35
|
+
PRESS,
|
|
36
|
+
RELEASE,
|
|
37
|
+
}
|
|
38
|
+
enum MouseEvent {
|
|
39
|
+
MOVE,
|
|
40
|
+
DOWN,
|
|
41
|
+
WHEEL,
|
|
42
|
+
WHEEL_NEGATIVE,
|
|
43
|
+
BUTTON1,
|
|
44
|
+
BUTTON2,
|
|
45
|
+
BUTTON3,
|
|
46
|
+
BUTTON4,
|
|
47
|
+
BUTTON5,
|
|
48
|
+
HWHEEL,
|
|
49
|
+
}
|
|
50
|
+
module Display {
|
|
51
|
+
// Signal callback interfaces
|
|
52
|
+
|
|
53
|
+
interface RdpAuthFailure {
|
|
54
|
+
(object: string): void;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
interface RdpConnected {
|
|
58
|
+
(): void;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
interface RdpDisconnected {
|
|
62
|
+
(): void;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
interface RdpError {
|
|
66
|
+
(object: string): void;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
interface RdpNeedsAuthentication {
|
|
70
|
+
(): void;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
interface RdpNeedsCertificateChangeVerification {
|
|
74
|
+
(
|
|
75
|
+
object: string,
|
|
76
|
+
p0: number,
|
|
77
|
+
p1: string,
|
|
78
|
+
p2: string,
|
|
79
|
+
p3: string,
|
|
80
|
+
p4: string,
|
|
81
|
+
p5: string,
|
|
82
|
+
p6: string,
|
|
83
|
+
p7: string,
|
|
84
|
+
p8: number,
|
|
85
|
+
): void;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
interface RdpNeedsCertificateVerification {
|
|
89
|
+
(object: string, p0: number, p1: string, p2: string, p3: string, p4: string, p5: number): void;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Constructor properties interface
|
|
93
|
+
|
|
94
|
+
interface ConstructorProps
|
|
95
|
+
extends Gtk.DrawingArea.ConstructorProps,
|
|
96
|
+
Atk.ImplementorIface.ConstructorProps,
|
|
97
|
+
Gtk.Buildable.ConstructorProps {
|
|
98
|
+
allow_resize: boolean;
|
|
99
|
+
allowResize: boolean;
|
|
100
|
+
domain: string;
|
|
101
|
+
password: string;
|
|
102
|
+
resize_supported: boolean;
|
|
103
|
+
resizeSupported: boolean;
|
|
104
|
+
scaling: boolean;
|
|
105
|
+
username: string;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
class Display extends Gtk.DrawingArea implements Atk.ImplementorIface, Gtk.Buildable {
|
|
110
|
+
static $gtype: GObject.GType<Display>;
|
|
111
|
+
|
|
112
|
+
// Own properties of GtkFrdp.Display
|
|
113
|
+
|
|
114
|
+
get allow_resize(): boolean;
|
|
115
|
+
set allow_resize(val: boolean);
|
|
116
|
+
get allowResize(): boolean;
|
|
117
|
+
set allowResize(val: boolean);
|
|
118
|
+
get domain(): string;
|
|
119
|
+
set domain(val: string);
|
|
120
|
+
get password(): string;
|
|
121
|
+
set password(val: string);
|
|
122
|
+
get resize_supported(): boolean;
|
|
123
|
+
set resize_supported(val: boolean);
|
|
124
|
+
get resizeSupported(): boolean;
|
|
125
|
+
set resizeSupported(val: boolean);
|
|
126
|
+
get scaling(): boolean;
|
|
127
|
+
set scaling(val: boolean);
|
|
128
|
+
get username(): string;
|
|
129
|
+
set username(val: string);
|
|
130
|
+
|
|
131
|
+
// Constructors of GtkFrdp.Display
|
|
132
|
+
|
|
133
|
+
constructor(properties?: Partial<Display.ConstructorProps>, ...args: any[]);
|
|
134
|
+
|
|
135
|
+
_init(...args: any[]): void;
|
|
136
|
+
|
|
137
|
+
static ['new'](): Display;
|
|
138
|
+
|
|
139
|
+
// Own signals of GtkFrdp.Display
|
|
140
|
+
|
|
141
|
+
connect(id: string, callback: (...args: any[]) => any): number;
|
|
142
|
+
connect_after(id: string, callback: (...args: any[]) => any): number;
|
|
143
|
+
emit(id: string, ...args: any[]): void;
|
|
144
|
+
connect(signal: 'rdp-auth-failure', callback: (_source: this, object: string) => void): number;
|
|
145
|
+
connect_after(signal: 'rdp-auth-failure', callback: (_source: this, object: string) => void): number;
|
|
146
|
+
emit(signal: 'rdp-auth-failure', object: string): void;
|
|
147
|
+
connect(signal: 'rdp-connected', callback: (_source: this) => void): number;
|
|
148
|
+
connect_after(signal: 'rdp-connected', callback: (_source: this) => void): number;
|
|
149
|
+
emit(signal: 'rdp-connected'): void;
|
|
150
|
+
connect(signal: 'rdp-disconnected', callback: (_source: this) => void): number;
|
|
151
|
+
connect_after(signal: 'rdp-disconnected', callback: (_source: this) => void): number;
|
|
152
|
+
emit(signal: 'rdp-disconnected'): void;
|
|
153
|
+
connect(signal: 'rdp-error', callback: (_source: this, object: string) => void): number;
|
|
154
|
+
connect_after(signal: 'rdp-error', callback: (_source: this, object: string) => void): number;
|
|
155
|
+
emit(signal: 'rdp-error', object: string): void;
|
|
156
|
+
connect(signal: 'rdp-needs-authentication', callback: (_source: this) => void): number;
|
|
157
|
+
connect_after(signal: 'rdp-needs-authentication', callback: (_source: this) => void): number;
|
|
158
|
+
emit(signal: 'rdp-needs-authentication'): void;
|
|
159
|
+
connect(
|
|
160
|
+
signal: 'rdp-needs-certificate-change-verification',
|
|
161
|
+
callback: (
|
|
162
|
+
_source: this,
|
|
163
|
+
object: string,
|
|
164
|
+
p0: number,
|
|
165
|
+
p1: string,
|
|
166
|
+
p2: string,
|
|
167
|
+
p3: string,
|
|
168
|
+
p4: string,
|
|
169
|
+
p5: string,
|
|
170
|
+
p6: string,
|
|
171
|
+
p7: string,
|
|
172
|
+
p8: number,
|
|
173
|
+
) => void,
|
|
174
|
+
): number;
|
|
175
|
+
connect_after(
|
|
176
|
+
signal: 'rdp-needs-certificate-change-verification',
|
|
177
|
+
callback: (
|
|
178
|
+
_source: this,
|
|
179
|
+
object: string,
|
|
180
|
+
p0: number,
|
|
181
|
+
p1: string,
|
|
182
|
+
p2: string,
|
|
183
|
+
p3: string,
|
|
184
|
+
p4: string,
|
|
185
|
+
p5: string,
|
|
186
|
+
p6: string,
|
|
187
|
+
p7: string,
|
|
188
|
+
p8: number,
|
|
189
|
+
) => void,
|
|
190
|
+
): number;
|
|
191
|
+
emit(
|
|
192
|
+
signal: 'rdp-needs-certificate-change-verification',
|
|
193
|
+
object: string,
|
|
194
|
+
p0: number,
|
|
195
|
+
p1: string,
|
|
196
|
+
p2: string,
|
|
197
|
+
p3: string,
|
|
198
|
+
p4: string,
|
|
199
|
+
p5: string,
|
|
200
|
+
p6: string,
|
|
201
|
+
p7: string,
|
|
202
|
+
p8: number,
|
|
203
|
+
): void;
|
|
204
|
+
connect(
|
|
205
|
+
signal: 'rdp-needs-certificate-verification',
|
|
206
|
+
callback: (
|
|
207
|
+
_source: this,
|
|
208
|
+
object: string,
|
|
209
|
+
p0: number,
|
|
210
|
+
p1: string,
|
|
211
|
+
p2: string,
|
|
212
|
+
p3: string,
|
|
213
|
+
p4: string,
|
|
214
|
+
p5: number,
|
|
215
|
+
) => void,
|
|
216
|
+
): number;
|
|
217
|
+
connect_after(
|
|
218
|
+
signal: 'rdp-needs-certificate-verification',
|
|
219
|
+
callback: (
|
|
220
|
+
_source: this,
|
|
221
|
+
object: string,
|
|
222
|
+
p0: number,
|
|
223
|
+
p1: string,
|
|
224
|
+
p2: string,
|
|
225
|
+
p3: string,
|
|
226
|
+
p4: string,
|
|
227
|
+
p5: number,
|
|
228
|
+
) => void,
|
|
229
|
+
): number;
|
|
230
|
+
emit(
|
|
231
|
+
signal: 'rdp-needs-certificate-verification',
|
|
232
|
+
object: string,
|
|
233
|
+
p0: number,
|
|
234
|
+
p1: string,
|
|
235
|
+
p2: string,
|
|
236
|
+
p3: string,
|
|
237
|
+
p4: string,
|
|
238
|
+
p5: number,
|
|
239
|
+
): void;
|
|
240
|
+
|
|
241
|
+
// Own virtual methods of GtkFrdp.Display
|
|
242
|
+
|
|
243
|
+
vfunc_authenticate(username: string, password: string, domain: string): boolean;
|
|
244
|
+
|
|
245
|
+
// Own methods of GtkFrdp.Display
|
|
246
|
+
|
|
247
|
+
authenticate(username: string, password: string, domain: string): boolean;
|
|
248
|
+
authenticate_finish(username: string, password: string, domain: string): void;
|
|
249
|
+
certificate_change_verify_ex(
|
|
250
|
+
host: string,
|
|
251
|
+
port: number,
|
|
252
|
+
common_name: string,
|
|
253
|
+
subject: string,
|
|
254
|
+
issuer: string,
|
|
255
|
+
fingerprint: string,
|
|
256
|
+
old_subject: string,
|
|
257
|
+
old_issuer: string,
|
|
258
|
+
old_fingerprint: string,
|
|
259
|
+
flags: number,
|
|
260
|
+
): number;
|
|
261
|
+
certificate_change_verify_ex_finish(verification: number): void;
|
|
262
|
+
certificate_verify_ex(
|
|
263
|
+
host: string,
|
|
264
|
+
port: number,
|
|
265
|
+
common_name: string,
|
|
266
|
+
subject: string,
|
|
267
|
+
issuer: string,
|
|
268
|
+
fingerprint: string,
|
|
269
|
+
flags: number,
|
|
270
|
+
): number;
|
|
271
|
+
certificate_verify_ex_finish(verification: number): void;
|
|
272
|
+
/**
|
|
273
|
+
* Request the closing of the RDP session.
|
|
274
|
+
*/
|
|
275
|
+
close(): void;
|
|
276
|
+
/**
|
|
277
|
+
* Take a screenshot of the display.
|
|
278
|
+
* @returns a #GdkPixbuf with the screenshot image buffer
|
|
279
|
+
*/
|
|
280
|
+
get_pixbuf(): GdkPixbuf.Pixbuf;
|
|
281
|
+
/**
|
|
282
|
+
* Check if the connection for the display is currently open
|
|
283
|
+
* @returns TRUE if open, FALSE if closing/closed
|
|
284
|
+
*/
|
|
285
|
+
is_open(): boolean;
|
|
286
|
+
/**
|
|
287
|
+
* Opens a TCP connection to the given `host` litening on
|
|
288
|
+
* `port`.
|
|
289
|
+
* @param host the hostname or IP address
|
|
290
|
+
* @param port the service name or port number
|
|
291
|
+
*/
|
|
292
|
+
open_host(host: string, port: number): void;
|
|
293
|
+
/**
|
|
294
|
+
* Set whether the remote desktop contents is automatically
|
|
295
|
+
* scaled to fit the available widget size, or whether it will
|
|
296
|
+
* be rendered at 1:1 size
|
|
297
|
+
* @param scaling TRUE to scale the desktop to fit, FALSE otherwise
|
|
298
|
+
*/
|
|
299
|
+
set_scaling(scaling: boolean): void;
|
|
300
|
+
|
|
301
|
+
// Inherited methods
|
|
302
|
+
/**
|
|
303
|
+
* Creates a binding between `source_property` on `source` and `target_property`
|
|
304
|
+
* on `target`.
|
|
305
|
+
*
|
|
306
|
+
* Whenever the `source_property` is changed the `target_property` is
|
|
307
|
+
* updated using the same value. For instance:
|
|
308
|
+
*
|
|
309
|
+
*
|
|
310
|
+
* ```c
|
|
311
|
+
* g_object_bind_property (action, "active", widget, "sensitive", 0);
|
|
312
|
+
* ```
|
|
313
|
+
*
|
|
314
|
+
*
|
|
315
|
+
* Will result in the "sensitive" property of the widget #GObject instance to be
|
|
316
|
+
* updated with the same value of the "active" property of the action #GObject
|
|
317
|
+
* instance.
|
|
318
|
+
*
|
|
319
|
+
* If `flags` contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
|
|
320
|
+
* if `target_property` on `target` changes then the `source_property` on `source`
|
|
321
|
+
* will be updated as well.
|
|
322
|
+
*
|
|
323
|
+
* The binding will automatically be removed when either the `source` or the
|
|
324
|
+
* `target` instances are finalized. To remove the binding without affecting the
|
|
325
|
+
* `source` and the `target` you can just call g_object_unref() on the returned
|
|
326
|
+
* #GBinding instance.
|
|
327
|
+
*
|
|
328
|
+
* Removing the binding by calling g_object_unref() on it must only be done if
|
|
329
|
+
* the binding, `source` and `target` are only used from a single thread and it
|
|
330
|
+
* is clear that both `source` and `target` outlive the binding. Especially it
|
|
331
|
+
* is not safe to rely on this if the binding, `source` or `target` can be
|
|
332
|
+
* finalized from different threads. Keep another reference to the binding and
|
|
333
|
+
* use g_binding_unbind() instead to be on the safe side.
|
|
334
|
+
*
|
|
335
|
+
* A #GObject can have multiple bindings.
|
|
336
|
+
* @param source_property the property on @source to bind
|
|
337
|
+
* @param target the target #GObject
|
|
338
|
+
* @param target_property the property on @target to bind
|
|
339
|
+
* @param flags flags to pass to #GBinding
|
|
340
|
+
* @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
|
|
341
|
+
*/
|
|
342
|
+
bind_property(
|
|
343
|
+
source_property: string,
|
|
344
|
+
target: GObject.Object,
|
|
345
|
+
target_property: string,
|
|
346
|
+
flags: GObject.BindingFlags,
|
|
347
|
+
): GObject.Binding;
|
|
348
|
+
/**
|
|
349
|
+
* Complete version of g_object_bind_property().
|
|
350
|
+
*
|
|
351
|
+
* Creates a binding between `source_property` on `source` and `target_property`
|
|
352
|
+
* on `target,` allowing you to set the transformation functions to be used by
|
|
353
|
+
* the binding.
|
|
354
|
+
*
|
|
355
|
+
* If `flags` contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
|
|
356
|
+
* if `target_property` on `target` changes then the `source_property` on `source`
|
|
357
|
+
* will be updated as well. The `transform_from` function is only used in case
|
|
358
|
+
* of bidirectional bindings, otherwise it will be ignored
|
|
359
|
+
*
|
|
360
|
+
* The binding will automatically be removed when either the `source` or the
|
|
361
|
+
* `target` instances are finalized. This will release the reference that is
|
|
362
|
+
* being held on the #GBinding instance; if you want to hold on to the
|
|
363
|
+
* #GBinding instance, you will need to hold a reference to it.
|
|
364
|
+
*
|
|
365
|
+
* To remove the binding, call g_binding_unbind().
|
|
366
|
+
*
|
|
367
|
+
* A #GObject can have multiple bindings.
|
|
368
|
+
*
|
|
369
|
+
* The same `user_data` parameter will be used for both `transform_to`
|
|
370
|
+
* and `transform_from` transformation functions; the `notify` function will
|
|
371
|
+
* be called once, when the binding is removed. If you need different data
|
|
372
|
+
* for each transformation function, please use
|
|
373
|
+
* g_object_bind_property_with_closures() instead.
|
|
374
|
+
* @param source_property the property on @source to bind
|
|
375
|
+
* @param target the target #GObject
|
|
376
|
+
* @param target_property the property on @target to bind
|
|
377
|
+
* @param flags flags to pass to #GBinding
|
|
378
|
+
* @param transform_to the transformation function from the @source to the @target, or %NULL to use the default
|
|
379
|
+
* @param transform_from the transformation function from the @target to the @source, or %NULL to use the default
|
|
380
|
+
* @param notify a function to call when disposing the binding, to free resources used by the transformation functions, or %NULL if not required
|
|
381
|
+
* @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
|
|
382
|
+
*/
|
|
383
|
+
bind_property_full(
|
|
384
|
+
source_property: string,
|
|
385
|
+
target: GObject.Object,
|
|
386
|
+
target_property: string,
|
|
387
|
+
flags: GObject.BindingFlags,
|
|
388
|
+
transform_to?: GObject.BindingTransformFunc | null,
|
|
389
|
+
transform_from?: GObject.BindingTransformFunc | null,
|
|
390
|
+
notify?: GLib.DestroyNotify | null,
|
|
391
|
+
): GObject.Binding;
|
|
392
|
+
// Conflicted with GObject.Object.bind_property_full
|
|
393
|
+
bind_property_full(...args: never[]): any;
|
|
394
|
+
/**
|
|
395
|
+
* This function is intended for #GObject implementations to re-enforce
|
|
396
|
+
* a [floating][floating-ref] object reference. Doing this is seldom
|
|
397
|
+
* required: all #GInitiallyUnowneds are created with a floating reference
|
|
398
|
+
* which usually just needs to be sunken by calling g_object_ref_sink().
|
|
399
|
+
*/
|
|
400
|
+
force_floating(): void;
|
|
401
|
+
/**
|
|
402
|
+
* Increases the freeze count on `object`. If the freeze count is
|
|
403
|
+
* non-zero, the emission of "notify" signals on `object` is
|
|
404
|
+
* stopped. The signals are queued until the freeze count is decreased
|
|
405
|
+
* to zero. Duplicate notifications are squashed so that at most one
|
|
406
|
+
* #GObject::notify signal is emitted for each property modified while the
|
|
407
|
+
* object is frozen.
|
|
408
|
+
*
|
|
409
|
+
* This is necessary for accessors that modify multiple properties to prevent
|
|
410
|
+
* premature notification while the object is still being modified.
|
|
411
|
+
*/
|
|
412
|
+
freeze_notify(): void;
|
|
413
|
+
/**
|
|
414
|
+
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
415
|
+
* @param key name of the key for that association
|
|
416
|
+
* @returns the data if found, or %NULL if no such data exists.
|
|
417
|
+
*/
|
|
418
|
+
get_data(key: string): any | null;
|
|
419
|
+
get_property(property_name: string): any;
|
|
420
|
+
/**
|
|
421
|
+
* This function gets back user data pointers stored via
|
|
422
|
+
* g_object_set_qdata().
|
|
423
|
+
* @param quark A #GQuark, naming the user data pointer
|
|
424
|
+
* @returns The user data pointer set, or %NULL
|
|
425
|
+
*/
|
|
426
|
+
get_qdata(quark: GLib.Quark): any | null;
|
|
427
|
+
/**
|
|
428
|
+
* Gets `n_properties` properties for an `object`.
|
|
429
|
+
* Obtained properties will be set to `values`. All properties must be valid.
|
|
430
|
+
* Warnings will be emitted and undefined behaviour may result if invalid
|
|
431
|
+
* properties are passed in.
|
|
432
|
+
* @param names the names of each property to get
|
|
433
|
+
* @param values the values of each property to get
|
|
434
|
+
*/
|
|
435
|
+
getv(names: string[], values: (GObject.Value | any)[]): void;
|
|
436
|
+
/**
|
|
437
|
+
* Checks whether `object` has a [floating][floating-ref] reference.
|
|
438
|
+
* @returns %TRUE if @object has a floating reference
|
|
439
|
+
*/
|
|
440
|
+
is_floating(): boolean;
|
|
441
|
+
/**
|
|
442
|
+
* Emits a "notify" signal for the property `property_name` on `object`.
|
|
443
|
+
*
|
|
444
|
+
* When possible, eg. when signaling a property change from within the class
|
|
445
|
+
* that registered the property, you should use g_object_notify_by_pspec()
|
|
446
|
+
* instead.
|
|
447
|
+
*
|
|
448
|
+
* Note that emission of the notify signal may be blocked with
|
|
449
|
+
* g_object_freeze_notify(). In this case, the signal emissions are queued
|
|
450
|
+
* and will be emitted (in reverse order) when g_object_thaw_notify() is
|
|
451
|
+
* called.
|
|
452
|
+
* @param property_name the name of a property installed on the class of @object.
|
|
453
|
+
*/
|
|
454
|
+
notify(property_name: string): void;
|
|
455
|
+
/**
|
|
456
|
+
* Emits a "notify" signal for the property specified by `pspec` on `object`.
|
|
457
|
+
*
|
|
458
|
+
* This function omits the property name lookup, hence it is faster than
|
|
459
|
+
* g_object_notify().
|
|
460
|
+
*
|
|
461
|
+
* One way to avoid using g_object_notify() from within the
|
|
462
|
+
* class that registered the properties, and using g_object_notify_by_pspec()
|
|
463
|
+
* instead, is to store the GParamSpec used with
|
|
464
|
+
* g_object_class_install_property() inside a static array, e.g.:
|
|
465
|
+
*
|
|
466
|
+
*
|
|
467
|
+
* ```c
|
|
468
|
+
* typedef enum
|
|
469
|
+
* {
|
|
470
|
+
* PROP_FOO = 1,
|
|
471
|
+
* PROP_LAST
|
|
472
|
+
* } MyObjectProperty;
|
|
473
|
+
*
|
|
474
|
+
* static GParamSpec *properties[PROP_LAST];
|
|
475
|
+
*
|
|
476
|
+
* static void
|
|
477
|
+
* my_object_class_init (MyObjectClass *klass)
|
|
478
|
+
* {
|
|
479
|
+
* properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
|
|
480
|
+
* 0, 100,
|
|
481
|
+
* 50,
|
|
482
|
+
* G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
|
|
483
|
+
* g_object_class_install_property (gobject_class,
|
|
484
|
+
* PROP_FOO,
|
|
485
|
+
* properties[PROP_FOO]);
|
|
486
|
+
* }
|
|
487
|
+
* ```
|
|
488
|
+
*
|
|
489
|
+
*
|
|
490
|
+
* and then notify a change on the "foo" property with:
|
|
491
|
+
*
|
|
492
|
+
*
|
|
493
|
+
* ```c
|
|
494
|
+
* g_object_notify_by_pspec (self, properties[PROP_FOO]);
|
|
495
|
+
* ```
|
|
496
|
+
*
|
|
497
|
+
* @param pspec the #GParamSpec of a property installed on the class of @object.
|
|
498
|
+
*/
|
|
499
|
+
notify_by_pspec(pspec: GObject.ParamSpec): void;
|
|
500
|
+
/**
|
|
501
|
+
* Increases the reference count of `object`.
|
|
502
|
+
*
|
|
503
|
+
* Since GLib 2.56, if `GLIB_VERSION_MAX_ALLOWED` is 2.56 or greater, the type
|
|
504
|
+
* of `object` will be propagated to the return type (using the GCC typeof()
|
|
505
|
+
* extension), so any casting the caller needs to do on the return type must be
|
|
506
|
+
* explicit.
|
|
507
|
+
* @returns the same @object
|
|
508
|
+
*/
|
|
509
|
+
ref(): GObject.Object;
|
|
510
|
+
/**
|
|
511
|
+
* Increase the reference count of `object,` and possibly remove the
|
|
512
|
+
* [floating][floating-ref] reference, if `object` has a floating reference.
|
|
513
|
+
*
|
|
514
|
+
* In other words, if the object is floating, then this call "assumes
|
|
515
|
+
* ownership" of the floating reference, converting it to a normal
|
|
516
|
+
* reference by clearing the floating flag while leaving the reference
|
|
517
|
+
* count unchanged. If the object is not floating, then this call
|
|
518
|
+
* adds a new normal reference increasing the reference count by one.
|
|
519
|
+
*
|
|
520
|
+
* Since GLib 2.56, the type of `object` will be propagated to the return type
|
|
521
|
+
* under the same conditions as for g_object_ref().
|
|
522
|
+
* @returns @object
|
|
523
|
+
*/
|
|
524
|
+
ref_sink(): GObject.Object;
|
|
525
|
+
/**
|
|
526
|
+
* Releases all references to other objects. This can be used to break
|
|
527
|
+
* reference cycles.
|
|
528
|
+
*
|
|
529
|
+
* This function should only be called from object system implementations.
|
|
530
|
+
*/
|
|
531
|
+
run_dispose(): void;
|
|
532
|
+
/**
|
|
533
|
+
* Each object carries around a table of associations from
|
|
534
|
+
* strings to pointers. This function lets you set an association.
|
|
535
|
+
*
|
|
536
|
+
* If the object already had an association with that name,
|
|
537
|
+
* the old association will be destroyed.
|
|
538
|
+
*
|
|
539
|
+
* Internally, the `key` is converted to a #GQuark using g_quark_from_string().
|
|
540
|
+
* This means a copy of `key` is kept permanently (even after `object` has been
|
|
541
|
+
* finalized) — so it is recommended to only use a small, bounded set of values
|
|
542
|
+
* for `key` in your program, to avoid the #GQuark storage growing unbounded.
|
|
543
|
+
* @param key name of the key
|
|
544
|
+
* @param data data to associate with that key
|
|
545
|
+
*/
|
|
546
|
+
set_data(key: string, data?: any | null): void;
|
|
547
|
+
set_property(property_name: string, value: any): void;
|
|
548
|
+
/**
|
|
549
|
+
* Remove a specified datum from the object's data associations,
|
|
550
|
+
* without invoking the association's destroy handler.
|
|
551
|
+
* @param key name of the key
|
|
552
|
+
* @returns the data if found, or %NULL if no such data exists.
|
|
553
|
+
*/
|
|
554
|
+
steal_data(key: string): any | null;
|
|
555
|
+
/**
|
|
556
|
+
* This function gets back user data pointers stored via
|
|
557
|
+
* g_object_set_qdata() and removes the `data` from object
|
|
558
|
+
* without invoking its destroy() function (if any was
|
|
559
|
+
* set).
|
|
560
|
+
* Usually, calling this function is only required to update
|
|
561
|
+
* user data pointers with a destroy notifier, for example:
|
|
562
|
+
*
|
|
563
|
+
* ```c
|
|
564
|
+
* void
|
|
565
|
+
* object_add_to_user_list (GObject *object,
|
|
566
|
+
* const gchar *new_string)
|
|
567
|
+
* {
|
|
568
|
+
* // the quark, naming the object data
|
|
569
|
+
* GQuark quark_string_list = g_quark_from_static_string ("my-string-list");
|
|
570
|
+
* // retrieve the old string list
|
|
571
|
+
* GList *list = g_object_steal_qdata (object, quark_string_list);
|
|
572
|
+
*
|
|
573
|
+
* // prepend new string
|
|
574
|
+
* list = g_list_prepend (list, g_strdup (new_string));
|
|
575
|
+
* // this changed 'list', so we need to set it again
|
|
576
|
+
* g_object_set_qdata_full (object, quark_string_list, list, free_string_list);
|
|
577
|
+
* }
|
|
578
|
+
* static void
|
|
579
|
+
* free_string_list (gpointer data)
|
|
580
|
+
* {
|
|
581
|
+
* GList *node, *list = data;
|
|
582
|
+
*
|
|
583
|
+
* for (node = list; node; node = node->next)
|
|
584
|
+
* g_free (node->data);
|
|
585
|
+
* g_list_free (list);
|
|
586
|
+
* }
|
|
587
|
+
* ```
|
|
588
|
+
*
|
|
589
|
+
* Using g_object_get_qdata() in the above example, instead of
|
|
590
|
+
* g_object_steal_qdata() would have left the destroy function set,
|
|
591
|
+
* and thus the partial string list would have been freed upon
|
|
592
|
+
* g_object_set_qdata_full().
|
|
593
|
+
* @param quark A #GQuark, naming the user data pointer
|
|
594
|
+
* @returns The user data pointer set, or %NULL
|
|
595
|
+
*/
|
|
596
|
+
steal_qdata(quark: GLib.Quark): any | null;
|
|
597
|
+
/**
|
|
598
|
+
* Reverts the effect of a previous call to
|
|
599
|
+
* g_object_freeze_notify(). The freeze count is decreased on `object`
|
|
600
|
+
* and when it reaches zero, queued "notify" signals are emitted.
|
|
601
|
+
*
|
|
602
|
+
* Duplicate notifications for each property are squashed so that at most one
|
|
603
|
+
* #GObject::notify signal is emitted for each property, in the reverse order
|
|
604
|
+
* in which they have been queued.
|
|
605
|
+
*
|
|
606
|
+
* It is an error to call this function when the freeze count is zero.
|
|
607
|
+
*/
|
|
608
|
+
thaw_notify(): void;
|
|
609
|
+
/**
|
|
610
|
+
* Decreases the reference count of `object`. When its reference count
|
|
611
|
+
* drops to 0, the object is finalized (i.e. its memory is freed).
|
|
612
|
+
*
|
|
613
|
+
* If the pointer to the #GObject may be reused in future (for example, if it is
|
|
614
|
+
* an instance variable of another object), it is recommended to clear the
|
|
615
|
+
* pointer to %NULL rather than retain a dangling pointer to a potentially
|
|
616
|
+
* invalid #GObject instance. Use g_clear_object() for this.
|
|
617
|
+
*/
|
|
618
|
+
unref(): void;
|
|
619
|
+
/**
|
|
620
|
+
* This function essentially limits the life time of the `closure` to
|
|
621
|
+
* the life time of the object. That is, when the object is finalized,
|
|
622
|
+
* the `closure` is invalidated by calling g_closure_invalidate() on
|
|
623
|
+
* it, in order to prevent invocations of the closure with a finalized
|
|
624
|
+
* (nonexisting) object. Also, g_object_ref() and g_object_unref() are
|
|
625
|
+
* added as marshal guards to the `closure,` to ensure that an extra
|
|
626
|
+
* reference count is held on `object` during invocation of the
|
|
627
|
+
* `closure`. Usually, this function will be called on closures that
|
|
628
|
+
* use this `object` as closure data.
|
|
629
|
+
* @param closure #GClosure to watch
|
|
630
|
+
*/
|
|
631
|
+
watch_closure(closure: GObject.Closure): void;
|
|
632
|
+
vfunc_constructed(): void;
|
|
633
|
+
vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
|
|
634
|
+
vfunc_dispose(): void;
|
|
635
|
+
vfunc_finalize(): void;
|
|
636
|
+
vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
637
|
+
/**
|
|
638
|
+
* Emits a "notify" signal for the property `property_name` on `object`.
|
|
639
|
+
*
|
|
640
|
+
* When possible, eg. when signaling a property change from within the class
|
|
641
|
+
* that registered the property, you should use g_object_notify_by_pspec()
|
|
642
|
+
* instead.
|
|
643
|
+
*
|
|
644
|
+
* Note that emission of the notify signal may be blocked with
|
|
645
|
+
* g_object_freeze_notify(). In this case, the signal emissions are queued
|
|
646
|
+
* and will be emitted (in reverse order) when g_object_thaw_notify() is
|
|
647
|
+
* called.
|
|
648
|
+
* @param pspec
|
|
649
|
+
*/
|
|
650
|
+
vfunc_notify(pspec: GObject.ParamSpec): void;
|
|
651
|
+
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
652
|
+
disconnect(id: number): void;
|
|
653
|
+
set(properties: { [key: string]: any }): void;
|
|
654
|
+
block_signal_handler(id: number): any;
|
|
655
|
+
unblock_signal_handler(id: number): any;
|
|
656
|
+
stop_emission_by_name(detailedName: string): any;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
module Session {
|
|
660
|
+
// Signal callback interfaces
|
|
661
|
+
|
|
662
|
+
interface RdpAuthFailure {
|
|
663
|
+
(object: string): void;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
interface RdpConnected {
|
|
667
|
+
(): void;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
interface RdpDisconnected {
|
|
671
|
+
(): void;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
interface RdpError {
|
|
675
|
+
(object: string): void;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
// Constructor properties interface
|
|
679
|
+
|
|
680
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
681
|
+
display: Gtk.Widget;
|
|
682
|
+
domain: string;
|
|
683
|
+
hostname: string;
|
|
684
|
+
monitor_layout_supported: boolean;
|
|
685
|
+
monitorLayoutSupported: boolean;
|
|
686
|
+
password: string;
|
|
687
|
+
port: number;
|
|
688
|
+
scaling: boolean;
|
|
689
|
+
username: string;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
class Session extends GObject.Object {
|
|
694
|
+
static $gtype: GObject.GType<Session>;
|
|
695
|
+
|
|
696
|
+
// Own properties of GtkFrdp.Session
|
|
697
|
+
|
|
698
|
+
get display(): Gtk.Widget;
|
|
699
|
+
set display(val: Gtk.Widget);
|
|
700
|
+
get domain(): string;
|
|
701
|
+
set domain(val: string);
|
|
702
|
+
get hostname(): string;
|
|
703
|
+
set hostname(val: string);
|
|
704
|
+
get monitor_layout_supported(): boolean;
|
|
705
|
+
set monitor_layout_supported(val: boolean);
|
|
706
|
+
get monitorLayoutSupported(): boolean;
|
|
707
|
+
set monitorLayoutSupported(val: boolean);
|
|
708
|
+
get password(): string;
|
|
709
|
+
set password(val: string);
|
|
710
|
+
get port(): number;
|
|
711
|
+
set port(val: number);
|
|
712
|
+
get scaling(): boolean;
|
|
713
|
+
set scaling(val: boolean);
|
|
714
|
+
get username(): string;
|
|
715
|
+
set username(val: string);
|
|
716
|
+
|
|
717
|
+
// Constructors of GtkFrdp.Session
|
|
718
|
+
|
|
719
|
+
constructor(properties?: Partial<Session.ConstructorProps>, ...args: any[]);
|
|
720
|
+
|
|
721
|
+
_init(...args: any[]): void;
|
|
722
|
+
|
|
723
|
+
static ['new'](display: Display): Session;
|
|
724
|
+
|
|
725
|
+
// Own signals of GtkFrdp.Session
|
|
726
|
+
|
|
727
|
+
connect_after(id: string, callback: (...args: any[]) => any): number;
|
|
728
|
+
emit(id: string, ...args: any[]): void;
|
|
729
|
+
connect_after(signal: 'rdp-auth-failure', callback: (_source: this, object: string) => void): number;
|
|
730
|
+
emit(signal: 'rdp-auth-failure', object: string): void;
|
|
731
|
+
connect_after(signal: 'rdp-connected', callback: (_source: this) => void): number;
|
|
732
|
+
emit(signal: 'rdp-connected'): void;
|
|
733
|
+
connect_after(signal: 'rdp-disconnected', callback: (_source: this) => void): number;
|
|
734
|
+
emit(signal: 'rdp-disconnected'): void;
|
|
735
|
+
connect_after(signal: 'rdp-error', callback: (_source: this, object: string) => void): number;
|
|
736
|
+
emit(signal: 'rdp-error', object: string): void;
|
|
737
|
+
|
|
738
|
+
// Own methods of GtkFrdp.Session
|
|
739
|
+
|
|
740
|
+
close(): void;
|
|
741
|
+
connect(
|
|
742
|
+
hostname: string,
|
|
743
|
+
port: number,
|
|
744
|
+
cancellable?: Gio.Cancellable | null,
|
|
745
|
+
callback?: Gio.AsyncReadyCallback<this> | null,
|
|
746
|
+
): void;
|
|
747
|
+
connect(...args: never[]): any;
|
|
748
|
+
connect_finish(result: Gio.AsyncResult): boolean;
|
|
749
|
+
is_open(): boolean;
|
|
750
|
+
mouse_event(event: MouseEvent, x: number, y: number): void;
|
|
751
|
+
mouse_pointer(enter: boolean): void;
|
|
752
|
+
mouse_smooth_scroll_event(x: number, y: number, delta_x: number, delta_y: number): void;
|
|
753
|
+
send_key(key: Gdk.EventKey): void;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
type DisplayClass = typeof Display;
|
|
757
|
+
abstract class DisplayPrivate {
|
|
758
|
+
static $gtype: GObject.GType<DisplayPrivate>;
|
|
759
|
+
|
|
760
|
+
// Constructors of GtkFrdp.DisplayPrivate
|
|
761
|
+
|
|
762
|
+
_init(...args: any[]): void;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
type SessionClass = typeof Session;
|
|
766
|
+
abstract class SessionPrivate {
|
|
767
|
+
static $gtype: GObject.GType<SessionPrivate>;
|
|
768
|
+
|
|
769
|
+
// Constructors of GtkFrdp.SessionPrivate
|
|
770
|
+
|
|
771
|
+
_init(...args: any[]): void;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Name of the imported GIR library
|
|
776
|
+
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
777
|
+
*/
|
|
778
|
+
const __name__: string;
|
|
779
|
+
/**
|
|
780
|
+
* Version of the imported GIR library
|
|
781
|
+
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
782
|
+
*/
|
|
783
|
+
const __version__: string;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
export default GtkFrdp;
|
|
787
|
+
// END
|
package/gtkfrdp-0.2.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@girs/gtkfrdp-0.2",
|
|
3
|
+
"version": "0.2.0-4.0.0-beta.3",
|
|
4
|
+
"description": "GJS TypeScript type definitions for GtkFrdp-0.2, generated from library version 0.2.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "gtkfrdp-0.2.js",
|
|
7
|
+
"main": "gtkfrdp-0.2.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
"./ambient": {
|
|
10
|
+
"types": "./gtkfrdp-0.2-ambient.d.ts",
|
|
11
|
+
"import": "./gtkfrdp-0.2-ambient.js",
|
|
12
|
+
"default": "./gtkfrdp-0.2-ambient.js"
|
|
13
|
+
},
|
|
14
|
+
"./import": {
|
|
15
|
+
"types": "./gtkfrdp-0.2-import.d.ts",
|
|
16
|
+
"import": "./gtkfrdp-0.2-import.js",
|
|
17
|
+
"default": "./gtkfrdp-0.2-import.js"
|
|
18
|
+
},
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./gtkfrdp-0.2.d.ts",
|
|
21
|
+
"import": "./gtkfrdp-0.2.js",
|
|
22
|
+
"default": "./gtkfrdp-0.2.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"test": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gtkfrdp-0.2.d.ts"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@girs/atk-1.0": "^2.52.0-4.0.0-beta.3",
|
|
30
|
+
"@girs/cairo-1.0": "^1.0.0-4.0.0-beta.3",
|
|
31
|
+
"@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.3",
|
|
32
|
+
"@girs/gdk-3.0": "^3.24.41-4.0.0-beta.3",
|
|
33
|
+
"@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.3",
|
|
34
|
+
"@girs/gio-2.0": "^2.80.0-4.0.0-beta.3",
|
|
35
|
+
"@girs/gjs": "^4.0.0-beta.3",
|
|
36
|
+
"@girs/glib-2.0": "^2.80.0-4.0.0-beta.3",
|
|
37
|
+
"@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.3",
|
|
38
|
+
"@girs/gobject-2.0": "^2.80.0-4.0.0-beta.3",
|
|
39
|
+
"@girs/gtk-3.0": "^3.24.41-4.0.0-beta.3",
|
|
40
|
+
"@girs/harfbuzz-0.0": "^8.3.1-4.0.0-beta.3",
|
|
41
|
+
"@girs/pango-1.0": "^1.51.0-4.0.0-beta.3",
|
|
42
|
+
"@girs/xlib-2.0": "^2.0.0-4.0.0-beta.3"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"typescript": "*"
|
|
46
|
+
},
|
|
47
|
+
"keywords": [
|
|
48
|
+
"Gir",
|
|
49
|
+
"TypeScript",
|
|
50
|
+
"types",
|
|
51
|
+
"GObject-Introspection",
|
|
52
|
+
"GJS",
|
|
53
|
+
"GtkFrdp-0.2"
|
|
54
|
+
],
|
|
55
|
+
"author": "ts-for-gir",
|
|
56
|
+
"license": "MIT",
|
|
57
|
+
"repository": {
|
|
58
|
+
"type": "git",
|
|
59
|
+
"url": "git+https://github.com/gjsify/ts-for-gir.git"
|
|
60
|
+
},
|
|
61
|
+
"bugs": {
|
|
62
|
+
"url": "https://github.com/gjsify/ts-for-gir/issues"
|
|
63
|
+
},
|
|
64
|
+
"homepage": "https://github.com/gjsify/types/tree/main/gtkfrdp-0.2#readme"
|
|
65
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
// General settings for code interpretation
|
|
4
|
+
"target": "ESNext",
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"lib": ["ESNext"],
|
|
7
|
+
"types": [],
|
|
8
|
+
"experimentalDecorators": true,
|
|
9
|
+
"moduleResolution": "node",
|
|
10
|
+
"noEmit": true,
|
|
11
|
+
"noEmitOnError": false,
|
|
12
|
+
"baseUrl": "./",
|
|
13
|
+
"rootDir": ".",
|
|
14
|
+
// General settings for code generation
|
|
15
|
+
"removeComments": false,
|
|
16
|
+
"inlineSourceMap": false,
|
|
17
|
+
"inlineSources": false,
|
|
18
|
+
"newLine": "LF"
|
|
19
|
+
},
|
|
20
|
+
"include": ["./gtkfrdp-0.2.d.ts"]
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|