@girs/atspi-2.0 2.0.0-4.0.0-beta.21 → 2.0.0-4.0.0-beta.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/atspi-2.0.d.ts +106 -6
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
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.
|
|
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.23.
|
|
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
|
*/
|
|
@@ -3839,7 +3846,21 @@ export namespace Atspi {
|
|
|
3839
3846
|
* @returns the data if found, or %NULL if no such data exists.
|
|
3840
3847
|
*/
|
|
3841
3848
|
get_data(key: string): any | null;
|
|
3842
|
-
|
|
3849
|
+
/**
|
|
3850
|
+
* Gets a property of an object.
|
|
3851
|
+
*
|
|
3852
|
+
* The value can be:
|
|
3853
|
+
* - 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)
|
|
3854
|
+
* - a GObject.Value initialized with the expected type of the property
|
|
3855
|
+
* - a GObject.Value initialized with a type to which the expected type of the property can be transformed
|
|
3856
|
+
*
|
|
3857
|
+
* In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
|
|
3858
|
+
*
|
|
3859
|
+
* Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
|
|
3860
|
+
* @param property_name The name of the property to get
|
|
3861
|
+
* @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
|
|
3862
|
+
*/
|
|
3863
|
+
get_property(property_name: string, value: GObject.Value | any): any;
|
|
3843
3864
|
/**
|
|
3844
3865
|
* This function gets back user data pointers stored via
|
|
3845
3866
|
* g_object_set_qdata().
|
|
@@ -3967,7 +3988,12 @@ export namespace Atspi {
|
|
|
3967
3988
|
* @param data data to associate with that key
|
|
3968
3989
|
*/
|
|
3969
3990
|
set_data(key: string, data?: any | null): void;
|
|
3970
|
-
|
|
3991
|
+
/**
|
|
3992
|
+
* Sets a property on an object.
|
|
3993
|
+
* @param property_name The name of the property to set
|
|
3994
|
+
* @param value The value to set the property to
|
|
3995
|
+
*/
|
|
3996
|
+
set_property(property_name: string, value: GObject.Value | any): void;
|
|
3971
3997
|
/**
|
|
3972
3998
|
* Remove a specified datum from the object's data associations,
|
|
3973
3999
|
* without invoking the association's destroy handler.
|
|
@@ -4117,11 +4143,31 @@ export namespace Atspi {
|
|
|
4117
4143
|
* @param pspec
|
|
4118
4144
|
*/
|
|
4119
4145
|
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
4146
|
+
/**
|
|
4147
|
+
* 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.
|
|
4148
|
+
* @param id Handler ID of the handler to be disconnected
|
|
4149
|
+
*/
|
|
4120
4150
|
disconnect(id: number): void;
|
|
4151
|
+
/**
|
|
4152
|
+
* Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
|
|
4153
|
+
* @param properties Object containing the properties to set
|
|
4154
|
+
*/
|
|
4121
4155
|
set(properties: { [key: string]: any }): void;
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4156
|
+
/**
|
|
4157
|
+
* Blocks a handler of an instance so it will not be called during any signal emissions
|
|
4158
|
+
* @param id Handler ID of the handler to be blocked
|
|
4159
|
+
*/
|
|
4160
|
+
block_signal_handler(id: number): void;
|
|
4161
|
+
/**
|
|
4162
|
+
* Unblocks a handler so it will be called again during any signal emissions
|
|
4163
|
+
* @param id Handler ID of the handler to be unblocked
|
|
4164
|
+
*/
|
|
4165
|
+
unblock_signal_handler(id: number): void;
|
|
4166
|
+
/**
|
|
4167
|
+
* Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
|
|
4168
|
+
* @param detailedName Name of the signal to stop emission of
|
|
4169
|
+
*/
|
|
4170
|
+
stop_emission_by_name(detailedName: string): void;
|
|
4125
4171
|
}
|
|
4126
4172
|
|
|
4127
4173
|
namespace Application {
|
|
@@ -4160,12 +4206,30 @@ export namespace Atspi {
|
|
|
4160
4206
|
namespace Device {
|
|
4161
4207
|
// Constructor properties interface
|
|
4162
4208
|
|
|
4163
|
-
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
4209
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
4210
|
+
app_id: string;
|
|
4211
|
+
appId: string;
|
|
4212
|
+
}
|
|
4164
4213
|
}
|
|
4165
4214
|
|
|
4166
4215
|
class Device extends GObject.Object {
|
|
4167
4216
|
static $gtype: GObject.GType<Device>;
|
|
4168
4217
|
|
|
4218
|
+
// Properties
|
|
4219
|
+
|
|
4220
|
+
/**
|
|
4221
|
+
* The application ID of the application that created this device.
|
|
4222
|
+
* The ID might be used for access control purposes
|
|
4223
|
+
* by some device backends.
|
|
4224
|
+
*/
|
|
4225
|
+
get app_id(): string;
|
|
4226
|
+
/**
|
|
4227
|
+
* The application ID of the application that created this device.
|
|
4228
|
+
* The ID might be used for access control purposes
|
|
4229
|
+
* by some device backends.
|
|
4230
|
+
*/
|
|
4231
|
+
get appId(): string;
|
|
4232
|
+
|
|
4169
4233
|
// Constructors
|
|
4170
4234
|
|
|
4171
4235
|
constructor(properties?: Partial<Device.ConstructorProps>, ...args: any[]);
|
|
@@ -4174,6 +4238,8 @@ export namespace Atspi {
|
|
|
4174
4238
|
|
|
4175
4239
|
static ['new'](): Device;
|
|
4176
4240
|
|
|
4241
|
+
static new_full(app_id?: string | null): Device;
|
|
4242
|
+
|
|
4177
4243
|
// Virtual methods
|
|
4178
4244
|
|
|
4179
4245
|
vfunc_add_key_grab(kd: KeyDefinition): boolean;
|
|
@@ -4283,6 +4349,10 @@ export namespace Atspi {
|
|
|
4283
4349
|
* @param name a string indicating which mouse event to be synthesized (e.g. "b1p", "b1c", "b2r", "rel", "abs").
|
|
4284
4350
|
*/
|
|
4285
4351
|
generate_mouse_event(obj: Accessible, x: number, y: number, name: string): void;
|
|
4352
|
+
/**
|
|
4353
|
+
* Returns the application ID of the device.
|
|
4354
|
+
*/
|
|
4355
|
+
get_app_id(): string;
|
|
4286
4356
|
get_grab_by_id(id: number): KeyDefinition;
|
|
4287
4357
|
/**
|
|
4288
4358
|
* Gets the modifier for a given keysym, if one exists. Does not create a new
|
|
@@ -4347,6 +4417,11 @@ export namespace Atspi {
|
|
|
4347
4417
|
* @param id the identifier of the grab to be removed.
|
|
4348
4418
|
*/
|
|
4349
4419
|
remove_key_grab(id: number): void;
|
|
4420
|
+
/**
|
|
4421
|
+
* Sets the application ID of the device.
|
|
4422
|
+
* @param app_id the application ID.
|
|
4423
|
+
*/
|
|
4424
|
+
set_app_id(app_id: string): void;
|
|
4350
4425
|
/**
|
|
4351
4426
|
* Removes a keyboard grab added via a call to atspi_device_add_keyboard.
|
|
4352
4427
|
*/
|
|
@@ -4363,6 +4438,26 @@ export namespace Atspi {
|
|
|
4363
4438
|
unmap_modifier(keycode: number): void;
|
|
4364
4439
|
}
|
|
4365
4440
|
|
|
4441
|
+
namespace DeviceA11yManager {
|
|
4442
|
+
// Constructor properties interface
|
|
4443
|
+
|
|
4444
|
+
interface ConstructorProps extends Device.ConstructorProps {}
|
|
4445
|
+
}
|
|
4446
|
+
|
|
4447
|
+
class DeviceA11yManager extends Device {
|
|
4448
|
+
static $gtype: GObject.GType<DeviceA11yManager>;
|
|
4449
|
+
|
|
4450
|
+
// Constructors
|
|
4451
|
+
|
|
4452
|
+
constructor(properties?: Partial<DeviceA11yManager.ConstructorProps>, ...args: any[]);
|
|
4453
|
+
|
|
4454
|
+
_init(...args: any[]): void;
|
|
4455
|
+
|
|
4456
|
+
static try_new(): DeviceA11yManager;
|
|
4457
|
+
|
|
4458
|
+
static try_new_full(app_id?: string | null): DeviceA11yManager;
|
|
4459
|
+
}
|
|
4460
|
+
|
|
4366
4461
|
namespace DeviceLegacy {
|
|
4367
4462
|
// Constructor properties interface
|
|
4368
4463
|
|
|
@@ -4379,6 +4474,8 @@ export namespace Atspi {
|
|
|
4379
4474
|
_init(...args: any[]): void;
|
|
4380
4475
|
|
|
4381
4476
|
static ['new'](): DeviceLegacy;
|
|
4477
|
+
|
|
4478
|
+
static new_full(app_id?: string | null): DeviceLegacy;
|
|
4382
4479
|
}
|
|
4383
4480
|
|
|
4384
4481
|
namespace DeviceListener {
|
|
@@ -4438,6 +4535,8 @@ export namespace Atspi {
|
|
|
4438
4535
|
_init(...args: any[]): void;
|
|
4439
4536
|
|
|
4440
4537
|
static ['new'](): DeviceX11;
|
|
4538
|
+
|
|
4539
|
+
static new_full(app_id?: string | null): DeviceX11;
|
|
4441
4540
|
}
|
|
4442
4541
|
|
|
4443
4542
|
namespace EventListener {
|
|
@@ -4892,6 +4991,7 @@ export namespace Atspi {
|
|
|
4892
4991
|
}
|
|
4893
4992
|
|
|
4894
4993
|
type ApplicationClass = typeof Application;
|
|
4994
|
+
type DeviceA11yManagerClass = typeof DeviceA11yManager;
|
|
4895
4995
|
type DeviceClass = typeof Device;
|
|
4896
4996
|
class DeviceEvent {
|
|
4897
4997
|
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.
|
|
3
|
+
"version": "2.0.0-4.0.0-beta.23",
|
|
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.
|
|
35
|
-
"@girs/gjs": "^4.0.0-beta.
|
|
36
|
-
"@girs/glib-2.0": "^2.
|
|
37
|
-
"@girs/gobject-2.0": "^2.
|
|
34
|
+
"@girs/dbus-1.0": "^1.0.0-4.0.0-beta.23",
|
|
35
|
+
"@girs/gjs": "^4.0.0-beta.23",
|
|
36
|
+
"@girs/glib-2.0": "^2.84.0-4.0.0-beta.23",
|
|
37
|
+
"@girs/gobject-2.0": "^2.84.0-4.0.0-beta.23"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"typescript": "*"
|