summaryrefslogtreecommitdiff
path: root/src/lib/elm_interface_atspi_text.eo
blob: d2c8277a41408a1c34467ca9f13e2d78bff98c68 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
interface Elm_Interface_Atspi_Text ()
{
   legacy_prefix: null;
   eo_prefix: elm_interface_atspi_text;
   data: null;
   properties {
      protected character {
         get {
            /*@ Gets single character present in accessible widget's text
                at given offset. */
         }
         keys {
            int offset; /*@ Position in text. */
         }
         values {
            Eina_Unicode character; /*@ Character at offset. 0 when out-of
                                      bounds offset has been given.
                                      Codepoints between DC80 and DCFF indicates
                                      that string includes invalid UTF8 chars. */
         }
      }
      protected string {
         get {
            /*@ Gets string, start and end offset in text according to
              given initial offset and granulatity. */
         }
         keys {
            Elm_Atspi_Text_Granularity granularity;
            int *start_offset @nonull; /*@ Offset indicating start of string
                                                according to given granularity.
                                                -1 in case of error. */
            int *end_offset; /*@ Offset indicating end of string according
                                   to given granularity. -1 in case of error. */
         }
         values {
            char *string; /*@ Newly allocated UTF-8 encoded string.
                            Must be free by a user. */
         }
      }
      protected text {
         get {
            /*@ Gets text of accessible widget. */
         }
         keys {
            int start_offset; /*@ Position in text. */
            int end_offset; /*@ End offset of text. */
         }
         values {
            char *text; /*@ UTF-8 encoded text. */
         }
      }
      protected caret_offset {
         get {
            /*@ Gets offset position of caret (cursor) */
         }
         set {
            return Eina_Bool; /*@ EINA_TRUE if caret was successfully moved,
                               EINA_FASLE otherwise. */
         }
         values {
            int offset;
         }
      }
      protected attribute {
         get {
            /*@ Indicate if a text attribute with a given name is set */
            return Eina_Bool;
         }
         keys {
            const(char)* name @nonull; /*@ text attribute name */
            int *start_offset @nonull; /*@ Position in text from which
                                                given attribute is set. */
            int *end_offset; /*@ Position in text to which given attribute
                                    is set. */
         }
         values {
            char *value; /* Value of text attribute. Should be free() */
         }
      }
      protected attributes {
         get {
            /* Gets list of all text attributes. */
         }
         keys {
            int *start_offset @nonull;
            int *end_offset;
         }
         values {
            @own(Eina_List*) attributes;
         }
      }
      protected default_attributes {
         get {
         }
         values {
            @own(Eina_List*) attributes;
         }
      }
      protected character_extents {
         get {
            return Eina_Bool;
         }
         keys {
            int offset;
            Eina_Bool screen_coords;
         }
         values {
            Eina_Rectangle rect;
         }
      }
      protected character_count {
         get {
         }
         values {
            int count;
         }
      }
      protected offset_at_point {
         get {
         }
         keys {
            Eina_Bool screen_coords;
            int x;
            int y;
         }
         values {
            int offset;
         }
      }
      protected bounded_ranges {
         get {
         }
         keys {
            Eina_Bool screen_coords;
            Eina_Rectangle rect;
            Elm_Atspi_Text_Clip_Type xclip;
            Elm_Atspi_Text_Clip_Type yclip;
         }
         values {
            Eina_List *ranges;
         }
      }
      protected range_extents {
         get {
            return Eina_Bool;
         }
         keys {
            Eina_Bool screen_coords; /*@ If true x and y values will be relative
                                       to screen origin, otherwise relative to
                                       canvas */
            int start_offset;
            int end_offset;
         }
         values {
            Eina_Rectangle rect;
         }
      }
      protected selections_count {
         get {
         }
         values {
            int count;
         }
      }
      protected selection {
         get {
         }
         set {
            return Eina_Bool;
         }
         keys {
            int selection_number;
         }
         values {
            int start_offset;
            int end_offset;
         }
      }
   }
   methods {
      protected selection_add {
         params {
            @in int start_offset;
            @in int end_offset;
         }
         return Eina_Bool;
      }
      protected selection_remove  {
         params {
            @in int selection_number;
         }
         return Eina_Bool;
      }
   }
   events {
      access,text,bounds,changed;
      access,text,attributes,changed;
      access,text,caret,moved;
      access,text,inserted;
      access,text,removed;
      access,text,selection,changed;
   }
}