@girs/atspi-2.0 2.0.0-4.0.0-beta.21 → 2.0.0-4.0.0-beta.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/atspi-2.0.d.ts +502 -23
  3. package/package.json +5 -5
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/atspi-2.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Atspi-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.21.
8
+ GJS TypeScript type definitions for Atspi-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.24.
9
9
 
10
10
 
11
11
  ## Install
package/atspi-2.0.d.ts CHANGED
@@ -7,6 +7,8 @@
7
7
  * The based EJS template file is used for the generated .d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
8
8
  */
9
9
 
10
+ import '@girs/gjs';
11
+
10
12
  // Module dependencies
11
13
  import type GObject from '@girs/gobject-2.0';
12
14
  import type GLib from '@girs/glib-2.0';
@@ -1986,6 +1988,7 @@ export namespace Atspi {
1986
1988
  const DBUS_INTERFACE_HYPERLINK: string;
1987
1989
  const DBUS_INTERFACE_HYPERTEXT: string;
1988
1990
  const DBUS_INTERFACE_IMAGE: string;
1991
+ const DBUS_INTERFACE_KEYBOARD_MONITOR: string;
1989
1992
  const DBUS_INTERFACE_REGISTRY: string;
1990
1993
  const DBUS_INTERFACE_SELECTION: string;
1991
1994
  const DBUS_INTERFACE_SOCKET: string;
@@ -1993,12 +1996,16 @@ export namespace Atspi {
1993
1996
  const DBUS_INTERFACE_TABLE_CELL: string;
1994
1997
  const DBUS_INTERFACE_TEXT: string;
1995
1998
  const DBUS_INTERFACE_VALUE: string;
1999
+ const DBUS_NAME_A11Y_MANAGER: string;
1996
2000
  const DBUS_NAME_REGISTRY: string;
2001
+ const DBUS_PATH_A11Y_MANAGER: string;
1997
2002
  const DBUS_PATH_DEC: string;
1998
2003
  const DBUS_PATH_NULL: string;
1999
2004
  const DBUS_PATH_REGISTRY: string;
2000
2005
  const DBUS_PATH_ROOT: string;
2001
2006
  const DBUS_PATH_SCREEN_READER: string;
2007
+ const DEVICE_A11Y_MANAGER_VIRTUAL_MOD_END: number;
2008
+ const DEVICE_A11Y_MANAGER_VIRTUAL_MOD_START: number;
2002
2009
  /**
2003
2010
  * One higher than the highest valid value of #AtspiEventType.
2004
2011
  */
@@ -2336,14 +2343,10 @@ export namespace Atspi {
2336
2343
  ALL_WINDOWS,
2337
2344
  }
2338
2345
  namespace Accessible {
2339
- // Signal callback interfaces
2340
-
2341
- interface ModeChanged {
2342
- (arg1: number, why: string): void;
2343
- }
2344
-
2345
- interface RegionChanged {
2346
- (arg1: number, arg2: number): void;
2346
+ // Signal signatures
2347
+ interface SignalSignatures extends Object.SignalSignatures {
2348
+ 'mode-changed': (arg0: number, arg1: string) => void;
2349
+ 'region-changed': (arg0: number, arg1: number) => void;
2347
2350
  }
2348
2351
 
2349
2352
  // Constructor properties interface
@@ -2389,6 +2392,15 @@ export namespace Atspi {
2389
2392
  {
2390
2393
  static $gtype: GObject.GType<Accessible>;
2391
2394
 
2395
+ /**
2396
+ * Compile-time signal type information.
2397
+ *
2398
+ * This instance property is generated only for TypeScript type checking.
2399
+ * It is not defined at runtime and should not be accessed in JS code.
2400
+ * @internal
2401
+ */
2402
+ $signals: Accessible.SignalSignatures;
2403
+
2392
2404
  // Fields
2393
2405
 
2394
2406
  accessible_parent: Accessible;
@@ -2408,15 +2420,21 @@ export namespace Atspi {
2408
2420
 
2409
2421
  // Signals
2410
2422
 
2411
- connect(id: string, callback: (...args: any[]) => any): number;
2412
- connect_after(id: string, callback: (...args: any[]) => any): number;
2413
- emit(id: string, ...args: any[]): void;
2414
- connect(signal: 'mode-changed', callback: (_source: this, arg1: number, why: string) => void): number;
2415
- connect_after(signal: 'mode-changed', callback: (_source: this, arg1: number, why: string) => void): number;
2416
- emit(signal: 'mode-changed', arg1: number, why: string): void;
2417
- connect(signal: 'region-changed', callback: (_source: this, arg1: number, arg2: number) => void): number;
2418
- connect_after(signal: 'region-changed', callback: (_source: this, arg1: number, arg2: number) => void): number;
2419
- emit(signal: 'region-changed', arg1: number, arg2: number): void;
2423
+ connect<K extends keyof Accessible.SignalSignatures>(
2424
+ signal: K,
2425
+ callback: GObject.SignalCallback<this, Accessible.SignalSignatures[K]>,
2426
+ ): number;
2427
+ connect(signal: string, callback: (...args: any[]) => any): number;
2428
+ connect_after<K extends keyof Accessible.SignalSignatures>(
2429
+ signal: K,
2430
+ callback: GObject.SignalCallback<this, Accessible.SignalSignatures[K]>,
2431
+ ): number;
2432
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
2433
+ emit<K extends keyof Accessible.SignalSignatures>(
2434
+ signal: K,
2435
+ ...args: GObject.GjsParameters<Accessible.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
2436
+ ): void;
2437
+ emit(signal: string, ...args: any[]): void;
2420
2438
 
2421
2439
  // Virtual methods
2422
2440
 
@@ -3839,7 +3857,21 @@ export namespace Atspi {
3839
3857
  * @returns the data if found, or %NULL if no such data exists.
3840
3858
  */
3841
3859
  get_data(key: string): any | null;
3842
- get_property(property_name: string): any;
3860
+ /**
3861
+ * Gets a property of an object.
3862
+ *
3863
+ * The value can be:
3864
+ * - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
3865
+ * - a GObject.Value initialized with the expected type of the property
3866
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
3867
+ *
3868
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
3869
+ *
3870
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
3871
+ * @param property_name The name of the property to get
3872
+ * @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
3873
+ */
3874
+ get_property(property_name: string, value: GObject.Value | any): any;
3843
3875
  /**
3844
3876
  * This function gets back user data pointers stored via
3845
3877
  * g_object_set_qdata().
@@ -3967,7 +3999,12 @@ export namespace Atspi {
3967
3999
  * @param data data to associate with that key
3968
4000
  */
3969
4001
  set_data(key: string, data?: any | null): void;
3970
- set_property(property_name: string, value: any): void;
4002
+ /**
4003
+ * Sets a property on an object.
4004
+ * @param property_name The name of the property to set
4005
+ * @param value The value to set the property to
4006
+ */
4007
+ set_property(property_name: string, value: GObject.Value | any): void;
3971
4008
  /**
3972
4009
  * Remove a specified datum from the object's data associations,
3973
4010
  * without invoking the association's destroy handler.
@@ -4117,14 +4154,37 @@ export namespace Atspi {
4117
4154
  * @param pspec
4118
4155
  */
4119
4156
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
4157
+ /**
4158
+ * Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.
4159
+ * @param id Handler ID of the handler to be disconnected
4160
+ */
4120
4161
  disconnect(id: number): void;
4162
+ /**
4163
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
4164
+ * @param properties Object containing the properties to set
4165
+ */
4121
4166
  set(properties: { [key: string]: any }): void;
4122
- block_signal_handler(id: number): any;
4123
- unblock_signal_handler(id: number): any;
4124
- stop_emission_by_name(detailedName: string): any;
4167
+ /**
4168
+ * Blocks a handler of an instance so it will not be called during any signal emissions
4169
+ * @param id Handler ID of the handler to be blocked
4170
+ */
4171
+ block_signal_handler(id: number): void;
4172
+ /**
4173
+ * Unblocks a handler so it will be called again during any signal emissions
4174
+ * @param id Handler ID of the handler to be unblocked
4175
+ */
4176
+ unblock_signal_handler(id: number): void;
4177
+ /**
4178
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
4179
+ * @param detailedName Name of the signal to stop emission of
4180
+ */
4181
+ stop_emission_by_name(detailedName: string): void;
4125
4182
  }
4126
4183
 
4127
4184
  namespace Application {
4185
+ // Signal signatures
4186
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
4187
+
4128
4188
  // Constructor properties interface
4129
4189
 
4130
4190
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -4140,6 +4200,15 @@ export namespace Atspi {
4140
4200
  class Application extends GObject.Object {
4141
4201
  static $gtype: GObject.GType<Application>;
4142
4202
 
4203
+ /**
4204
+ * Compile-time signal type information.
4205
+ *
4206
+ * This instance property is generated only for TypeScript type checking.
4207
+ * It is not defined at runtime and should not be accessed in JS code.
4208
+ * @internal
4209
+ */
4210
+ $signals: Application.SignalSignatures;
4211
+
4143
4212
  // Fields
4144
4213
 
4145
4214
  bus_name: string;
@@ -4155,17 +4224,67 @@ export namespace Atspi {
4155
4224
  constructor(properties?: Partial<Application.ConstructorProps>, ...args: any[]);
4156
4225
 
4157
4226
  _init(...args: any[]): void;
4227
+
4228
+ // Signals
4229
+
4230
+ connect<K extends keyof Application.SignalSignatures>(
4231
+ signal: K,
4232
+ callback: GObject.SignalCallback<this, Application.SignalSignatures[K]>,
4233
+ ): number;
4234
+ connect(signal: string, callback: (...args: any[]) => any): number;
4235
+ connect_after<K extends keyof Application.SignalSignatures>(
4236
+ signal: K,
4237
+ callback: GObject.SignalCallback<this, Application.SignalSignatures[K]>,
4238
+ ): number;
4239
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
4240
+ emit<K extends keyof Application.SignalSignatures>(
4241
+ signal: K,
4242
+ ...args: GObject.GjsParameters<Application.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
4243
+ ): void;
4244
+ emit(signal: string, ...args: any[]): void;
4158
4245
  }
4159
4246
 
4160
4247
  namespace Device {
4248
+ // Signal signatures
4249
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
4250
+ 'notify::app-id': (pspec: GObject.ParamSpec) => void;
4251
+ }
4252
+
4161
4253
  // Constructor properties interface
4162
4254
 
4163
- interface ConstructorProps extends GObject.Object.ConstructorProps {}
4255
+ interface ConstructorProps extends GObject.Object.ConstructorProps {
4256
+ app_id: string;
4257
+ appId: string;
4258
+ }
4164
4259
  }
4165
4260
 
4166
4261
  class Device extends GObject.Object {
4167
4262
  static $gtype: GObject.GType<Device>;
4168
4263
 
4264
+ // Properties
4265
+
4266
+ /**
4267
+ * The application ID of the application that created this device.
4268
+ * The ID might be used for access control purposes
4269
+ * by some device backends.
4270
+ */
4271
+ get app_id(): string;
4272
+ /**
4273
+ * The application ID of the application that created this device.
4274
+ * The ID might be used for access control purposes
4275
+ * by some device backends.
4276
+ */
4277
+ get appId(): string;
4278
+
4279
+ /**
4280
+ * Compile-time signal type information.
4281
+ *
4282
+ * This instance property is generated only for TypeScript type checking.
4283
+ * It is not defined at runtime and should not be accessed in JS code.
4284
+ * @internal
4285
+ */
4286
+ $signals: Device.SignalSignatures;
4287
+
4169
4288
  // Constructors
4170
4289
 
4171
4290
  constructor(properties?: Partial<Device.ConstructorProps>, ...args: any[]);
@@ -4174,6 +4293,26 @@ export namespace Atspi {
4174
4293
 
4175
4294
  static ['new'](): Device;
4176
4295
 
4296
+ static new_full(app_id?: string | null): Device;
4297
+
4298
+ // Signals
4299
+
4300
+ connect<K extends keyof Device.SignalSignatures>(
4301
+ signal: K,
4302
+ callback: GObject.SignalCallback<this, Device.SignalSignatures[K]>,
4303
+ ): number;
4304
+ connect(signal: string, callback: (...args: any[]) => any): number;
4305
+ connect_after<K extends keyof Device.SignalSignatures>(
4306
+ signal: K,
4307
+ callback: GObject.SignalCallback<this, Device.SignalSignatures[K]>,
4308
+ ): number;
4309
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
4310
+ emit<K extends keyof Device.SignalSignatures>(
4311
+ signal: K,
4312
+ ...args: GObject.GjsParameters<Device.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
4313
+ ): void;
4314
+ emit(signal: string, ...args: any[]): void;
4315
+
4177
4316
  // Virtual methods
4178
4317
 
4179
4318
  vfunc_add_key_grab(kd: KeyDefinition): boolean;
@@ -4283,6 +4422,10 @@ export namespace Atspi {
4283
4422
  * @param name a string indicating which mouse event to be synthesized (e.g. "b1p", "b1c", "b2r", "rel", "abs").
4284
4423
  */
4285
4424
  generate_mouse_event(obj: Accessible, x: number, y: number, name: string): void;
4425
+ /**
4426
+ * Returns the application ID of the device.
4427
+ */
4428
+ get_app_id(): string;
4286
4429
  get_grab_by_id(id: number): KeyDefinition;
4287
4430
  /**
4288
4431
  * Gets the modifier for a given keysym, if one exists. Does not create a new
@@ -4347,6 +4490,11 @@ export namespace Atspi {
4347
4490
  * @param id the identifier of the grab to be removed.
4348
4491
  */
4349
4492
  remove_key_grab(id: number): void;
4493
+ /**
4494
+ * Sets the application ID of the device.
4495
+ * @param app_id the application ID.
4496
+ */
4497
+ set_app_id(app_id: string): void;
4350
4498
  /**
4351
4499
  * Removes a keyboard grab added via a call to atspi_device_add_keyboard.
4352
4500
  */
@@ -4363,7 +4511,64 @@ export namespace Atspi {
4363
4511
  unmap_modifier(keycode: number): void;
4364
4512
  }
4365
4513
 
4514
+ namespace DeviceA11yManager {
4515
+ // Signal signatures
4516
+ interface SignalSignatures extends Device.SignalSignatures {
4517
+ 'notify::app-id': (pspec: GObject.ParamSpec) => void;
4518
+ }
4519
+
4520
+ // Constructor properties interface
4521
+
4522
+ interface ConstructorProps extends Device.ConstructorProps {}
4523
+ }
4524
+
4525
+ class DeviceA11yManager extends Device {
4526
+ static $gtype: GObject.GType<DeviceA11yManager>;
4527
+
4528
+ /**
4529
+ * Compile-time signal type information.
4530
+ *
4531
+ * This instance property is generated only for TypeScript type checking.
4532
+ * It is not defined at runtime and should not be accessed in JS code.
4533
+ * @internal
4534
+ */
4535
+ $signals: DeviceA11yManager.SignalSignatures;
4536
+
4537
+ // Constructors
4538
+
4539
+ constructor(properties?: Partial<DeviceA11yManager.ConstructorProps>, ...args: any[]);
4540
+
4541
+ _init(...args: any[]): void;
4542
+
4543
+ static try_new(): DeviceA11yManager;
4544
+
4545
+ static try_new_full(app_id?: string | null): DeviceA11yManager;
4546
+
4547
+ // Signals
4548
+
4549
+ connect<K extends keyof DeviceA11yManager.SignalSignatures>(
4550
+ signal: K,
4551
+ callback: GObject.SignalCallback<this, DeviceA11yManager.SignalSignatures[K]>,
4552
+ ): number;
4553
+ connect(signal: string, callback: (...args: any[]) => any): number;
4554
+ connect_after<K extends keyof DeviceA11yManager.SignalSignatures>(
4555
+ signal: K,
4556
+ callback: GObject.SignalCallback<this, DeviceA11yManager.SignalSignatures[K]>,
4557
+ ): number;
4558
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
4559
+ emit<K extends keyof DeviceA11yManager.SignalSignatures>(
4560
+ signal: K,
4561
+ ...args: GObject.GjsParameters<DeviceA11yManager.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
4562
+ ): void;
4563
+ emit(signal: string, ...args: any[]): void;
4564
+ }
4565
+
4366
4566
  namespace DeviceLegacy {
4567
+ // Signal signatures
4568
+ interface SignalSignatures extends Device.SignalSignatures {
4569
+ 'notify::app-id': (pspec: GObject.ParamSpec) => void;
4570
+ }
4571
+
4367
4572
  // Constructor properties interface
4368
4573
 
4369
4574
  interface ConstructorProps extends Device.ConstructorProps {}
@@ -4372,6 +4577,15 @@ export namespace Atspi {
4372
4577
  class DeviceLegacy extends Device {
4373
4578
  static $gtype: GObject.GType<DeviceLegacy>;
4374
4579
 
4580
+ /**
4581
+ * Compile-time signal type information.
4582
+ *
4583
+ * This instance property is generated only for TypeScript type checking.
4584
+ * It is not defined at runtime and should not be accessed in JS code.
4585
+ * @internal
4586
+ */
4587
+ $signals: DeviceLegacy.SignalSignatures;
4588
+
4375
4589
  // Constructors
4376
4590
 
4377
4591
  constructor(properties?: Partial<DeviceLegacy.ConstructorProps>, ...args: any[]);
@@ -4379,9 +4593,32 @@ export namespace Atspi {
4379
4593
  _init(...args: any[]): void;
4380
4594
 
4381
4595
  static ['new'](): DeviceLegacy;
4596
+
4597
+ static new_full(app_id?: string | null): DeviceLegacy;
4598
+
4599
+ // Signals
4600
+
4601
+ connect<K extends keyof DeviceLegacy.SignalSignatures>(
4602
+ signal: K,
4603
+ callback: GObject.SignalCallback<this, DeviceLegacy.SignalSignatures[K]>,
4604
+ ): number;
4605
+ connect(signal: string, callback: (...args: any[]) => any): number;
4606
+ connect_after<K extends keyof DeviceLegacy.SignalSignatures>(
4607
+ signal: K,
4608
+ callback: GObject.SignalCallback<this, DeviceLegacy.SignalSignatures[K]>,
4609
+ ): number;
4610
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
4611
+ emit<K extends keyof DeviceLegacy.SignalSignatures>(
4612
+ signal: K,
4613
+ ...args: GObject.GjsParameters<DeviceLegacy.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
4614
+ ): void;
4615
+ emit(signal: string, ...args: any[]): void;
4382
4616
  }
4383
4617
 
4384
4618
  namespace DeviceListener {
4619
+ // Signal signatures
4620
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
4621
+
4385
4622
  // Constructor properties interface
4386
4623
 
4387
4624
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -4390,6 +4627,15 @@ export namespace Atspi {
4390
4627
  class DeviceListener extends GObject.Object {
4391
4628
  static $gtype: GObject.GType<DeviceListener>;
4392
4629
 
4630
+ /**
4631
+ * Compile-time signal type information.
4632
+ *
4633
+ * This instance property is generated only for TypeScript type checking.
4634
+ * It is not defined at runtime and should not be accessed in JS code.
4635
+ * @internal
4636
+ */
4637
+ $signals: DeviceListener.SignalSignatures;
4638
+
4393
4639
  // Fields
4394
4640
 
4395
4641
  id: number;
@@ -4403,6 +4649,24 @@ export namespace Atspi {
4403
4649
 
4404
4650
  static ['new'](callback?: DeviceListenerCB | null): DeviceListener;
4405
4651
 
4652
+ // Signals
4653
+
4654
+ connect<K extends keyof DeviceListener.SignalSignatures>(
4655
+ signal: K,
4656
+ callback: GObject.SignalCallback<this, DeviceListener.SignalSignatures[K]>,
4657
+ ): number;
4658
+ connect(signal: string, callback: (...args: any[]) => any): number;
4659
+ connect_after<K extends keyof DeviceListener.SignalSignatures>(
4660
+ signal: K,
4661
+ callback: GObject.SignalCallback<this, DeviceListener.SignalSignatures[K]>,
4662
+ ): number;
4663
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
4664
+ emit<K extends keyof DeviceListener.SignalSignatures>(
4665
+ signal: K,
4666
+ ...args: GObject.GjsParameters<DeviceListener.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
4667
+ ): void;
4668
+ emit(signal: string, ...args: any[]): void;
4669
+
4406
4670
  // Virtual methods
4407
4671
 
4408
4672
  vfunc_device_event(event: DeviceEvent): boolean;
@@ -4423,6 +4687,11 @@ export namespace Atspi {
4423
4687
  }
4424
4688
 
4425
4689
  namespace DeviceX11 {
4690
+ // Signal signatures
4691
+ interface SignalSignatures extends Device.SignalSignatures {
4692
+ 'notify::app-id': (pspec: GObject.ParamSpec) => void;
4693
+ }
4694
+
4426
4695
  // Constructor properties interface
4427
4696
 
4428
4697
  interface ConstructorProps extends Device.ConstructorProps {}
@@ -4431,6 +4700,15 @@ export namespace Atspi {
4431
4700
  class DeviceX11 extends Device {
4432
4701
  static $gtype: GObject.GType<DeviceX11>;
4433
4702
 
4703
+ /**
4704
+ * Compile-time signal type information.
4705
+ *
4706
+ * This instance property is generated only for TypeScript type checking.
4707
+ * It is not defined at runtime and should not be accessed in JS code.
4708
+ * @internal
4709
+ */
4710
+ $signals: DeviceX11.SignalSignatures;
4711
+
4434
4712
  // Constructors
4435
4713
 
4436
4714
  constructor(properties?: Partial<DeviceX11.ConstructorProps>, ...args: any[]);
@@ -4438,9 +4716,32 @@ export namespace Atspi {
4438
4716
  _init(...args: any[]): void;
4439
4717
 
4440
4718
  static ['new'](): DeviceX11;
4719
+
4720
+ static new_full(app_id?: string | null): DeviceX11;
4721
+
4722
+ // Signals
4723
+
4724
+ connect<K extends keyof DeviceX11.SignalSignatures>(
4725
+ signal: K,
4726
+ callback: GObject.SignalCallback<this, DeviceX11.SignalSignatures[K]>,
4727
+ ): number;
4728
+ connect(signal: string, callback: (...args: any[]) => any): number;
4729
+ connect_after<K extends keyof DeviceX11.SignalSignatures>(
4730
+ signal: K,
4731
+ callback: GObject.SignalCallback<this, DeviceX11.SignalSignatures[K]>,
4732
+ ): number;
4733
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
4734
+ emit<K extends keyof DeviceX11.SignalSignatures>(
4735
+ signal: K,
4736
+ ...args: GObject.GjsParameters<DeviceX11.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
4737
+ ): void;
4738
+ emit(signal: string, ...args: any[]): void;
4441
4739
  }
4442
4740
 
4443
4741
  namespace EventListener {
4742
+ // Signal signatures
4743
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
4744
+
4444
4745
  // Constructor properties interface
4445
4746
 
4446
4747
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -4458,6 +4759,15 @@ export namespace Atspi {
4458
4759
  class EventListener extends GObject.Object {
4459
4760
  static $gtype: GObject.GType<EventListener>;
4460
4761
 
4762
+ /**
4763
+ * Compile-time signal type information.
4764
+ *
4765
+ * This instance property is generated only for TypeScript type checking.
4766
+ * It is not defined at runtime and should not be accessed in JS code.
4767
+ * @internal
4768
+ */
4769
+ $signals: EventListener.SignalSignatures;
4770
+
4461
4771
  // Fields
4462
4772
 
4463
4773
  callback: EventListenerCB;
@@ -4472,6 +4782,24 @@ export namespace Atspi {
4472
4782
 
4473
4783
  static ['new'](callback: EventListenerCB): EventListener;
4474
4784
 
4785
+ // Signals
4786
+
4787
+ connect<K extends keyof EventListener.SignalSignatures>(
4788
+ signal: K,
4789
+ callback: GObject.SignalCallback<this, EventListener.SignalSignatures[K]>,
4790
+ ): number;
4791
+ connect(signal: string, callback: (...args: any[]) => any): number;
4792
+ connect_after<K extends keyof EventListener.SignalSignatures>(
4793
+ signal: K,
4794
+ callback: GObject.SignalCallback<this, EventListener.SignalSignatures[K]>,
4795
+ ): number;
4796
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
4797
+ emit<K extends keyof EventListener.SignalSignatures>(
4798
+ signal: K,
4799
+ ...args: GObject.GjsParameters<EventListener.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
4800
+ ): void;
4801
+ emit(signal: string, ...args: any[]): void;
4802
+
4475
4803
  // Static methods
4476
4804
 
4477
4805
  /**
@@ -4615,6 +4943,9 @@ export namespace Atspi {
4615
4943
  }
4616
4944
 
4617
4945
  namespace Hyperlink {
4946
+ // Signal signatures
4947
+ interface SignalSignatures extends Object.SignalSignatures {}
4948
+
4618
4949
  // Constructor properties interface
4619
4950
 
4620
4951
  interface ConstructorProps extends Object.ConstructorProps {}
@@ -4635,12 +4966,39 @@ export namespace Atspi {
4635
4966
  class Hyperlink extends Object {
4636
4967
  static $gtype: GObject.GType<Hyperlink>;
4637
4968
 
4969
+ /**
4970
+ * Compile-time signal type information.
4971
+ *
4972
+ * This instance property is generated only for TypeScript type checking.
4973
+ * It is not defined at runtime and should not be accessed in JS code.
4974
+ * @internal
4975
+ */
4976
+ $signals: Hyperlink.SignalSignatures;
4977
+
4638
4978
  // Constructors
4639
4979
 
4640
4980
  constructor(properties?: Partial<Hyperlink.ConstructorProps>, ...args: any[]);
4641
4981
 
4642
4982
  _init(...args: any[]): void;
4643
4983
 
4984
+ // Signals
4985
+
4986
+ connect<K extends keyof Hyperlink.SignalSignatures>(
4987
+ signal: K,
4988
+ callback: GObject.SignalCallback<this, Hyperlink.SignalSignatures[K]>,
4989
+ ): number;
4990
+ connect(signal: string, callback: (...args: any[]) => any): number;
4991
+ connect_after<K extends keyof Hyperlink.SignalSignatures>(
4992
+ signal: K,
4993
+ callback: GObject.SignalCallback<this, Hyperlink.SignalSignatures[K]>,
4994
+ ): number;
4995
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
4996
+ emit<K extends keyof Hyperlink.SignalSignatures>(
4997
+ signal: K,
4998
+ ...args: GObject.GjsParameters<Hyperlink.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
4999
+ ): void;
5000
+ emit(signal: string, ...args: any[]): void;
5001
+
4644
5002
  // Methods
4645
5003
 
4646
5004
  /**
@@ -4690,6 +5048,9 @@ export namespace Atspi {
4690
5048
  }
4691
5049
 
4692
5050
  namespace MatchRule {
5051
+ // Signal signatures
5052
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
5053
+
4693
5054
  // Constructor properties interface
4694
5055
 
4695
5056
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -4702,6 +5063,15 @@ export namespace Atspi {
4702
5063
  class MatchRule extends GObject.Object {
4703
5064
  static $gtype: GObject.GType<MatchRule>;
4704
5065
 
5066
+ /**
5067
+ * Compile-time signal type information.
5068
+ *
5069
+ * This instance property is generated only for TypeScript type checking.
5070
+ * It is not defined at runtime and should not be accessed in JS code.
5071
+ * @internal
5072
+ */
5073
+ $signals: MatchRule.SignalSignatures;
5074
+
4705
5075
  // Fields
4706
5076
 
4707
5077
  states: StateSet;
@@ -4730,9 +5100,30 @@ export namespace Atspi {
4730
5100
  interfacematchtype: CollectionMatchType,
4731
5101
  invert: boolean,
4732
5102
  ): MatchRule;
5103
+
5104
+ // Signals
5105
+
5106
+ connect<K extends keyof MatchRule.SignalSignatures>(
5107
+ signal: K,
5108
+ callback: GObject.SignalCallback<this, MatchRule.SignalSignatures[K]>,
5109
+ ): number;
5110
+ connect(signal: string, callback: (...args: any[]) => any): number;
5111
+ connect_after<K extends keyof MatchRule.SignalSignatures>(
5112
+ signal: K,
5113
+ callback: GObject.SignalCallback<this, MatchRule.SignalSignatures[K]>,
5114
+ ): number;
5115
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
5116
+ emit<K extends keyof MatchRule.SignalSignatures>(
5117
+ signal: K,
5118
+ ...args: GObject.GjsParameters<MatchRule.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
5119
+ ): void;
5120
+ emit(signal: string, ...args: any[]): void;
4733
5121
  }
4734
5122
 
4735
5123
  namespace Object {
5124
+ // Signal signatures
5125
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
5126
+
4736
5127
  // Constructor properties interface
4737
5128
 
4738
5129
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -4741,6 +5132,15 @@ export namespace Atspi {
4741
5132
  class Object extends GObject.Object {
4742
5133
  static $gtype: GObject.GType<Object>;
4743
5134
 
5135
+ /**
5136
+ * Compile-time signal type information.
5137
+ *
5138
+ * This instance property is generated only for TypeScript type checking.
5139
+ * It is not defined at runtime and should not be accessed in JS code.
5140
+ * @internal
5141
+ */
5142
+ $signals: Object.SignalSignatures;
5143
+
4744
5144
  // Fields
4745
5145
 
4746
5146
  app: Application;
@@ -4751,9 +5151,30 @@ export namespace Atspi {
4751
5151
  constructor(properties?: Partial<Object.ConstructorProps>, ...args: any[]);
4752
5152
 
4753
5153
  _init(...args: any[]): void;
5154
+
5155
+ // Signals
5156
+
5157
+ connect<K extends keyof Object.SignalSignatures>(
5158
+ signal: K,
5159
+ callback: GObject.SignalCallback<this, Object.SignalSignatures[K]>,
5160
+ ): number;
5161
+ connect(signal: string, callback: (...args: any[]) => any): number;
5162
+ connect_after<K extends keyof Object.SignalSignatures>(
5163
+ signal: K,
5164
+ callback: GObject.SignalCallback<this, Object.SignalSignatures[K]>,
5165
+ ): number;
5166
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
5167
+ emit<K extends keyof Object.SignalSignatures>(
5168
+ signal: K,
5169
+ ...args: GObject.GjsParameters<Object.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
5170
+ ): void;
5171
+ emit(signal: string, ...args: any[]): void;
4754
5172
  }
4755
5173
 
4756
5174
  namespace Relation {
5175
+ // Signal signatures
5176
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
5177
+
4757
5178
  // Constructor properties interface
4758
5179
 
4759
5180
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -4770,6 +5191,15 @@ export namespace Atspi {
4770
5191
  class Relation extends GObject.Object {
4771
5192
  static $gtype: GObject.GType<Relation>;
4772
5193
 
5194
+ /**
5195
+ * Compile-time signal type information.
5196
+ *
5197
+ * This instance property is generated only for TypeScript type checking.
5198
+ * It is not defined at runtime and should not be accessed in JS code.
5199
+ * @internal
5200
+ */
5201
+ $signals: Relation.SignalSignatures;
5202
+
4773
5203
  // Fields
4774
5204
 
4775
5205
  relation_type: RelationType;
@@ -4781,6 +5211,24 @@ export namespace Atspi {
4781
5211
 
4782
5212
  _init(...args: any[]): void;
4783
5213
 
5214
+ // Signals
5215
+
5216
+ connect<K extends keyof Relation.SignalSignatures>(
5217
+ signal: K,
5218
+ callback: GObject.SignalCallback<this, Relation.SignalSignatures[K]>,
5219
+ ): number;
5220
+ connect(signal: string, callback: (...args: any[]) => any): number;
5221
+ connect_after<K extends keyof Relation.SignalSignatures>(
5222
+ signal: K,
5223
+ callback: GObject.SignalCallback<this, Relation.SignalSignatures[K]>,
5224
+ ): number;
5225
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
5226
+ emit<K extends keyof Relation.SignalSignatures>(
5227
+ signal: K,
5228
+ ...args: GObject.GjsParameters<Relation.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
5229
+ ): void;
5230
+ emit(signal: string, ...args: any[]): void;
5231
+
4784
5232
  // Methods
4785
5233
 
4786
5234
  /**
@@ -4804,6 +5252,9 @@ export namespace Atspi {
4804
5252
  }
4805
5253
 
4806
5254
  namespace StateSet {
5255
+ // Signal signatures
5256
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
5257
+
4807
5258
  // Constructor properties interface
4808
5259
 
4809
5260
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -4816,6 +5267,15 @@ export namespace Atspi {
4816
5267
  class StateSet extends GObject.Object {
4817
5268
  static $gtype: GObject.GType<StateSet>;
4818
5269
 
5270
+ /**
5271
+ * Compile-time signal type information.
5272
+ *
5273
+ * This instance property is generated only for TypeScript type checking.
5274
+ * It is not defined at runtime and should not be accessed in JS code.
5275
+ * @internal
5276
+ */
5277
+ $signals: StateSet.SignalSignatures;
5278
+
4819
5279
  // Fields
4820
5280
 
4821
5281
  accessible: any;
@@ -4829,6 +5289,24 @@ export namespace Atspi {
4829
5289
 
4830
5290
  static ['new'](states: StateType[]): StateSet;
4831
5291
 
5292
+ // Signals
5293
+
5294
+ connect<K extends keyof StateSet.SignalSignatures>(
5295
+ signal: K,
5296
+ callback: GObject.SignalCallback<this, StateSet.SignalSignatures[K]>,
5297
+ ): number;
5298
+ connect(signal: string, callback: (...args: any[]) => any): number;
5299
+ connect_after<K extends keyof StateSet.SignalSignatures>(
5300
+ signal: K,
5301
+ callback: GObject.SignalCallback<this, StateSet.SignalSignatures[K]>,
5302
+ ): number;
5303
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
5304
+ emit<K extends keyof StateSet.SignalSignatures>(
5305
+ signal: K,
5306
+ ...args: GObject.GjsParameters<StateSet.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
5307
+ ): void;
5308
+ emit(signal: string, ...args: any[]): void;
5309
+
4832
5310
  // Methods
4833
5311
 
4834
5312
  /**
@@ -4892,6 +5370,7 @@ export namespace Atspi {
4892
5370
  }
4893
5371
 
4894
5372
  type ApplicationClass = typeof Application;
5373
+ type DeviceA11yManagerClass = typeof DeviceA11yManager;
4895
5374
  type DeviceClass = typeof Device;
4896
5375
  class DeviceEvent {
4897
5376
  static $gtype: GObject.GType<DeviceEvent>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/atspi-2.0",
3
- "version": "2.0.0-4.0.0-beta.21",
3
+ "version": "2.0.0-4.0.0-beta.24",
4
4
  "description": "GJS TypeScript type definitions for Atspi-2.0, generated from library version 2.0.0",
5
5
  "type": "module",
6
6
  "module": "atspi-2.0.js",
@@ -31,10 +31,10 @@
31
31
  "test": "tsc --project tsconfig.json"
32
32
  },
33
33
  "dependencies": {
34
- "@girs/dbus-1.0": "^1.0.0-4.0.0-beta.21",
35
- "@girs/gjs": "^4.0.0-beta.21",
36
- "@girs/glib-2.0": "^2.83.3-4.0.0-beta.21",
37
- "@girs/gobject-2.0": "^2.83.3-4.0.0-beta.21"
34
+ "@girs/dbus-1.0": "^1.0.0-4.0.0-beta.24",
35
+ "@girs/gjs": "^4.0.0-beta.24",
36
+ "@girs/glib-2.0": "^2.84.2-4.0.0-beta.24",
37
+ "@girs/gobject-2.0": "^2.84.2-4.0.0-beta.24"
38
38
  },
39
39
  "devDependencies": {
40
40
  "typescript": "*"