2014-06-10 00:18:17 -07:00
interface Elm_Interface_Atspi_Text ()
{
legacy_prefix: null;
eo_prefix: elm_interface_atspi_text;
2015-05-07 09:32:53 -07:00
methods {
@property character @protected {
2014-06-10 00:18:17 -07:00
get {
2015-08-07 06:25:45 -07:00
[[Gets single character present in accessible widget's text at given offset.]]
2014-06-10 00:18:17 -07:00
}
keys {
2015-08-07 06:25:45 -07:00
offset: int; [[Position in text.]]
2014-06-10 00:18:17 -07:00
}
values {
2015-08-07 06:25:45 -07:00
character: Eina_Unicode; [[Character at offset. 0 when out-of bounds offset has been given. Codepoints between DC80 and DCFF indicates that string includes invalid UTF8 chars.]]
2014-06-10 00:18:17 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property string @protected {
2014-06-10 00:18:17 -07:00
get {
2015-08-07 06:25:45 -07:00
[[Gets string, start and end offset in text according to given initial offset and granulatity.]]
2014-06-10 00:18:17 -07:00
}
keys {
2015-05-18 08:16:08 -07:00
granularity: Elm_Atspi_Text_Granularity;
2015-08-07 06:25:45 -07:00
start_offset: int * @nonull; [[Offset indicating start of string according to given granularity. -1 in case of error.]]
end_offset: int *; [[Offset indicating end of string according to given granularity. -1 in case of error.]]
2014-06-10 00:18:17 -07:00
}
values {
2015-08-07 06:25:45 -07:00
string: own(char *); [[Newly allocated UTF-8 encoded string. Must be free by a user.]]
2014-06-10 00:18:17 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property text @protected {
2014-06-10 00:18:17 -07:00
get {
2015-08-07 06:25:45 -07:00
[[Gets text of accessible widget.]]
2014-06-10 00:18:17 -07:00
}
keys {
2015-08-07 06:25:45 -07:00
start_offset: int; [[Position in text.]]
end_offset: int; [[End offset of text.]]
2014-06-10 00:18:17 -07:00
}
values {
2015-08-07 06:25:45 -07:00
text: own(char *); [[UTF-8 encoded text.]]
2014-06-10 00:18:17 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property caret_offset @protected {
2014-06-10 00:18:17 -07:00
get {
2015-08-07 06:25:45 -07:00
[[Gets offset position of caret (cursor)]]
2014-06-10 00:18:17 -07:00
}
set {
2015-08-07 06:25:45 -07:00
return: bool; [[$true if caret was successfully moved, $falseotherwise.]]
2014-06-10 00:18:17 -07:00
}
values {
2015-05-18 08:16:08 -07:00
offset: int;
2014-06-10 00:18:17 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property attribute @protected {
2014-06-10 00:18:17 -07:00
get {
2015-08-07 06:25:45 -07:00
[[Indicate if a text attribute with a given name is set]]
2014-08-11 07:46:11 -07:00
return: bool;
2014-06-10 00:18:17 -07:00
}
keys {
2015-08-07 06:25:45 -07:00
name: const(char)* @nonull; [[text attribute name]]
start_offset: int * @nonull; [[Position in text from which given attribute is set.]]
end_offset: int *; [[Position in text to which given attribute is set.]]
2014-06-10 00:18:17 -07:00
}
values {
2015-08-07 06:25:45 -07:00
value: own(char *); [[Value of text attribute. Should be free()]]
2014-06-10 00:18:17 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property attributes @protected {
2014-06-10 00:18:17 -07:00
get {
2015-08-07 06:25:45 -07:00
[[Gets list of all text attributes.]]
2014-06-10 00:18:17 -07:00
}
keys {
2015-05-18 08:16:08 -07:00
start_offset: int * @nonull;
end_offset: int *;
2014-06-10 00:18:17 -07:00
}
values {
2015-05-18 08:16:08 -07:00
attributes: own(list<own(Elm_Atspi_Text_Attribute *)> *);
2014-06-10 00:18:17 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property default_attributes @protected {
2014-06-10 00:18:17 -07:00
get {
}
values {
2015-05-18 08:16:08 -07:00
attributes: own(list<own(Elm_Atspi_Text_Attribute *)>*);
2014-06-10 00:18:17 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property character_extents @protected {
2014-06-10 00:18:17 -07:00
get {
2014-08-11 07:46:11 -07:00
return: bool;
2014-06-10 00:18:17 -07:00
}
keys {
2015-05-18 08:16:08 -07:00
offset: int;
screen_coords: bool;
2014-06-10 00:18:17 -07:00
}
values {
2015-05-18 08:16:08 -07:00
rect: Eina_Rectangle;
2014-06-10 00:18:17 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property character_count @protected {
2014-06-10 00:18:17 -07:00
get {
}
values {
2015-05-18 08:16:08 -07:00
count: int;
2014-06-10 00:18:17 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property offset_at_point @protected {
2014-06-10 00:18:17 -07:00
get {
}
keys {
2015-05-18 08:16:08 -07:00
screen_coords: bool;
x: int;
y: int;
2014-06-10 00:18:17 -07:00
}
values {
2015-05-18 08:16:08 -07:00
offset: int;
2014-06-10 00:18:17 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property bounded_ranges @protected {
2014-06-10 00:18:17 -07:00
get {
}
keys {
2015-05-18 08:16:08 -07:00
screen_coords: bool;
rect: Eina_Rectangle;
xclip: Elm_Atspi_Text_Clip_Type;
yclip: Elm_Atspi_Text_Clip_Type;
2014-06-10 00:18:17 -07:00
}
values {
2015-05-18 08:16:08 -07:00
ranges: own(list<own(Elm_Atspi_Text_Range *)> *);
2014-06-10 00:18:17 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property range_extents @protected {
2014-06-10 00:18:17 -07:00
get {
2014-08-11 07:46:11 -07:00
return: bool;
2014-06-10 00:18:17 -07:00
}
keys {
2015-08-07 06:25:45 -07:00
screen_coords: bool; [[If true x and y values will be relative to screen origin, otherwise relative to canvas]]
2015-05-18 08:16:08 -07:00
start_offset: int;
end_offset: int;
2014-06-10 00:18:17 -07:00
}
values {
2015-05-18 08:16:08 -07:00
rect: Eina_Rectangle;
2014-06-10 00:18:17 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property selections_count @protected {
2014-06-10 00:18:17 -07:00
get {
}
values {
2015-05-18 08:16:08 -07:00
count: int;
2014-06-10 00:18:17 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property selection @protected {
2014-06-10 00:18:17 -07:00
get {
}
set {
2014-08-11 07:46:11 -07:00
return: bool;
2014-06-10 00:18:17 -07:00
}
keys {
2015-05-18 08:16:08 -07:00
selection_number: int;
2014-06-10 00:18:17 -07:00
}
values {
2015-05-18 08:16:08 -07:00
start_offset: int;
end_offset: int;
2014-06-10 00:18:17 -07:00
}
}
2014-07-22 08:36:29 -07:00
selection_add @protected {
2014-06-10 00:18:17 -07:00
params {
2015-05-18 08:16:08 -07:00
@in start_offset: int;
@in end_offset: int;
2014-06-10 00:18:17 -07:00
}
2014-08-11 07:46:11 -07:00
return: bool;
2014-06-10 00:18:17 -07:00
}
2014-07-22 08:36:29 -07:00
selection_remove @protected {
2014-06-10 00:18:17 -07:00
params {
2015-05-18 08:16:08 -07:00
@in selection_number: int;
2014-06-10 00:18:17 -07:00
}
2014-08-11 07:46:11 -07:00
return: bool;
2014-06-10 00:18:17 -07:00
}
}
events {
access,text,bounds,changed;
access,text,attributes,changed;
access,text,caret,moved;
access,text,inserted;
access,text,removed;
access,text,selection,changed;
}
}