@girs/atspi-2.0 2.0.0-3.2.3 → 2.0.0-3.2.4
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.cts +48 -10
- package/atspi-2.0.d.ts +48 -10
- 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) v3.2.
|
|
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) v3.2.4.
|
|
9
9
|
|
|
10
10
|
AT-SPI2 is a D-Bus based accessibility framework. It defines a D-Bus protocol for providing and accessing application accessibility information. The project includes a library for bridging the D-Bus protocol to the ATK API, allowing Gtk based applications to be made accessible.
|
|
11
11
|
|
package/atspi-2.0.d.cts
CHANGED
|
@@ -288,6 +288,26 @@ export enum KeySynthType {
|
|
|
288
288
|
*/
|
|
289
289
|
UNLOCKMODIFIERS,
|
|
290
290
|
}
|
|
291
|
+
/**
|
|
292
|
+
* Enumeration used to indicate a type of live region and how assertive it
|
|
293
|
+
* should be in terms of speaking notifications. Currently, this is only used
|
|
294
|
+
* for "announcement" events, but it may be used for additional purposes
|
|
295
|
+
* in the future.
|
|
296
|
+
*/
|
|
297
|
+
export enum Live {
|
|
298
|
+
/**
|
|
299
|
+
* No live region.
|
|
300
|
+
*/
|
|
301
|
+
NONE,
|
|
302
|
+
/**
|
|
303
|
+
* This live region should be considered polite.
|
|
304
|
+
*/
|
|
305
|
+
POLITE,
|
|
306
|
+
/**
|
|
307
|
+
* This live region should be considered assertive.
|
|
308
|
+
*/
|
|
309
|
+
ASSERTIVE,
|
|
310
|
+
}
|
|
291
311
|
/**
|
|
292
312
|
* Used by interfaces #AtspiText and #AtspiDocument, this
|
|
293
313
|
* enumeration corresponds to the POSIX 'setlocale' enum values.
|
|
@@ -1941,6 +1961,14 @@ export function generate_keyboard_event(keyval: number, keystring: string | null
|
|
|
1941
1961
|
* @returns %TRUE if successful, otherwise %FALSE.
|
|
1942
1962
|
*/
|
|
1943
1963
|
export function generate_mouse_event(x: number, y: number, name: string | null): boolean
|
|
1964
|
+
/**
|
|
1965
|
+
* Like atspi_generate_mouse_event, but asynchronous.
|
|
1966
|
+
* @param x a #glong indicating the screen x coordinate of the mouse event.
|
|
1967
|
+
* @param y a #glong indicating the screen y coordinate of the mouse event.
|
|
1968
|
+
* @param name a string indicating which mouse event to be synthesized (e.g. "b1p", "b1c", "b2r", "rel", "abs").
|
|
1969
|
+
* @param callback a callback to be called when a reply is received. May be NULL.
|
|
1970
|
+
*/
|
|
1971
|
+
export function generate_mouse_event_async(x: number, y: number, name: string | null, callback: GenerateMouseEventCB | null): void
|
|
1944
1972
|
/**
|
|
1945
1973
|
* Gets the virtual desktop indicated by index `i`.
|
|
1946
1974
|
* NOTE: currently multiple virtual desktops are not implemented;
|
|
@@ -1969,6 +1997,10 @@ export function get_desktop_count(): number
|
|
|
1969
1997
|
* @returns a #GArray of desktops.
|
|
1970
1998
|
*/
|
|
1971
1999
|
export function get_desktop_list(): Accessible[]
|
|
2000
|
+
/**
|
|
2001
|
+
* Returns the version of the AT-SPI library being used at runtime.
|
|
2002
|
+
*/
|
|
2003
|
+
export function get_version(): [ /* major */ number, /* minor */ number, /* micro */ number ]
|
|
1972
2004
|
/**
|
|
1973
2005
|
* Connects to the accessibility registry and initializes the SPI.
|
|
1974
2006
|
* @returns 0 on success, 1 if already initialized, or an integer error code.
|
|
@@ -2003,9 +2035,14 @@ export function register_device_event_listener(listener: DeviceListener, event_t
|
|
|
2003
2035
|
* @returns %TRUE if successful, otherwise %FALSE.
|
|
2004
2036
|
*/
|
|
2005
2037
|
export function register_keystroke_listener(listener: DeviceListener, key_set: KeyDefinition[] | null, modmask: KeyMaskType, event_types: KeyEventMask, sync_type: KeyListenerSyncType): boolean
|
|
2038
|
+
/**
|
|
2039
|
+
* Gets the localized description string describing the #AtspiRole `role`.
|
|
2040
|
+
* @param role an #AtspiRole object to query.
|
|
2041
|
+
* @returns the localized string describing the AtspiRole
|
|
2042
|
+
*/
|
|
2043
|
+
export function role_get_localized_name(role: Role): string | null
|
|
2006
2044
|
/**
|
|
2007
2045
|
* Gets a localizable string that indicates the name of an #AtspiRole.
|
|
2008
|
-
* <em>DEPRECATED.</em>
|
|
2009
2046
|
* @param role an #AtspiRole object to query.
|
|
2010
2047
|
* @returns a localizable string name for an #AtspiRole enumerated type.
|
|
2011
2048
|
*/
|
|
@@ -2019,12 +2056,7 @@ export function role_get_name(role: Role): string | null
|
|
|
2019
2056
|
*/
|
|
2020
2057
|
export function set_main_context(cnx: GLib.MainContext): void
|
|
2021
2058
|
/**
|
|
2022
|
-
*
|
|
2023
|
-
* is called. Coordinates will be assumed to be relative to this window. This
|
|
2024
|
-
* is needed because, due to Wayland's security model, it is not currently
|
|
2025
|
-
* possible to retrieve global coordinates.
|
|
2026
|
-
* If NULL is passed, then AT-SPI will use the window that has focus at the
|
|
2027
|
-
* time that atspi_generate_mouse_event is called.
|
|
2059
|
+
* Deprecated. This function no longer does anything and should not be used.
|
|
2028
2060
|
* @param accessible the #AtspiAccessible corresponding to the window to select. should be a top-level window with a role of ATSPI_ROLE_APPLICATION.
|
|
2029
2061
|
*/
|
|
2030
2062
|
export function set_reference_window(accessible: Accessible): void
|
|
@@ -2080,6 +2112,9 @@ export interface EventListenerCB {
|
|
|
2080
2112
|
export interface EventListenerSimpleCB {
|
|
2081
2113
|
(event: Event): void
|
|
2082
2114
|
}
|
|
2115
|
+
export interface GenerateMouseEventCB {
|
|
2116
|
+
(): void
|
|
2117
|
+
}
|
|
2083
2118
|
/**
|
|
2084
2119
|
* A callback that will be invoked when a key is pressed.
|
|
2085
2120
|
* @callback
|
|
@@ -3201,7 +3236,6 @@ export interface Text {
|
|
|
3201
3236
|
* Gets the attributes applied to a range of text from an #AtspiText
|
|
3202
3237
|
* object. The text attributes correspond to CSS attributes
|
|
3203
3238
|
* where possible.
|
|
3204
|
-
* <em>DEPRECATED</em>
|
|
3205
3239
|
* @param offset a #gint indicating the offset from which the attribute search is based.
|
|
3206
3240
|
* @returns a #GHashTable describing the attributes at the given character offset.
|
|
3207
3241
|
*/
|
|
@@ -3553,6 +3587,10 @@ export interface Accessible extends Action, Collection, Component, Document, Edi
|
|
|
3553
3587
|
* descendants.
|
|
3554
3588
|
*/
|
|
3555
3589
|
clear_cache(): void
|
|
3590
|
+
/**
|
|
3591
|
+
* Clears the cached information only for the given accessible.
|
|
3592
|
+
*/
|
|
3593
|
+
clear_cache_single(): void
|
|
3556
3594
|
/**
|
|
3557
3595
|
* Gets the accessible id of the accessible. This is not meant to be presented
|
|
3558
3596
|
* to the user, but to be an id which is stable over application development.
|
|
@@ -4585,7 +4623,7 @@ export class MatchRule extends GObject.Object {
|
|
|
4585
4623
|
* @param attributematchtype An #AtspiCollectionMatchType specifying how to interpret `attributes`.
|
|
4586
4624
|
* @param roles A #GArray of roles to match, or NULL if not applicable.
|
|
4587
4625
|
* @param rolematchtype An #AtspiCollectionMatchType specifying how to interpret `roles`.
|
|
4588
|
-
* @param interfaces An array of interfaces to match, or NULL if not applicable. Interface names should be specified by their DBus names (
|
|
4626
|
+
* @param interfaces An array of interfaces to match, or NULL if not applicable. Interface names should be specified by the final component of their DBus names (Accessible, Component, etc).
|
|
4589
4627
|
* @param interfacematchtype An #AtspiCollectionMatchType specifying how to interpret `interfaces`.
|
|
4590
4628
|
* @param invert if #TRUE, the match rule should be denied (inverted); if #FALSE, it should not. For example, if the match rule defines that a match is an object of ROLE_HEADING which has STATE_FOCUSABLE and a click action, inverting it would match all objects that are not of ROLE_HEADING, focusable and clickable at the same time.
|
|
4591
4629
|
* @returns A new #AtspiMatchRule.
|
|
@@ -4601,7 +4639,7 @@ export class MatchRule extends GObject.Object {
|
|
|
4601
4639
|
* @param attributematchtype An #AtspiCollectionMatchType specifying how to interpret `attributes`.
|
|
4602
4640
|
* @param roles A #GArray of roles to match, or NULL if not applicable.
|
|
4603
4641
|
* @param rolematchtype An #AtspiCollectionMatchType specifying how to interpret `roles`.
|
|
4604
|
-
* @param interfaces An array of interfaces to match, or NULL if not applicable. Interface names should be specified by their DBus names (
|
|
4642
|
+
* @param interfaces An array of interfaces to match, or NULL if not applicable. Interface names should be specified by the final component of their DBus names (Accessible, Component, etc).
|
|
4605
4643
|
* @param interfacematchtype An #AtspiCollectionMatchType specifying how to interpret `interfaces`.
|
|
4606
4644
|
* @param invert if #TRUE, the match rule should be denied (inverted); if #FALSE, it should not. For example, if the match rule defines that a match is an object of ROLE_HEADING which has STATE_FOCUSABLE and a click action, inverting it would match all objects that are not of ROLE_HEADING, focusable and clickable at the same time.
|
|
4607
4645
|
* @returns A new #AtspiMatchRule.
|
package/atspi-2.0.d.ts
CHANGED
|
@@ -290,6 +290,26 @@ enum KeySynthType {
|
|
|
290
290
|
*/
|
|
291
291
|
UNLOCKMODIFIERS,
|
|
292
292
|
}
|
|
293
|
+
/**
|
|
294
|
+
* Enumeration used to indicate a type of live region and how assertive it
|
|
295
|
+
* should be in terms of speaking notifications. Currently, this is only used
|
|
296
|
+
* for "announcement" events, but it may be used for additional purposes
|
|
297
|
+
* in the future.
|
|
298
|
+
*/
|
|
299
|
+
enum Live {
|
|
300
|
+
/**
|
|
301
|
+
* No live region.
|
|
302
|
+
*/
|
|
303
|
+
NONE,
|
|
304
|
+
/**
|
|
305
|
+
* This live region should be considered polite.
|
|
306
|
+
*/
|
|
307
|
+
POLITE,
|
|
308
|
+
/**
|
|
309
|
+
* This live region should be considered assertive.
|
|
310
|
+
*/
|
|
311
|
+
ASSERTIVE,
|
|
312
|
+
}
|
|
293
313
|
/**
|
|
294
314
|
* Used by interfaces #AtspiText and #AtspiDocument, this
|
|
295
315
|
* enumeration corresponds to the POSIX 'setlocale' enum values.
|
|
@@ -1943,6 +1963,14 @@ function generate_keyboard_event(keyval: number, keystring: string | null, synth
|
|
|
1943
1963
|
* @returns %TRUE if successful, otherwise %FALSE.
|
|
1944
1964
|
*/
|
|
1945
1965
|
function generate_mouse_event(x: number, y: number, name: string | null): boolean
|
|
1966
|
+
/**
|
|
1967
|
+
* Like atspi_generate_mouse_event, but asynchronous.
|
|
1968
|
+
* @param x a #glong indicating the screen x coordinate of the mouse event.
|
|
1969
|
+
* @param y a #glong indicating the screen y coordinate of the mouse event.
|
|
1970
|
+
* @param name a string indicating which mouse event to be synthesized (e.g. "b1p", "b1c", "b2r", "rel", "abs").
|
|
1971
|
+
* @param callback a callback to be called when a reply is received. May be NULL.
|
|
1972
|
+
*/
|
|
1973
|
+
function generate_mouse_event_async(x: number, y: number, name: string | null, callback: GenerateMouseEventCB | null): void
|
|
1946
1974
|
/**
|
|
1947
1975
|
* Gets the virtual desktop indicated by index `i`.
|
|
1948
1976
|
* NOTE: currently multiple virtual desktops are not implemented;
|
|
@@ -1971,6 +1999,10 @@ function get_desktop_count(): number
|
|
|
1971
1999
|
* @returns a #GArray of desktops.
|
|
1972
2000
|
*/
|
|
1973
2001
|
function get_desktop_list(): Accessible[]
|
|
2002
|
+
/**
|
|
2003
|
+
* Returns the version of the AT-SPI library being used at runtime.
|
|
2004
|
+
*/
|
|
2005
|
+
function get_version(): [ /* major */ number, /* minor */ number, /* micro */ number ]
|
|
1974
2006
|
/**
|
|
1975
2007
|
* Connects to the accessibility registry and initializes the SPI.
|
|
1976
2008
|
* @returns 0 on success, 1 if already initialized, or an integer error code.
|
|
@@ -2005,9 +2037,14 @@ function register_device_event_listener(listener: DeviceListener, event_types: D
|
|
|
2005
2037
|
* @returns %TRUE if successful, otherwise %FALSE.
|
|
2006
2038
|
*/
|
|
2007
2039
|
function register_keystroke_listener(listener: DeviceListener, key_set: KeyDefinition[] | null, modmask: KeyMaskType, event_types: KeyEventMask, sync_type: KeyListenerSyncType): boolean
|
|
2040
|
+
/**
|
|
2041
|
+
* Gets the localized description string describing the #AtspiRole `role`.
|
|
2042
|
+
* @param role an #AtspiRole object to query.
|
|
2043
|
+
* @returns the localized string describing the AtspiRole
|
|
2044
|
+
*/
|
|
2045
|
+
function role_get_localized_name(role: Role): string | null
|
|
2008
2046
|
/**
|
|
2009
2047
|
* Gets a localizable string that indicates the name of an #AtspiRole.
|
|
2010
|
-
* <em>DEPRECATED.</em>
|
|
2011
2048
|
* @param role an #AtspiRole object to query.
|
|
2012
2049
|
* @returns a localizable string name for an #AtspiRole enumerated type.
|
|
2013
2050
|
*/
|
|
@@ -2021,12 +2058,7 @@ function role_get_name(role: Role): string | null
|
|
|
2021
2058
|
*/
|
|
2022
2059
|
function set_main_context(cnx: GLib.MainContext): void
|
|
2023
2060
|
/**
|
|
2024
|
-
*
|
|
2025
|
-
* is called. Coordinates will be assumed to be relative to this window. This
|
|
2026
|
-
* is needed because, due to Wayland's security model, it is not currently
|
|
2027
|
-
* possible to retrieve global coordinates.
|
|
2028
|
-
* If NULL is passed, then AT-SPI will use the window that has focus at the
|
|
2029
|
-
* time that atspi_generate_mouse_event is called.
|
|
2061
|
+
* Deprecated. This function no longer does anything and should not be used.
|
|
2030
2062
|
* @param accessible the #AtspiAccessible corresponding to the window to select. should be a top-level window with a role of ATSPI_ROLE_APPLICATION.
|
|
2031
2063
|
*/
|
|
2032
2064
|
function set_reference_window(accessible: Accessible): void
|
|
@@ -2082,6 +2114,9 @@ interface EventListenerCB {
|
|
|
2082
2114
|
interface EventListenerSimpleCB {
|
|
2083
2115
|
(event: Event): void
|
|
2084
2116
|
}
|
|
2117
|
+
interface GenerateMouseEventCB {
|
|
2118
|
+
(): void
|
|
2119
|
+
}
|
|
2085
2120
|
/**
|
|
2086
2121
|
* A callback that will be invoked when a key is pressed.
|
|
2087
2122
|
* @callback
|
|
@@ -3203,7 +3238,6 @@ interface Text {
|
|
|
3203
3238
|
* Gets the attributes applied to a range of text from an #AtspiText
|
|
3204
3239
|
* object. The text attributes correspond to CSS attributes
|
|
3205
3240
|
* where possible.
|
|
3206
|
-
* <em>DEPRECATED</em>
|
|
3207
3241
|
* @param offset a #gint indicating the offset from which the attribute search is based.
|
|
3208
3242
|
* @returns a #GHashTable describing the attributes at the given character offset.
|
|
3209
3243
|
*/
|
|
@@ -3555,6 +3589,10 @@ interface Accessible extends Action, Collection, Component, Document, EditableTe
|
|
|
3555
3589
|
* descendants.
|
|
3556
3590
|
*/
|
|
3557
3591
|
clear_cache(): void
|
|
3592
|
+
/**
|
|
3593
|
+
* Clears the cached information only for the given accessible.
|
|
3594
|
+
*/
|
|
3595
|
+
clear_cache_single(): void
|
|
3558
3596
|
/**
|
|
3559
3597
|
* Gets the accessible id of the accessible. This is not meant to be presented
|
|
3560
3598
|
* to the user, but to be an id which is stable over application development.
|
|
@@ -4587,7 +4625,7 @@ class MatchRule extends GObject.Object {
|
|
|
4587
4625
|
* @param attributematchtype An #AtspiCollectionMatchType specifying how to interpret `attributes`.
|
|
4588
4626
|
* @param roles A #GArray of roles to match, or NULL if not applicable.
|
|
4589
4627
|
* @param rolematchtype An #AtspiCollectionMatchType specifying how to interpret `roles`.
|
|
4590
|
-
* @param interfaces An array of interfaces to match, or NULL if not applicable. Interface names should be specified by their DBus names (
|
|
4628
|
+
* @param interfaces An array of interfaces to match, or NULL if not applicable. Interface names should be specified by the final component of their DBus names (Accessible, Component, etc).
|
|
4591
4629
|
* @param interfacematchtype An #AtspiCollectionMatchType specifying how to interpret `interfaces`.
|
|
4592
4630
|
* @param invert if #TRUE, the match rule should be denied (inverted); if #FALSE, it should not. For example, if the match rule defines that a match is an object of ROLE_HEADING which has STATE_FOCUSABLE and a click action, inverting it would match all objects that are not of ROLE_HEADING, focusable and clickable at the same time.
|
|
4593
4631
|
* @returns A new #AtspiMatchRule.
|
|
@@ -4603,7 +4641,7 @@ class MatchRule extends GObject.Object {
|
|
|
4603
4641
|
* @param attributematchtype An #AtspiCollectionMatchType specifying how to interpret `attributes`.
|
|
4604
4642
|
* @param roles A #GArray of roles to match, or NULL if not applicable.
|
|
4605
4643
|
* @param rolematchtype An #AtspiCollectionMatchType specifying how to interpret `roles`.
|
|
4606
|
-
* @param interfaces An array of interfaces to match, or NULL if not applicable. Interface names should be specified by their DBus names (
|
|
4644
|
+
* @param interfaces An array of interfaces to match, or NULL if not applicable. Interface names should be specified by the final component of their DBus names (Accessible, Component, etc).
|
|
4607
4645
|
* @param interfacematchtype An #AtspiCollectionMatchType specifying how to interpret `interfaces`.
|
|
4608
4646
|
* @param invert if #TRUE, the match rule should be denied (inverted); if #FALSE, it should not. For example, if the match rule defines that a match is an object of ROLE_HEADING which has STATE_FOCUSABLE and a click action, inverting it would match all objects that are not of ROLE_HEADING, focusable and clickable at the same time.
|
|
4609
4647
|
* @returns A new #AtspiMatchRule.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/atspi-2.0",
|
|
3
|
-
"version": "2.0.0-3.2.
|
|
3
|
+
"version": "2.0.0-3.2.4",
|
|
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",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit atspi-2.0.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/dbus-1.0": "^1.0.0-3.2.
|
|
29
|
-
"@girs/gjs": "^3.2.
|
|
30
|
-
"@girs/glib-2.0": "^2.
|
|
31
|
-
"@girs/gobject-2.0": "^2.
|
|
28
|
+
"@girs/dbus-1.0": "^1.0.0-3.2.4",
|
|
29
|
+
"@girs/gjs": "^3.2.4",
|
|
30
|
+
"@girs/glib-2.0": "^2.78.0-3.2.4",
|
|
31
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.4"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"typescript": "*"
|