efl/src/lib/elementary/elm_interface_atspi_text.eo

232 lines
6.0 KiB
Plaintext
Raw Normal View History

2016-04-19 08:23:39 -07:00
import eina_types;
enum Elm.Atspi_Text.Granularity
{
[[Text accessibility granularity]]
char, [[Character granularity]]
word, [[Word granularity]]
sentence, [[Sentence granularity]]
line, [[Line granularity]]
paragraph [[Paragraph granularity]]
}
enum Elm.Atspi_Text.Clip_Type
{
[[Text clip type]]
legacy: elm_atspi_text_clip;
none, [[No clip type]]
min, [[Minimum clip type]]
max, [[Maximum clip type]]
both [[Both clip types]]
}
struct Elm.Atspi_Text.Attribute
{
[[Text attribute]]
name: string; [[Text attribute name]]
value: string; [[Text attribute value]]
}
struct Elm.Atspi_Text.Range
{
[[Text range]]
start_offset: int; [[Range start offset]]
end_offset : int; [[Range end offset]]
content: char *; [[Range content]]
}
struct Elm.Atspi_Text.Change_Info
{
[[Text change information]]
content: string; [[Change content]]
inserted: bool; [[$true if text got inserted]]
pos: size; [[Change position]]
len: size; [[Change length]]
}
interface Elm.Interface.Atspi.Text ()
{
eo_prefix: elm_interface_atspi_text;
2015-05-07 09:32:53 -07:00
methods {
@property character @protected {
get {
2015-08-07 06:25:45 -07:00
[[Gets single character present in accessible widget's text at given offset.]]
}
keys {
2015-08-07 06:25:45 -07:00
offset: int; [[Position in text.]]
}
values {
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.]]
}
}
2015-05-07 09:32:53 -07:00
@property string @protected {
get {
[[Gets string, start and end offset in text according to given initial offset and granularity.]]
}
keys {
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.]]
}
values {
string: own(char *); [[Newly allocated UTF-8 encoded string. Must be free by a user.]]
}
}
2015-05-07 09:32:53 -07:00
@property text @protected {
get {
2015-08-07 06:25:45 -07:00
[[Gets text of accessible widget.]]
}
keys {
2015-08-07 06:25:45 -07:00
start_offset: int; [[Position in text.]]
end_offset: int; [[End offset of text.]]
}
values {
2015-08-07 06:25:45 -07:00
text: own(char *); [[UTF-8 encoded text.]]
}
}
2015-05-07 09:32:53 -07:00
@property caret_offset @protected {
get {
2015-08-07 06:25:45 -07:00
[[Gets offset position of caret (cursor)]]
}
set {
return: bool; [[$true if caret was successfully moved, $false otherwise.]]
}
values {
offset: int;
}
}
2015-05-07 09:32:53 -07:00
@property attribute @protected {
get {
2015-08-07 06:25:45 -07:00
[[Indicate if a text attribute with a given name is set]]
return: bool;
}
keys {
name: string @nonull; [[text attribute name]]
2015-08-07 06:25:45 -07:00
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.]]
}
values {
2015-08-07 06:25:45 -07:00
value: own(char *); [[Value of text attribute. Should be free()]]
}
}
2015-05-07 09:32:53 -07:00
@property attributes @protected {
get {
2015-08-07 06:25:45 -07:00
[[Gets list of all text attributes.]]
}
keys {
start_offset: int * @nonull;
end_offset: int *;
}
values {
attributes: own(list<own(Elm.Atspi_Text.Attribute *)>);
}
}
2015-05-07 09:32:53 -07:00
@property default_attributes @protected {
get {
}
values {
attributes: own(list<own(Elm.Atspi_Text.Attribute *)>);
}
}
2015-05-07 09:32:53 -07:00
@property character_extents @protected {
get {
return: bool;
}
keys {
offset: int;
screen_coords: bool;
}
values {
2016-04-19 08:23:39 -07:00
rect: Eina.Rectangle;
}
}
2015-05-07 09:32:53 -07:00
@property character_count @protected {
get {
}
values {
count: int;
}
}
2015-05-07 09:32:53 -07:00
@property offset_at_point @protected {
get {
}
keys {
screen_coords: bool;
x: int;
y: int;
}
values {
offset: int;
}
}
2015-05-07 09:32:53 -07:00
@property bounded_ranges @protected {
get {
}
keys {
screen_coords: bool;
2016-04-19 08:23:39 -07:00
rect: Eina.Rectangle;
xclip: Elm.Atspi_Text.Clip_Type;
yclip: Elm.Atspi_Text.Clip_Type;
}
values {
ranges: own(list<own(Elm.Atspi_Text.Range *)>);
}
}
2015-05-07 09:32:53 -07:00
@property range_extents @protected {
get {
return: bool;
}
keys {
screen_coords: bool; [[If $true, x and y values will be relative to screen origin, otherwise relative to canvas]]
start_offset: int;
end_offset: int;
}
values {
2016-04-19 08:23:39 -07:00
rect: Eina.Rectangle;
}
}
2015-05-07 09:32:53 -07:00
@property selections_count @protected {
get {
}
values {
count: int;
}
}
2015-05-07 09:32:53 -07:00
@property selection @protected {
get {
}
set {
return: bool;
}
keys {
selection_number: int;
}
values {
start_offset: int;
end_offset: int;
}
}
2014-07-22 08:36:29 -07:00
selection_add @protected {
params {
@in start_offset: int;
@in end_offset: int;
}
return: bool;
}
2014-07-22 08:36:29 -07:00
selection_remove @protected {
params {
@in selection_number: int;
}
return: bool;
}
}
events {
access,text,bounds,changed;
access,text,attributes,changed;
access,text,caret,moved;
access,text,inserted;
access,text,removed;
access,text,selection,changed;
}
}