@girs/atspi-2.0 2.0.0-3.2.6 → 2.0.0-3.2.7
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 +47 -47
- package/atspi-2.0.d.ts +47 -47
- 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.7.
|
|
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
|
@@ -1819,36 +1819,36 @@ export const COMPONENTLAYER_COUNT: number
|
|
|
1819
1819
|
* One higher than the highest valid value of #AtspiCoordType.
|
|
1820
1820
|
*/
|
|
1821
1821
|
export const COORD_TYPE_COUNT: number
|
|
1822
|
-
export const DBUS_INTERFACE_ACCESSIBLE: string
|
|
1823
|
-
export const DBUS_INTERFACE_ACTION: string
|
|
1824
|
-
export const DBUS_INTERFACE_APPLICATION: string
|
|
1825
|
-
export const DBUS_INTERFACE_CACHE: string
|
|
1826
|
-
export const DBUS_INTERFACE_COLLECTION: string
|
|
1827
|
-
export const DBUS_INTERFACE_COMPONENT: string
|
|
1828
|
-
export const DBUS_INTERFACE_DEC: string
|
|
1829
|
-
export const DBUS_INTERFACE_DEVICE_EVENT_LISTENER: string
|
|
1830
|
-
export const DBUS_INTERFACE_DOCUMENT: string
|
|
1831
|
-
export const DBUS_INTERFACE_EDITABLE_TEXT: string
|
|
1832
|
-
export const DBUS_INTERFACE_EVENT_KEYBOARD: string
|
|
1833
|
-
export const DBUS_INTERFACE_EVENT_MOUSE: string
|
|
1834
|
-
export const DBUS_INTERFACE_EVENT_OBJECT: string
|
|
1835
|
-
export const DBUS_INTERFACE_EVENT_SCREEN_READER: string
|
|
1836
|
-
export const DBUS_INTERFACE_HYPERLINK: string
|
|
1837
|
-
export const DBUS_INTERFACE_HYPERTEXT: string
|
|
1838
|
-
export const DBUS_INTERFACE_IMAGE: string
|
|
1839
|
-
export const DBUS_INTERFACE_REGISTRY: string
|
|
1840
|
-
export const DBUS_INTERFACE_SELECTION: string
|
|
1841
|
-
export const DBUS_INTERFACE_SOCKET: string
|
|
1842
|
-
export const DBUS_INTERFACE_TABLE: string
|
|
1843
|
-
export const DBUS_INTERFACE_TABLE_CELL: string
|
|
1844
|
-
export const DBUS_INTERFACE_TEXT: string
|
|
1845
|
-
export const DBUS_INTERFACE_VALUE: string
|
|
1846
|
-
export const DBUS_NAME_REGISTRY: string
|
|
1847
|
-
export const DBUS_PATH_DEC: string
|
|
1848
|
-
export const DBUS_PATH_NULL: string
|
|
1849
|
-
export const DBUS_PATH_REGISTRY: string
|
|
1850
|
-
export const DBUS_PATH_ROOT: string
|
|
1851
|
-
export const DBUS_PATH_SCREEN_READER: string
|
|
1822
|
+
export const DBUS_INTERFACE_ACCESSIBLE: string
|
|
1823
|
+
export const DBUS_INTERFACE_ACTION: string
|
|
1824
|
+
export const DBUS_INTERFACE_APPLICATION: string
|
|
1825
|
+
export const DBUS_INTERFACE_CACHE: string
|
|
1826
|
+
export const DBUS_INTERFACE_COLLECTION: string
|
|
1827
|
+
export const DBUS_INTERFACE_COMPONENT: string
|
|
1828
|
+
export const DBUS_INTERFACE_DEC: string
|
|
1829
|
+
export const DBUS_INTERFACE_DEVICE_EVENT_LISTENER: string
|
|
1830
|
+
export const DBUS_INTERFACE_DOCUMENT: string
|
|
1831
|
+
export const DBUS_INTERFACE_EDITABLE_TEXT: string
|
|
1832
|
+
export const DBUS_INTERFACE_EVENT_KEYBOARD: string
|
|
1833
|
+
export const DBUS_INTERFACE_EVENT_MOUSE: string
|
|
1834
|
+
export const DBUS_INTERFACE_EVENT_OBJECT: string
|
|
1835
|
+
export const DBUS_INTERFACE_EVENT_SCREEN_READER: string
|
|
1836
|
+
export const DBUS_INTERFACE_HYPERLINK: string
|
|
1837
|
+
export const DBUS_INTERFACE_HYPERTEXT: string
|
|
1838
|
+
export const DBUS_INTERFACE_IMAGE: string
|
|
1839
|
+
export const DBUS_INTERFACE_REGISTRY: string
|
|
1840
|
+
export const DBUS_INTERFACE_SELECTION: string
|
|
1841
|
+
export const DBUS_INTERFACE_SOCKET: string
|
|
1842
|
+
export const DBUS_INTERFACE_TABLE: string
|
|
1843
|
+
export const DBUS_INTERFACE_TABLE_CELL: string
|
|
1844
|
+
export const DBUS_INTERFACE_TEXT: string
|
|
1845
|
+
export const DBUS_INTERFACE_VALUE: string
|
|
1846
|
+
export const DBUS_NAME_REGISTRY: string
|
|
1847
|
+
export const DBUS_PATH_DEC: string
|
|
1848
|
+
export const DBUS_PATH_NULL: string
|
|
1849
|
+
export const DBUS_PATH_REGISTRY: string
|
|
1850
|
+
export const DBUS_PATH_ROOT: string
|
|
1851
|
+
export const DBUS_PATH_SCREEN_READER: string
|
|
1852
1852
|
/**
|
|
1853
1853
|
* One higher than the highest valid value of #AtspiEventType.
|
|
1854
1854
|
*/
|
|
@@ -1960,7 +1960,7 @@ export function generate_keyboard_event(keyval: number, keystring: string | null
|
|
|
1960
1960
|
* @param name a string indicating which mouse event to be synthesized (e.g. "b1p", "b1c", "b2r", "rel", "abs").
|
|
1961
1961
|
* @returns %TRUE if successful, otherwise %FALSE.
|
|
1962
1962
|
*/
|
|
1963
|
-
export function generate_mouse_event(x: number, y: number, name: string
|
|
1963
|
+
export function generate_mouse_event(x: number, y: number, name: string): boolean
|
|
1964
1964
|
/**
|
|
1965
1965
|
* Like atspi_generate_mouse_event, but asynchronous.
|
|
1966
1966
|
* @param x a #glong indicating the screen x coordinate of the mouse event.
|
|
@@ -1968,7 +1968,7 @@ export function generate_mouse_event(x: number, y: number, name: string | null):
|
|
|
1968
1968
|
* @param name a string indicating which mouse event to be synthesized (e.g. "b1p", "b1c", "b2r", "rel", "abs").
|
|
1969
1969
|
* @param callback a callback to be called when a reply is received. May be NULL.
|
|
1970
1970
|
*/
|
|
1971
|
-
export function generate_mouse_event_async(x: number, y: number, name: string
|
|
1971
|
+
export function generate_mouse_event_async(x: number, y: number, name: string, callback: GenerateMouseEventCB | null): void
|
|
1972
1972
|
/**
|
|
1973
1973
|
* Gets the virtual desktop indicated by index `i`.
|
|
1974
1974
|
* NOTE: currently multiple virtual desktops are not implemented;
|
|
@@ -2126,7 +2126,7 @@ export interface GenerateMouseEventCB {
|
|
|
2126
2126
|
* @param keystring the text corresponding to the keypress.
|
|
2127
2127
|
*/
|
|
2128
2128
|
export interface KeyCallback {
|
|
2129
|
-
(device: Device, pressed: boolean, keycode: number, keysym: number, modifiers: number, keystring: string
|
|
2129
|
+
(device: Device, pressed: boolean, keycode: number, keysym: number, modifiers: number, keystring: string): void
|
|
2130
2130
|
}
|
|
2131
2131
|
export module Action {
|
|
2132
2132
|
|
|
@@ -2476,7 +2476,7 @@ export interface Document {
|
|
|
2476
2476
|
* @param attribute a string indicating the name of a specific attribute.
|
|
2477
2477
|
* @returns a string corresponding to the value of the specified attribute, or an empty string if the attribute is unspecified for the object.
|
|
2478
2478
|
*/
|
|
2479
|
-
get_document_attribute_value(attribute: string
|
|
2479
|
+
get_document_attribute_value(attribute: string): string | null
|
|
2480
2480
|
/**
|
|
2481
2481
|
* Gets all constant attributes for the document as a whole. For attributes
|
|
2482
2482
|
* that change within the document content, see `atspi_text_get_attribute_run` instead.
|
|
@@ -2573,7 +2573,7 @@ export interface EditableText {
|
|
|
2573
2573
|
* @param length the number of characters of text to insert, in bytes. If the byte count of text is less than or equal to length, the entire contents of text will be inserted.
|
|
2574
2574
|
* @returns #TRUE if the operation was successful, otherwise #FALSE.
|
|
2575
2575
|
*/
|
|
2576
|
-
insert_text(position: number, text: string
|
|
2576
|
+
insert_text(position: number, text: string, length: number): boolean
|
|
2577
2577
|
/**
|
|
2578
2578
|
* Inserts text from the system clipboard into an #AtspiEditableText object.
|
|
2579
2579
|
* As with all character offsets, the specified `position` may not be the
|
|
@@ -2588,7 +2588,7 @@ export interface EditableText {
|
|
|
2588
2588
|
* @param new_contents a character string, encoded in UTF-8, which is to become the new text contents of the #AtspiEditableText object.
|
|
2589
2589
|
* @returns #TRUE if the operation was successful, otherwise #FALSE.
|
|
2590
2590
|
*/
|
|
2591
|
-
set_text_contents(new_contents: string
|
|
2591
|
+
set_text_contents(new_contents: string): boolean
|
|
2592
2592
|
|
|
2593
2593
|
// Class property signals of Atspi-2.0.Atspi.EditableText
|
|
2594
2594
|
|
|
@@ -3231,7 +3231,7 @@ export interface Text {
|
|
|
3231
3231
|
* @param attribute_name The attribute to query.
|
|
3232
3232
|
* @returns the value of a given attribute at the given offset, or %NULL if not present.
|
|
3233
3233
|
*/
|
|
3234
|
-
get_text_attribute_value(offset: number, attribute_name: string
|
|
3234
|
+
get_text_attribute_value(offset: number, attribute_name: string): string | null
|
|
3235
3235
|
/**
|
|
3236
3236
|
* Gets the attributes applied to a range of text from an #AtspiText
|
|
3237
3237
|
* object. The text attributes correspond to CSS attributes
|
|
@@ -3712,7 +3712,7 @@ export interface Accessible extends Action, Collection, Component, Document, Edi
|
|
|
3712
3712
|
* @returns a UTF-8 string indicating the name of the #AtspiAccessible object or NULL on exception.
|
|
3713
3713
|
*/
|
|
3714
3714
|
get_name(): string | null
|
|
3715
|
-
get_object_locale(): string
|
|
3715
|
+
get_object_locale(): string
|
|
3716
3716
|
/**
|
|
3717
3717
|
* Gets an #AtspiAccessible object's parent container.
|
|
3718
3718
|
* @returns a pointer to the #AtspiAccessible object which contains the given #AtspiAccessible instance, or NULL if the @obj has no parent container.
|
|
@@ -4303,7 +4303,7 @@ export interface EventListener {
|
|
|
4303
4303
|
* @param event_type a string specifying the event type for which this listener is to be deregistered.
|
|
4304
4304
|
* @returns #TRUE if successful, otherwise #FALSE.
|
|
4305
4305
|
*/
|
|
4306
|
-
deregister(event_type: string
|
|
4306
|
+
deregister(event_type: string): boolean
|
|
4307
4307
|
/**
|
|
4308
4308
|
* Adds an in-process callback function to an existing #AtspiEventListener.
|
|
4309
4309
|
*
|
|
@@ -4391,14 +4391,14 @@ export interface EventListener {
|
|
|
4391
4391
|
* @param event_type a character string indicating the type of events for which notification is requested. Format is EventClass:major_type:minor_type:detail where all subfields other than EventClass are optional. EventClasses include "object", "window", "mouse", and toolkit events (e.g. "Gtk", "AWT"). Examples: "focus:", "Gtk:GtkWidget:button_press_event".
|
|
4392
4392
|
* @returns #TRUE if successful, otherwise #FALSE.
|
|
4393
4393
|
*/
|
|
4394
|
-
register(event_type: string
|
|
4394
|
+
register(event_type: string): boolean
|
|
4395
4395
|
/**
|
|
4396
4396
|
* Adds an in-process callback function to an existing #AtspiEventListener.
|
|
4397
4397
|
* @param event_type a character string indicating the type of events for which notification is requested. See #atspi_event_listener_register for a description of the format and legal event types.
|
|
4398
4398
|
* @param properties a list of properties that should be sent along with the event. The properties are valued for the duration of the event callback. TODO: Document.
|
|
4399
4399
|
* @returns #TRUE if successful, otherwise #FALSE.
|
|
4400
4400
|
*/
|
|
4401
|
-
register_full(event_type: string
|
|
4401
|
+
register_full(event_type: string, properties: string[] | null): boolean
|
|
4402
4402
|
/**
|
|
4403
4403
|
* Adds an in-process callback function to an existing #AtspiEventListener.
|
|
4404
4404
|
* @param event_type a character string indicating the type of events for which notification is requested. See #atspi_event_listener_register for a description of the format and legal event types.
|
|
@@ -4406,7 +4406,7 @@ export interface EventListener {
|
|
|
4406
4406
|
* @param app the application whose events should be reported, or %null for all applications.
|
|
4407
4407
|
* @returns #TRUE if successful, otherwise #FALSE.
|
|
4408
4408
|
*/
|
|
4409
|
-
register_with_app(event_type: string
|
|
4409
|
+
register_with_app(event_type: string, properties: string[] | null, app: Accessible | null): boolean
|
|
4410
4410
|
|
|
4411
4411
|
// Class property signals of Atspi-2.0.Atspi.EventListener
|
|
4412
4412
|
|
|
@@ -4458,16 +4458,16 @@ export class EventListener extends GObject.Object {
|
|
|
4458
4458
|
* @param event_type a string specifying the event type for which this listener is to be deregistered.
|
|
4459
4459
|
* @returns #TRUE if successful, otherwise #FALSE.
|
|
4460
4460
|
*/
|
|
4461
|
-
static deregister_from_callback(callback: EventListenerCB, event_type: string
|
|
4461
|
+
static deregister_from_callback(callback: EventListenerCB, event_type: string): boolean
|
|
4462
4462
|
/**
|
|
4463
4463
|
* Registers an #AtspiEventListenerCB against an `event_type`.
|
|
4464
4464
|
* @param callback the #AtspiEventListenerCB to be registered against an event type.
|
|
4465
4465
|
* @param event_type a character string indicating the type of events for which notification is requested. See #atspi_event_listener_register for a description of the format.
|
|
4466
4466
|
* @returns #TRUE if successfull, otherwise #FALSE.
|
|
4467
4467
|
*/
|
|
4468
|
-
static register_from_callback(callback: EventListenerCB, event_type: string
|
|
4469
|
-
static register_from_callback_full(event_type: string
|
|
4470
|
-
static register_from_callback_with_app(event_type: string
|
|
4468
|
+
static register_from_callback(callback: EventListenerCB, event_type: string): boolean
|
|
4469
|
+
static register_from_callback_full(event_type: string, properties: string[]): boolean
|
|
4470
|
+
static register_from_callback_with_app(event_type: string, properties: string[], app: Accessible | null): boolean
|
|
4471
4471
|
}
|
|
4472
4472
|
|
|
4473
4473
|
export module Hyperlink {
|
|
@@ -4821,7 +4821,7 @@ export interface StateSet {
|
|
|
4821
4821
|
* @param name a string corresponding to a state name.
|
|
4822
4822
|
* @param enabled if #TRUE, `name` should be enabled in the `set` in question; otherwise, it should be disabled.
|
|
4823
4823
|
*/
|
|
4824
|
-
set_by_name(name: string
|
|
4824
|
+
set_by_name(name: string, enabled: boolean): void
|
|
4825
4825
|
|
|
4826
4826
|
// Class property signals of Atspi-2.0.Atspi.StateSet
|
|
4827
4827
|
|
package/atspi-2.0.d.ts
CHANGED
|
@@ -1821,36 +1821,36 @@ const COMPONENTLAYER_COUNT: number
|
|
|
1821
1821
|
* One higher than the highest valid value of #AtspiCoordType.
|
|
1822
1822
|
*/
|
|
1823
1823
|
const COORD_TYPE_COUNT: number
|
|
1824
|
-
const DBUS_INTERFACE_ACCESSIBLE: string
|
|
1825
|
-
const DBUS_INTERFACE_ACTION: string
|
|
1826
|
-
const DBUS_INTERFACE_APPLICATION: string
|
|
1827
|
-
const DBUS_INTERFACE_CACHE: string
|
|
1828
|
-
const DBUS_INTERFACE_COLLECTION: string
|
|
1829
|
-
const DBUS_INTERFACE_COMPONENT: string
|
|
1830
|
-
const DBUS_INTERFACE_DEC: string
|
|
1831
|
-
const DBUS_INTERFACE_DEVICE_EVENT_LISTENER: string
|
|
1832
|
-
const DBUS_INTERFACE_DOCUMENT: string
|
|
1833
|
-
const DBUS_INTERFACE_EDITABLE_TEXT: string
|
|
1834
|
-
const DBUS_INTERFACE_EVENT_KEYBOARD: string
|
|
1835
|
-
const DBUS_INTERFACE_EVENT_MOUSE: string
|
|
1836
|
-
const DBUS_INTERFACE_EVENT_OBJECT: string
|
|
1837
|
-
const DBUS_INTERFACE_EVENT_SCREEN_READER: string
|
|
1838
|
-
const DBUS_INTERFACE_HYPERLINK: string
|
|
1839
|
-
const DBUS_INTERFACE_HYPERTEXT: string
|
|
1840
|
-
const DBUS_INTERFACE_IMAGE: string
|
|
1841
|
-
const DBUS_INTERFACE_REGISTRY: string
|
|
1842
|
-
const DBUS_INTERFACE_SELECTION: string
|
|
1843
|
-
const DBUS_INTERFACE_SOCKET: string
|
|
1844
|
-
const DBUS_INTERFACE_TABLE: string
|
|
1845
|
-
const DBUS_INTERFACE_TABLE_CELL: string
|
|
1846
|
-
const DBUS_INTERFACE_TEXT: string
|
|
1847
|
-
const DBUS_INTERFACE_VALUE: string
|
|
1848
|
-
const DBUS_NAME_REGISTRY: string
|
|
1849
|
-
const DBUS_PATH_DEC: string
|
|
1850
|
-
const DBUS_PATH_NULL: string
|
|
1851
|
-
const DBUS_PATH_REGISTRY: string
|
|
1852
|
-
const DBUS_PATH_ROOT: string
|
|
1853
|
-
const DBUS_PATH_SCREEN_READER: string
|
|
1824
|
+
const DBUS_INTERFACE_ACCESSIBLE: string
|
|
1825
|
+
const DBUS_INTERFACE_ACTION: string
|
|
1826
|
+
const DBUS_INTERFACE_APPLICATION: string
|
|
1827
|
+
const DBUS_INTERFACE_CACHE: string
|
|
1828
|
+
const DBUS_INTERFACE_COLLECTION: string
|
|
1829
|
+
const DBUS_INTERFACE_COMPONENT: string
|
|
1830
|
+
const DBUS_INTERFACE_DEC: string
|
|
1831
|
+
const DBUS_INTERFACE_DEVICE_EVENT_LISTENER: string
|
|
1832
|
+
const DBUS_INTERFACE_DOCUMENT: string
|
|
1833
|
+
const DBUS_INTERFACE_EDITABLE_TEXT: string
|
|
1834
|
+
const DBUS_INTERFACE_EVENT_KEYBOARD: string
|
|
1835
|
+
const DBUS_INTERFACE_EVENT_MOUSE: string
|
|
1836
|
+
const DBUS_INTERFACE_EVENT_OBJECT: string
|
|
1837
|
+
const DBUS_INTERFACE_EVENT_SCREEN_READER: string
|
|
1838
|
+
const DBUS_INTERFACE_HYPERLINK: string
|
|
1839
|
+
const DBUS_INTERFACE_HYPERTEXT: string
|
|
1840
|
+
const DBUS_INTERFACE_IMAGE: string
|
|
1841
|
+
const DBUS_INTERFACE_REGISTRY: string
|
|
1842
|
+
const DBUS_INTERFACE_SELECTION: string
|
|
1843
|
+
const DBUS_INTERFACE_SOCKET: string
|
|
1844
|
+
const DBUS_INTERFACE_TABLE: string
|
|
1845
|
+
const DBUS_INTERFACE_TABLE_CELL: string
|
|
1846
|
+
const DBUS_INTERFACE_TEXT: string
|
|
1847
|
+
const DBUS_INTERFACE_VALUE: string
|
|
1848
|
+
const DBUS_NAME_REGISTRY: string
|
|
1849
|
+
const DBUS_PATH_DEC: string
|
|
1850
|
+
const DBUS_PATH_NULL: string
|
|
1851
|
+
const DBUS_PATH_REGISTRY: string
|
|
1852
|
+
const DBUS_PATH_ROOT: string
|
|
1853
|
+
const DBUS_PATH_SCREEN_READER: string
|
|
1854
1854
|
/**
|
|
1855
1855
|
* One higher than the highest valid value of #AtspiEventType.
|
|
1856
1856
|
*/
|
|
@@ -1962,7 +1962,7 @@ function generate_keyboard_event(keyval: number, keystring: string | null, synth
|
|
|
1962
1962
|
* @param name a string indicating which mouse event to be synthesized (e.g. "b1p", "b1c", "b2r", "rel", "abs").
|
|
1963
1963
|
* @returns %TRUE if successful, otherwise %FALSE.
|
|
1964
1964
|
*/
|
|
1965
|
-
function generate_mouse_event(x: number, y: number, name: string
|
|
1965
|
+
function generate_mouse_event(x: number, y: number, name: string): boolean
|
|
1966
1966
|
/**
|
|
1967
1967
|
* Like atspi_generate_mouse_event, but asynchronous.
|
|
1968
1968
|
* @param x a #glong indicating the screen x coordinate of the mouse event.
|
|
@@ -1970,7 +1970,7 @@ function generate_mouse_event(x: number, y: number, name: string | null): boolea
|
|
|
1970
1970
|
* @param name a string indicating which mouse event to be synthesized (e.g. "b1p", "b1c", "b2r", "rel", "abs").
|
|
1971
1971
|
* @param callback a callback to be called when a reply is received. May be NULL.
|
|
1972
1972
|
*/
|
|
1973
|
-
function generate_mouse_event_async(x: number, y: number, name: string
|
|
1973
|
+
function generate_mouse_event_async(x: number, y: number, name: string, callback: GenerateMouseEventCB | null): void
|
|
1974
1974
|
/**
|
|
1975
1975
|
* Gets the virtual desktop indicated by index `i`.
|
|
1976
1976
|
* NOTE: currently multiple virtual desktops are not implemented;
|
|
@@ -2128,7 +2128,7 @@ interface GenerateMouseEventCB {
|
|
|
2128
2128
|
* @param keystring the text corresponding to the keypress.
|
|
2129
2129
|
*/
|
|
2130
2130
|
interface KeyCallback {
|
|
2131
|
-
(device: Device, pressed: boolean, keycode: number, keysym: number, modifiers: number, keystring: string
|
|
2131
|
+
(device: Device, pressed: boolean, keycode: number, keysym: number, modifiers: number, keystring: string): void
|
|
2132
2132
|
}
|
|
2133
2133
|
module Action {
|
|
2134
2134
|
|
|
@@ -2478,7 +2478,7 @@ interface Document {
|
|
|
2478
2478
|
* @param attribute a string indicating the name of a specific attribute.
|
|
2479
2479
|
* @returns a string corresponding to the value of the specified attribute, or an empty string if the attribute is unspecified for the object.
|
|
2480
2480
|
*/
|
|
2481
|
-
get_document_attribute_value(attribute: string
|
|
2481
|
+
get_document_attribute_value(attribute: string): string | null
|
|
2482
2482
|
/**
|
|
2483
2483
|
* Gets all constant attributes for the document as a whole. For attributes
|
|
2484
2484
|
* that change within the document content, see `atspi_text_get_attribute_run` instead.
|
|
@@ -2575,7 +2575,7 @@ interface EditableText {
|
|
|
2575
2575
|
* @param length the number of characters of text to insert, in bytes. If the byte count of text is less than or equal to length, the entire contents of text will be inserted.
|
|
2576
2576
|
* @returns #TRUE if the operation was successful, otherwise #FALSE.
|
|
2577
2577
|
*/
|
|
2578
|
-
insert_text(position: number, text: string
|
|
2578
|
+
insert_text(position: number, text: string, length: number): boolean
|
|
2579
2579
|
/**
|
|
2580
2580
|
* Inserts text from the system clipboard into an #AtspiEditableText object.
|
|
2581
2581
|
* As with all character offsets, the specified `position` may not be the
|
|
@@ -2590,7 +2590,7 @@ interface EditableText {
|
|
|
2590
2590
|
* @param new_contents a character string, encoded in UTF-8, which is to become the new text contents of the #AtspiEditableText object.
|
|
2591
2591
|
* @returns #TRUE if the operation was successful, otherwise #FALSE.
|
|
2592
2592
|
*/
|
|
2593
|
-
set_text_contents(new_contents: string
|
|
2593
|
+
set_text_contents(new_contents: string): boolean
|
|
2594
2594
|
|
|
2595
2595
|
// Class property signals of Atspi-2.0.Atspi.EditableText
|
|
2596
2596
|
|
|
@@ -3233,7 +3233,7 @@ interface Text {
|
|
|
3233
3233
|
* @param attribute_name The attribute to query.
|
|
3234
3234
|
* @returns the value of a given attribute at the given offset, or %NULL if not present.
|
|
3235
3235
|
*/
|
|
3236
|
-
get_text_attribute_value(offset: number, attribute_name: string
|
|
3236
|
+
get_text_attribute_value(offset: number, attribute_name: string): string | null
|
|
3237
3237
|
/**
|
|
3238
3238
|
* Gets the attributes applied to a range of text from an #AtspiText
|
|
3239
3239
|
* object. The text attributes correspond to CSS attributes
|
|
@@ -3714,7 +3714,7 @@ interface Accessible extends Action, Collection, Component, Document, EditableTe
|
|
|
3714
3714
|
* @returns a UTF-8 string indicating the name of the #AtspiAccessible object or NULL on exception.
|
|
3715
3715
|
*/
|
|
3716
3716
|
get_name(): string | null
|
|
3717
|
-
get_object_locale(): string
|
|
3717
|
+
get_object_locale(): string
|
|
3718
3718
|
/**
|
|
3719
3719
|
* Gets an #AtspiAccessible object's parent container.
|
|
3720
3720
|
* @returns a pointer to the #AtspiAccessible object which contains the given #AtspiAccessible instance, or NULL if the @obj has no parent container.
|
|
@@ -4305,7 +4305,7 @@ interface EventListener {
|
|
|
4305
4305
|
* @param event_type a string specifying the event type for which this listener is to be deregistered.
|
|
4306
4306
|
* @returns #TRUE if successful, otherwise #FALSE.
|
|
4307
4307
|
*/
|
|
4308
|
-
deregister(event_type: string
|
|
4308
|
+
deregister(event_type: string): boolean
|
|
4309
4309
|
/**
|
|
4310
4310
|
* Adds an in-process callback function to an existing #AtspiEventListener.
|
|
4311
4311
|
*
|
|
@@ -4393,14 +4393,14 @@ interface EventListener {
|
|
|
4393
4393
|
* @param event_type a character string indicating the type of events for which notification is requested. Format is EventClass:major_type:minor_type:detail where all subfields other than EventClass are optional. EventClasses include "object", "window", "mouse", and toolkit events (e.g. "Gtk", "AWT"). Examples: "focus:", "Gtk:GtkWidget:button_press_event".
|
|
4394
4394
|
* @returns #TRUE if successful, otherwise #FALSE.
|
|
4395
4395
|
*/
|
|
4396
|
-
register(event_type: string
|
|
4396
|
+
register(event_type: string): boolean
|
|
4397
4397
|
/**
|
|
4398
4398
|
* Adds an in-process callback function to an existing #AtspiEventListener.
|
|
4399
4399
|
* @param event_type a character string indicating the type of events for which notification is requested. See #atspi_event_listener_register for a description of the format and legal event types.
|
|
4400
4400
|
* @param properties a list of properties that should be sent along with the event. The properties are valued for the duration of the event callback. TODO: Document.
|
|
4401
4401
|
* @returns #TRUE if successful, otherwise #FALSE.
|
|
4402
4402
|
*/
|
|
4403
|
-
register_full(event_type: string
|
|
4403
|
+
register_full(event_type: string, properties: string[] | null): boolean
|
|
4404
4404
|
/**
|
|
4405
4405
|
* Adds an in-process callback function to an existing #AtspiEventListener.
|
|
4406
4406
|
* @param event_type a character string indicating the type of events for which notification is requested. See #atspi_event_listener_register for a description of the format and legal event types.
|
|
@@ -4408,7 +4408,7 @@ interface EventListener {
|
|
|
4408
4408
|
* @param app the application whose events should be reported, or %null for all applications.
|
|
4409
4409
|
* @returns #TRUE if successful, otherwise #FALSE.
|
|
4410
4410
|
*/
|
|
4411
|
-
register_with_app(event_type: string
|
|
4411
|
+
register_with_app(event_type: string, properties: string[] | null, app: Accessible | null): boolean
|
|
4412
4412
|
|
|
4413
4413
|
// Class property signals of Atspi-2.0.Atspi.EventListener
|
|
4414
4414
|
|
|
@@ -4460,16 +4460,16 @@ class EventListener extends GObject.Object {
|
|
|
4460
4460
|
* @param event_type a string specifying the event type for which this listener is to be deregistered.
|
|
4461
4461
|
* @returns #TRUE if successful, otherwise #FALSE.
|
|
4462
4462
|
*/
|
|
4463
|
-
static deregister_from_callback(callback: EventListenerCB, event_type: string
|
|
4463
|
+
static deregister_from_callback(callback: EventListenerCB, event_type: string): boolean
|
|
4464
4464
|
/**
|
|
4465
4465
|
* Registers an #AtspiEventListenerCB against an `event_type`.
|
|
4466
4466
|
* @param callback the #AtspiEventListenerCB to be registered against an event type.
|
|
4467
4467
|
* @param event_type a character string indicating the type of events for which notification is requested. See #atspi_event_listener_register for a description of the format.
|
|
4468
4468
|
* @returns #TRUE if successfull, otherwise #FALSE.
|
|
4469
4469
|
*/
|
|
4470
|
-
static register_from_callback(callback: EventListenerCB, event_type: string
|
|
4471
|
-
static register_from_callback_full(event_type: string
|
|
4472
|
-
static register_from_callback_with_app(event_type: string
|
|
4470
|
+
static register_from_callback(callback: EventListenerCB, event_type: string): boolean
|
|
4471
|
+
static register_from_callback_full(event_type: string, properties: string[]): boolean
|
|
4472
|
+
static register_from_callback_with_app(event_type: string, properties: string[], app: Accessible | null): boolean
|
|
4473
4473
|
}
|
|
4474
4474
|
|
|
4475
4475
|
module Hyperlink {
|
|
@@ -4823,7 +4823,7 @@ interface StateSet {
|
|
|
4823
4823
|
* @param name a string corresponding to a state name.
|
|
4824
4824
|
* @param enabled if #TRUE, `name` should be enabled in the `set` in question; otherwise, it should be disabled.
|
|
4825
4825
|
*/
|
|
4826
|
-
set_by_name(name: string
|
|
4826
|
+
set_by_name(name: string, enabled: boolean): void
|
|
4827
4827
|
|
|
4828
4828
|
// Class property signals of Atspi-2.0.Atspi.StateSet
|
|
4829
4829
|
|
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.7",
|
|
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.78.0-3.2.
|
|
31
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
28
|
+
"@girs/dbus-1.0": "^1.0.0-3.2.7",
|
|
29
|
+
"@girs/gjs": "^3.2.7",
|
|
30
|
+
"@girs/glib-2.0": "^2.78.0-3.2.7",
|
|
31
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.7"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"typescript": "*"
|