@girs/atspi-2.0 4.3.0 → 4.4.0
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 +49 -0
- 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 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.
|
|
8
|
+
GJS TypeScript type definitions for Atspi-2.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.4.0.
|
|
9
9
|
|
|
10
10
|
## Install
|
|
11
11
|
|
package/atspi-2.0.d.ts
CHANGED
|
@@ -2706,12 +2706,14 @@ export namespace Atspi {
|
|
|
2706
2706
|
* to the user, but to be an id which is stable over application development.
|
|
2707
2707
|
* Typically, this is the gtkbuilder id.
|
|
2708
2708
|
* @returns a character string representing the accessible id of the {@link Atspi.Accessible} object or NULL on exception.
|
|
2709
|
+
* @since 2.34
|
|
2709
2710
|
*/
|
|
2710
2711
|
get_accessible_id(): string;
|
|
2711
2712
|
|
|
2712
2713
|
/**
|
|
2713
2714
|
* Gets the {@link Atspi.Action} interface for an {@link Atspi.Accessible}.
|
|
2714
2715
|
* @returns a pointer to an {@link Atspi.Action} interface instance, or NULL if `obj` does not implement {@link Atspi.Action}.
|
|
2716
|
+
* @deprecated since 2.10: Use atspi_accessible_get_action_iface instead.
|
|
2715
2717
|
*/
|
|
2716
2718
|
get_action(): Action;
|
|
2717
2719
|
|
|
@@ -2769,6 +2771,7 @@ export namespace Atspi {
|
|
|
2769
2771
|
/**
|
|
2770
2772
|
* Gets the {@link Atspi.Collection} interface for an {@link Atspi.Accessible}.
|
|
2771
2773
|
* @returns a pointer to an {@link Atspi.Collection} interface instance, or NULL if `obj` does not implement {@link Atspi.Collection}.
|
|
2774
|
+
* @deprecated since 2.10: Use atspi_accessible_get_collection_iface instead.
|
|
2772
2775
|
*/
|
|
2773
2776
|
get_collection(): Collection;
|
|
2774
2777
|
|
|
@@ -2781,6 +2784,7 @@ export namespace Atspi {
|
|
|
2781
2784
|
/**
|
|
2782
2785
|
* Gets the {@link Atspi.Component} interface for an {@link Atspi.Accessible}.
|
|
2783
2786
|
* @returns a pointer to an {@link Atspi.Component} interface instance, or NULL if `obj` does not implement {@link Atspi.Component}.
|
|
2787
|
+
* @deprecated since 2.10: Use atspi_accessible_get_component_iface instead.
|
|
2784
2788
|
*/
|
|
2785
2789
|
get_component(): Component;
|
|
2786
2790
|
|
|
@@ -2799,6 +2803,7 @@ export namespace Atspi {
|
|
|
2799
2803
|
/**
|
|
2800
2804
|
* Gets the {@link Atspi.Document} interface for an {@link Atspi.Accessible}.
|
|
2801
2805
|
* @returns a pointer to an {@link Atspi.Document} interface instance, or NULL if `obj` does not implement {@link Atspi.Document}.
|
|
2806
|
+
* @deprecated since 2.10: Use atspi_accessible_get_document_iface instead.
|
|
2802
2807
|
*/
|
|
2803
2808
|
get_document(): Document;
|
|
2804
2809
|
|
|
@@ -2811,6 +2816,7 @@ export namespace Atspi {
|
|
|
2811
2816
|
/**
|
|
2812
2817
|
* Gets the {@link Atspi.EditableText} interface for an {@link Atspi.Accessible}.
|
|
2813
2818
|
* @returns a pointer to an {@link Atspi.EditableText} interface instance, or NULL if `obj` does not implement {@link Atspi.EditableText}.
|
|
2819
|
+
* @deprecated since 2.10: Use atspi_accessible_get_editable_text_iface instead.
|
|
2814
2820
|
*/
|
|
2815
2821
|
get_editable_text(): EditableText;
|
|
2816
2822
|
|
|
@@ -2825,6 +2831,7 @@ export namespace Atspi {
|
|
|
2825
2831
|
* present, it provides information that a screen reader can relay to the user
|
|
2826
2832
|
* to explain how to interact with the object.
|
|
2827
2833
|
* @returns a character string representing the help text for the {@link Atspi.Accessible} object or NULL on exception.
|
|
2834
|
+
* @since 2.52
|
|
2828
2835
|
*/
|
|
2829
2836
|
get_help_text(): string;
|
|
2830
2837
|
|
|
@@ -2837,6 +2844,7 @@ export namespace Atspi {
|
|
|
2837
2844
|
/**
|
|
2838
2845
|
* Gets the {@link Atspi.Hypertext} interface for an {@link Atspi.Accessible}.
|
|
2839
2846
|
* @returns a pointer to an {@link Atspi.Hypertext} interface instance, or NULL if `obj` does not implement {@link Atspi.Hypertext}.
|
|
2847
|
+
* @deprecated since 2.10: Use atspi_accessible_get_hypertext_iface instead.
|
|
2840
2848
|
*/
|
|
2841
2849
|
get_hypertext(): Hypertext;
|
|
2842
2850
|
|
|
@@ -2856,6 +2864,7 @@ export namespace Atspi {
|
|
|
2856
2864
|
/**
|
|
2857
2865
|
* Gets the {@link Atspi.Image} interface for an {@link Atspi.Accessible}.
|
|
2858
2866
|
* @returns a pointer to an {@link Atspi.Image} interface instance, or NULL if `obj` does not implement {@link Atspi.Image}.
|
|
2867
|
+
* @deprecated since 2.10: Use atspi_accessible_get_image_iface instead.
|
|
2859
2868
|
*/
|
|
2860
2869
|
get_image(): Image;
|
|
2861
2870
|
|
|
@@ -2934,6 +2943,7 @@ export namespace Atspi {
|
|
|
2934
2943
|
/**
|
|
2935
2944
|
* Gets the {@link Atspi.Selection} interface for an {@link Atspi.Accessible}.
|
|
2936
2945
|
* @returns a pointer to an {@link Atspi.Selection} interface instance, or NULL if `obj` does not implement {@link Atspi.Selection}.
|
|
2946
|
+
* @deprecated since 2.10: Use atspi_accessible_get_selection_iface instead.
|
|
2937
2947
|
*/
|
|
2938
2948
|
get_selection(): Selection;
|
|
2939
2949
|
|
|
@@ -2958,6 +2968,7 @@ export namespace Atspi {
|
|
|
2958
2968
|
/**
|
|
2959
2969
|
* Gets the {@link Atspi.Table} interface for an {@link Atspi.Accessible}.
|
|
2960
2970
|
* @returns a pointer to an {@link Atspi.Table} interface instance, or NULL if `obj` does not implement {@link Atspi.Table}.
|
|
2971
|
+
* @deprecated since 2.10: Use atspi_accessible_get_table_iface instead.
|
|
2961
2972
|
*/
|
|
2962
2973
|
get_table(): Table;
|
|
2963
2974
|
|
|
@@ -2982,6 +2993,7 @@ export namespace Atspi {
|
|
|
2982
2993
|
/**
|
|
2983
2994
|
* Gets the {@link Atspi.Table} interface for an {@link Atspi.Accessible}.
|
|
2984
2995
|
* @returns a pointer to an {@link Atspi.Text} interface instance, or NULL if `obj` does not implement {@link Atspi.Text}.
|
|
2996
|
+
* @deprecated since 2.10: Use atspi_accessible_get_text_iface instead.
|
|
2985
2997
|
*/
|
|
2986
2998
|
get_text(): Text;
|
|
2987
2999
|
|
|
@@ -3014,6 +3026,7 @@ export namespace Atspi {
|
|
|
3014
3026
|
/**
|
|
3015
3027
|
* Gets the {@link Atspi.Table} interface for an {@link Atspi.Accessible}.
|
|
3016
3028
|
* @returns a pointer to an {@link Atspi.Value} interface instance, or NULL if `obj` does not implement {@link Atspi.Value}.
|
|
3029
|
+
* @deprecated since 2.10: Use atspi_accessible_get_value_iface instead.
|
|
3017
3030
|
*/
|
|
3018
3031
|
get_value(): Value;
|
|
3019
3032
|
|
|
@@ -3144,6 +3157,7 @@ export namespace Atspi {
|
|
|
3144
3157
|
* object implementing {@link Atspi.Action}.
|
|
3145
3158
|
* @param i an integer indicating which action to query.
|
|
3146
3159
|
* @returns a UTF-8 string describing the '`i`-th' invocable action.
|
|
3160
|
+
* @deprecated since 2.10: Use atspi_action_get_action_description instead.
|
|
3147
3161
|
*/
|
|
3148
3162
|
get_action_description(i: number): string;
|
|
3149
3163
|
|
|
@@ -3193,6 +3207,7 @@ export namespace Atspi {
|
|
|
3193
3207
|
* object implementing {@link Atspi.Action}.
|
|
3194
3208
|
* @param i an integer indicating which action to query.
|
|
3195
3209
|
* @returns the non-localized name of the action, as a UTF-8 string.
|
|
3210
|
+
* @deprecated since 2.10: Use atspi_action_get_action_name instead.
|
|
3196
3211
|
*/
|
|
3197
3212
|
get_action_name(i: number): string;
|
|
3198
3213
|
|
|
@@ -3372,6 +3387,7 @@ export namespace Atspi {
|
|
|
3372
3387
|
* Gets the value of a single attribute, if specified for the document as a whole.
|
|
3373
3388
|
* @param attribute a string indicating the name of a specific attribute.
|
|
3374
3389
|
* @returns a string corresponding to the value of the specified attribute, or an empty string if the attribute is unspecified for the object.
|
|
3390
|
+
* @deprecated since 2.10: Use atspi_document_get_document_attribute_value instead.
|
|
3375
3391
|
*/
|
|
3376
3392
|
get_document_attribute_value(attribute: string): string;
|
|
3377
3393
|
|
|
@@ -3379,6 +3395,7 @@ export namespace Atspi {
|
|
|
3379
3395
|
* Gets all constant attributes for the document as a whole. For attributes
|
|
3380
3396
|
* that change within the document content, see `atspi_text_get_attribute_run` instead.
|
|
3381
3397
|
* @returns a {@link GLib.HashTable} containing the constant attributes of the document, as name-value pairs.
|
|
3398
|
+
* @deprecated since 2.10: Use atspi_document_get_document_attributes instead.
|
|
3382
3399
|
*/
|
|
3383
3400
|
get_document_attributes(): { [key: string]: string };
|
|
3384
3401
|
|
|
@@ -3404,6 +3421,7 @@ export namespace Atspi {
|
|
|
3404
3421
|
/**
|
|
3405
3422
|
* Returns an array of AtspiTextSelections within this document.
|
|
3406
3423
|
* @returns a GArray of AtspiTextSelection structures representing the selection.
|
|
3424
|
+
* @since 2.52
|
|
3407
3425
|
*/
|
|
3408
3426
|
get_text_selections(): TextSelection[];
|
|
3409
3427
|
|
|
@@ -3415,6 +3433,7 @@ export namespace Atspi {
|
|
|
3415
3433
|
* FALSE will be returned.
|
|
3416
3434
|
* @param selections a GArray of AtspiTextSelections to be selected.
|
|
3417
3435
|
* @returns TRUE if the selection was made successfully; FALSE otherwise.
|
|
3436
|
+
* @since 2.52
|
|
3418
3437
|
*/
|
|
3419
3438
|
set_text_selections(selections: TextSelection[]): boolean;
|
|
3420
3439
|
|
|
@@ -3914,6 +3933,7 @@ export namespace Atspi {
|
|
|
3914
3933
|
* @param offset The character offset at which to query the attribute.
|
|
3915
3934
|
* @param attribute_name The attribute to query.
|
|
3916
3935
|
* @returns the value of a given attribute at the given offset, or `null` if not present.
|
|
3936
|
+
* @deprecated since 2.10: Use atspi_text_get_text_attribute_value instead.
|
|
3917
3937
|
*/
|
|
3918
3938
|
get_text_attribute_value(offset: number, attribute_name: string): string | null;
|
|
3919
3939
|
|
|
@@ -3923,6 +3943,7 @@ export namespace Atspi {
|
|
|
3923
3943
|
* where possible.
|
|
3924
3944
|
* @param offset a `gint` indicating the offset from which the attribute search is based.
|
|
3925
3945
|
* @returns a {@link GLib.HashTable} describing the attributes at the given character offset.
|
|
3946
|
+
* @deprecated since 2.10: Use atspi_text_get_text_attributes instead.
|
|
3926
3947
|
*/
|
|
3927
3948
|
get_text_attributes(offset: number): [{ [key: string]: string }, number, number];
|
|
3928
3949
|
|
|
@@ -4041,6 +4062,7 @@ export namespace Atspi {
|
|
|
4041
4062
|
* @param offset position
|
|
4042
4063
|
* @param granularity An {@link Atspi.TextGranularity}
|
|
4043
4064
|
* @returns a newly allocated string containing the text at the `offset` bounded by the specified `granularity`. Use `g_free()` to free the returned string. Returns `null` if the offset is invalid or no implementation is available.
|
|
4065
|
+
* @since 2.9.90
|
|
4044
4066
|
*/
|
|
4045
4067
|
get_string_at_offset(offset: number, granularity: TextGranularity): TextRange;
|
|
4046
4068
|
|
|
@@ -4059,6 +4081,7 @@ export namespace Atspi {
|
|
|
4059
4081
|
* @param offset a `gint` indicating the offset from which the delimiter search is based.
|
|
4060
4082
|
* @param type an {@link Atspi.TextBoundaryType} indicating whether the desired text string is a word, sentence, line, or attribute run.
|
|
4061
4083
|
* @returns an {@link Atspi.TextRange} containing a UTF-8 string representing the delimited text, whose delimiting boundaries bracket the current offset, or an empty string if no such text exists.
|
|
4084
|
+
* @deprecated since 2.10: Use atspi_text_get_string_at_offset.
|
|
4062
4085
|
*/
|
|
4063
4086
|
get_text_at_offset(offset: number, type: TextBoundaryType): TextRange;
|
|
4064
4087
|
|
|
@@ -4311,12 +4334,14 @@ export namespace Atspi {
|
|
|
4311
4334
|
* @param x a `gint` indicating the x coordinate of the mouse event, relative to `obj`..
|
|
4312
4335
|
* @param y a `gint` indicating the y coordinate of the mouse event, relative to `obj`..
|
|
4313
4336
|
* @param name a string indicating which mouse event to be synthesized (e.g. "b1p", "b1c", "b2r", "rel", "abs").
|
|
4337
|
+
* @since 2.52
|
|
4314
4338
|
* @virtual
|
|
4315
4339
|
*/
|
|
4316
4340
|
vfunc_generate_mouse_event(obj: Accessible, x: number, y: number, name: string): void;
|
|
4317
4341
|
|
|
4318
4342
|
/**
|
|
4319
4343
|
* Returns the capabilities currently enabled for this device.
|
|
4344
|
+
* @since 2.60
|
|
4320
4345
|
* @virtual
|
|
4321
4346
|
*/
|
|
4322
4347
|
vfunc_get_capabilities(): DeviceCapability;
|
|
@@ -4327,6 +4352,7 @@ export namespace Atspi {
|
|
|
4327
4352
|
* locking modifier such as num lock via atspi_device_get_locked_modifiers,
|
|
4328
4353
|
* rather than to add key grabs.
|
|
4329
4354
|
* @param keysym the XKB keysym to map.
|
|
4355
|
+
* @since 2.55
|
|
4330
4356
|
* @virtual
|
|
4331
4357
|
*/
|
|
4332
4358
|
vfunc_get_keysym_modifier(keysym: number): number;
|
|
@@ -4366,6 +4392,7 @@ export namespace Atspi {
|
|
|
4366
4392
|
* that is not currently being used. If no unused modifier can be found,
|
|
4367
4393
|
* then it will use the first modifier by default.
|
|
4368
4394
|
* @param keysym the XKB keysym to map.
|
|
4395
|
+
* @since 2.55
|
|
4369
4396
|
* @virtual
|
|
4370
4397
|
*/
|
|
4371
4398
|
vfunc_map_keysym_modifier(keysym: number): number;
|
|
@@ -4393,6 +4420,7 @@ export namespace Atspi {
|
|
|
4393
4420
|
|
|
4394
4421
|
/**
|
|
4395
4422
|
* @param capabilities A bitmask specifying the capabilities that should be enabled. This replaces the existing set of enabled capabilities, so, if it excludes some capabilities that are currently enabled, then those capabilities may be disabled.
|
|
4423
|
+
* @since 2.60
|
|
4396
4424
|
* @virtual
|
|
4397
4425
|
*/
|
|
4398
4426
|
vfunc_set_capabilities(capabilities: DeviceCapability): DeviceCapability;
|
|
@@ -4406,6 +4434,7 @@ export namespace Atspi {
|
|
|
4406
4434
|
/**
|
|
4407
4435
|
* Removes a mapped modifier from the given keysym.
|
|
4408
4436
|
* @param keysym the XKB keysym to unmap.
|
|
4437
|
+
* @since 2.55
|
|
4409
4438
|
* @virtual
|
|
4410
4439
|
*/
|
|
4411
4440
|
vfunc_unmap_keysym_modifier(keysym: number): void;
|
|
@@ -4429,6 +4458,7 @@ export namespace Atspi {
|
|
|
4429
4458
|
* Add a callback that will receive a notification whenever a key is
|
|
4430
4459
|
* pressed or released.
|
|
4431
4460
|
* @param callback the function to call when the given key is pressed.
|
|
4461
|
+
* @deprecated since 2.60: Connect to the key-pressed and key-released signals instead of using this function.
|
|
4432
4462
|
*/
|
|
4433
4463
|
add_key_watcher(callback: KeyCallback): void;
|
|
4434
4464
|
|
|
@@ -4445,16 +4475,19 @@ export namespace Atspi {
|
|
|
4445
4475
|
* @param x a `gint` indicating the x coordinate of the mouse event, relative to `obj`..
|
|
4446
4476
|
* @param y a `gint` indicating the y coordinate of the mouse event, relative to `obj`..
|
|
4447
4477
|
* @param name a string indicating which mouse event to be synthesized (e.g. "b1p", "b1c", "b2r", "rel", "abs").
|
|
4478
|
+
* @since 2.52
|
|
4448
4479
|
*/
|
|
4449
4480
|
generate_mouse_event(obj: Accessible, x: number, y: number, name: string): void;
|
|
4450
4481
|
|
|
4451
4482
|
/**
|
|
4452
4483
|
* Returns the application ID of the device.
|
|
4484
|
+
* @since 2.55
|
|
4453
4485
|
*/
|
|
4454
4486
|
get_app_id(): string;
|
|
4455
4487
|
|
|
4456
4488
|
/**
|
|
4457
4489
|
* Returns the capabilities currently enabled for this device.
|
|
4490
|
+
* @since 2.60
|
|
4458
4491
|
*/
|
|
4459
4492
|
get_capabilities(): DeviceCapability;
|
|
4460
4493
|
|
|
@@ -4470,6 +4503,7 @@ export namespace Atspi {
|
|
|
4470
4503
|
* rather than to add key grabs.
|
|
4471
4504
|
* @param keysym the XKB keysym to map.
|
|
4472
4505
|
* @returns the modifier that is mapped to this keysym.
|
|
4506
|
+
* @since 2.55
|
|
4473
4507
|
*/
|
|
4474
4508
|
get_keysym_modifier(keysym: number): number;
|
|
4475
4509
|
|
|
@@ -4509,6 +4543,7 @@ export namespace Atspi {
|
|
|
4509
4543
|
* then it will use the first modifier by default.
|
|
4510
4544
|
* @param keysym the XKB keysym to map.
|
|
4511
4545
|
* @returns the modifier that is now mapped to this keysym. This return value can be passed to atspi_device_add_key_grab.
|
|
4546
|
+
* @since 2.55
|
|
4512
4547
|
*/
|
|
4513
4548
|
map_keysym_modifier(keysym: number): number;
|
|
4514
4549
|
|
|
@@ -4544,12 +4579,14 @@ export namespace Atspi {
|
|
|
4544
4579
|
/**
|
|
4545
4580
|
* Sets the application ID of the device.
|
|
4546
4581
|
* @param app_id the application ID.
|
|
4582
|
+
* @since 2.55
|
|
4547
4583
|
*/
|
|
4548
4584
|
set_app_id(app_id: string): void;
|
|
4549
4585
|
|
|
4550
4586
|
/**
|
|
4551
4587
|
* @param capabilities A bitmask specifying the capabilities that should be enabled. This replaces the existing set of enabled capabilities, so, if it excludes some capabilities that are currently enabled, then those capabilities may be disabled.
|
|
4552
4588
|
* @returns The new set of capabilities that are enabled. This may differ from the value passed in if the device does not support all of the requested capabilities.
|
|
4589
|
+
* @since 2.60
|
|
4553
4590
|
*/
|
|
4554
4591
|
set_capabilities(capabilities: DeviceCapability): DeviceCapability;
|
|
4555
4592
|
|
|
@@ -4561,6 +4598,7 @@ export namespace Atspi {
|
|
|
4561
4598
|
/**
|
|
4562
4599
|
* Removes a mapped modifier from the given keysym.
|
|
4563
4600
|
* @param keysym the XKB keysym to unmap.
|
|
4601
|
+
* @since 2.55
|
|
4564
4602
|
*/
|
|
4565
4603
|
unmap_keysym_modifier(keysym: number): void;
|
|
4566
4604
|
|
|
@@ -5778,6 +5816,7 @@ export namespace Atspi {
|
|
|
5778
5816
|
* object implementing {@link Atspi.Action}.
|
|
5779
5817
|
* @param i an integer indicating which action to query.
|
|
5780
5818
|
* @returns a UTF-8 string describing the '`i`-th' invocable action.
|
|
5819
|
+
* @deprecated since 2.10: Use atspi_action_get_action_description instead.
|
|
5781
5820
|
*/
|
|
5782
5821
|
get_action_description(i: number): string;
|
|
5783
5822
|
|
|
@@ -5827,6 +5866,7 @@ export namespace Atspi {
|
|
|
5827
5866
|
* object implementing {@link Atspi.Action}.
|
|
5828
5867
|
* @param i an integer indicating which action to query.
|
|
5829
5868
|
* @returns the non-localized name of the action, as a UTF-8 string.
|
|
5869
|
+
* @deprecated since 2.10: Use atspi_action_get_action_name instead.
|
|
5830
5870
|
*/
|
|
5831
5871
|
get_action_name(i: number): string;
|
|
5832
5872
|
}
|
|
@@ -6083,6 +6123,7 @@ export namespace Atspi {
|
|
|
6083
6123
|
* Gets the value of a single attribute, if specified for the document as a whole.
|
|
6084
6124
|
* @param attribute a string indicating the name of a specific attribute.
|
|
6085
6125
|
* @returns a string corresponding to the value of the specified attribute, or an empty string if the attribute is unspecified for the object.
|
|
6126
|
+
* @deprecated since 2.10: Use atspi_document_get_document_attribute_value instead.
|
|
6086
6127
|
*/
|
|
6087
6128
|
get_document_attribute_value(attribute: string): string;
|
|
6088
6129
|
|
|
@@ -6090,6 +6131,7 @@ export namespace Atspi {
|
|
|
6090
6131
|
* Gets all constant attributes for the document as a whole. For attributes
|
|
6091
6132
|
* that change within the document content, see `atspi_text_get_attribute_run` instead.
|
|
6092
6133
|
* @returns a {@link GLib.HashTable} containing the constant attributes of the document, as name-value pairs.
|
|
6134
|
+
* @deprecated since 2.10: Use atspi_document_get_document_attributes instead.
|
|
6093
6135
|
*/
|
|
6094
6136
|
get_document_attributes(): { [key: string]: string };
|
|
6095
6137
|
|
|
@@ -6115,6 +6157,7 @@ export namespace Atspi {
|
|
|
6115
6157
|
/**
|
|
6116
6158
|
* Returns an array of AtspiTextSelections within this document.
|
|
6117
6159
|
* @returns a GArray of AtspiTextSelection structures representing the selection.
|
|
6160
|
+
* @since 2.52
|
|
6118
6161
|
*/
|
|
6119
6162
|
get_text_selections(): TextSelection[];
|
|
6120
6163
|
|
|
@@ -6126,6 +6169,7 @@ export namespace Atspi {
|
|
|
6126
6169
|
* FALSE will be returned.
|
|
6127
6170
|
* @param selections a GArray of AtspiTextSelections to be selected.
|
|
6128
6171
|
* @returns TRUE if the selection was made successfully; FALSE otherwise.
|
|
6172
|
+
* @since 2.52
|
|
6129
6173
|
*/
|
|
6130
6174
|
set_text_selections(selections: TextSelection[]): boolean;
|
|
6131
6175
|
}
|
|
@@ -6827,6 +6871,7 @@ export namespace Atspi {
|
|
|
6827
6871
|
* @param offset The character offset at which to query the attribute.
|
|
6828
6872
|
* @param attribute_name The attribute to query.
|
|
6829
6873
|
* @returns the value of a given attribute at the given offset, or `null` if not present.
|
|
6874
|
+
* @deprecated since 2.10: Use atspi_text_get_text_attribute_value instead.
|
|
6830
6875
|
*/
|
|
6831
6876
|
get_text_attribute_value(offset: number, attribute_name: string): string | null;
|
|
6832
6877
|
|
|
@@ -6836,6 +6881,7 @@ export namespace Atspi {
|
|
|
6836
6881
|
* where possible.
|
|
6837
6882
|
* @param offset a `gint` indicating the offset from which the attribute search is based.
|
|
6838
6883
|
* @returns a {@link GLib.HashTable} describing the attributes at the given character offset.
|
|
6884
|
+
* @deprecated since 2.10: Use atspi_text_get_text_attributes instead.
|
|
6839
6885
|
*/
|
|
6840
6886
|
get_text_attributes(offset: number): [{ [key: string]: string }, number, number];
|
|
6841
6887
|
|
|
@@ -6961,6 +7007,7 @@ export namespace Atspi {
|
|
|
6961
7007
|
* @param offset position
|
|
6962
7008
|
* @param granularity An {@link Atspi.TextGranularity}
|
|
6963
7009
|
* @returns a newly allocated string containing the text at the `offset` bounded by the specified `granularity`. Use `g_free()` to free the returned string. Returns `null` if the offset is invalid or no implementation is available.
|
|
7010
|
+
* @since 2.9.90
|
|
6964
7011
|
*/
|
|
6965
7012
|
get_string_at_offset(offset: number, granularity: TextGranularity): TextRange;
|
|
6966
7013
|
|
|
@@ -6989,6 +7036,7 @@ export namespace Atspi {
|
|
|
6989
7036
|
* @param offset a `gint` indicating the offset from which the delimiter search is based.
|
|
6990
7037
|
* @param type an {@link Atspi.TextBoundaryType} indicating whether the desired text string is a word, sentence, line, or attribute run.
|
|
6991
7038
|
* @returns an {@link Atspi.TextRange} containing a UTF-8 string representing the delimited text, whose delimiting boundaries bracket the current offset, or an empty string if no such text exists.
|
|
7039
|
+
* @deprecated since 2.10: Use atspi_text_get_string_at_offset.
|
|
6992
7040
|
*/
|
|
6993
7041
|
get_text_at_offset(offset: number, type: TextBoundaryType): TextRange;
|
|
6994
7042
|
|
|
@@ -7103,6 +7151,7 @@ export namespace Atspi {
|
|
|
7103
7151
|
* Gets the human readable text alternative associated with the value.
|
|
7104
7152
|
* `text` is a newly created string, that must be freed by the
|
|
7105
7153
|
* caller. Can be NULL if no descriptor is available.
|
|
7154
|
+
* @since 2.46
|
|
7106
7155
|
*/
|
|
7107
7156
|
get_text(): string;
|
|
7108
7157
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/atspi-2.0",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Atspi-2.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/gjs": "^4.
|
|
35
|
-
"@girs/gobject-2.0": "^4.
|
|
36
|
-
"@girs/glib-2.0": "^4.
|
|
37
|
-
"@girs/dbus-1.0": "^4.
|
|
34
|
+
"@girs/gjs": "^4.4.0",
|
|
35
|
+
"@girs/gobject-2.0": "^4.4.0",
|
|
36
|
+
"@girs/glib-2.0": "^4.4.0",
|
|
37
|
+
"@girs/dbus-1.0": "^4.4.0" },
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"typescript": "*"
|
|
40
40
|
},
|