summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLarry <larry.olj@gmail.com>2016-01-29 18:12:17 -0200
committerLarry <larry.olj@gmail.com>2016-02-02 13:04:52 -0200
commitdec3bad33f83c67cbf8f0e2da72873f08956e74c (patch)
tree8930c7508a6042188e67d3e735b061dc7919a0c7
parent628f356f5e98ae18143cf0590431d3e5d24665df (diff)
move enum e structs defines of elm_atspi_text to eolian
-rw-r--r--src/lib/elm_interface_atspi_text.eo51
-rw-r--r--src/lib/elm_interface_atspi_text.h58
2 files changed, 50 insertions, 59 deletions
diff --git a/src/lib/elm_interface_atspi_text.eo b/src/lib/elm_interface_atspi_text.eo
index eb358a5fe..249664d2a 100644
--- a/src/lib/elm_interface_atspi_text.eo
+++ b/src/lib/elm_interface_atspi_text.eo
@@ -1,3 +1,42 @@
1enum Elm.Atspi_Text.Granularity
2{
3 char,
4 word,
5 sentence,
6 line,
7 paragraph
8}
9
10enum Elm.Atspi_Text.Clip_Type
11{
12 legacy: elm_atspi_text_clip;
13 none,
14 min,
15 max,
16 both
17}
18
19struct Elm.Atspi_Text.Attribute
20{
21 name: const(char)*;
22 value: const(char)*;
23}
24
25struct Elm.Atspi_Text.Range
26{
27 start_offset: int;
28 end_offset : int;
29 content: char *;
30}
31
32struct Elm.Atspi_Text.Change_Info
33{
34 content: const(char)*;
35 inserted: Eina.Bool;
36 pos: size_t;
37 len: size_t;
38}
39
1interface Elm.Interface_Atspi_Text () 40interface Elm.Interface_Atspi_Text ()
2{ 41{
3 legacy_prefix: null; 42 legacy_prefix: null;
@@ -19,7 +58,7 @@ interface Elm.Interface_Atspi_Text ()
19 [[Gets string, start and end offset in text according to given initial offset and granulatity.]] 58 [[Gets string, start and end offset in text according to given initial offset and granulatity.]]
20 } 59 }
21 keys { 60 keys {
22 granularity: Elm_Atspi_Text_Granularity; 61 granularity: Elm.Atspi_Text.Granularity;
23 start_offset: int * @nonull; [[Offset indicating start of string according to given granularity. -1 in case of error.]] 62 start_offset: int * @nonull; [[Offset indicating start of string according to given granularity. -1 in case of error.]]
24 end_offset: int *; [[Offset indicating end of string according to given granularity. -1 in case of error.]] 63 end_offset: int *; [[Offset indicating end of string according to given granularity. -1 in case of error.]]
25 } 64 }
@@ -73,14 +112,14 @@ interface Elm.Interface_Atspi_Text ()
73 end_offset: int *; 112 end_offset: int *;
74 } 113 }
75 values { 114 values {
76 attributes: own(list<own(Elm_Atspi_Text_Attribute *)> *); 115 attributes: own(list<own(Elm.Atspi_Text.Attribute *)> *);
77 } 116 }
78 } 117 }
79 @property default_attributes @protected { 118 @property default_attributes @protected {
80 get { 119 get {
81 } 120 }
82 values { 121 values {
83 attributes: own(list<own(Elm_Atspi_Text_Attribute *)>*); 122 attributes: own(list<own(Elm.Atspi_Text.Attribute *)>*);
84 } 123 }
85 } 124 }
86 @property character_extents @protected { 125 @property character_extents @protected {
@@ -120,11 +159,11 @@ interface Elm.Interface_Atspi_Text ()
120 keys { 159 keys {
121 screen_coords: bool; 160 screen_coords: bool;
122 rect: Eina_Rectangle; 161 rect: Eina_Rectangle;
123 xclip: Elm_Atspi_Text_Clip_Type; 162 xclip: Elm.Atspi_Text.Clip_Type;
124 yclip: Elm_Atspi_Text_Clip_Type; 163 yclip: Elm.Atspi_Text.Clip_Type;
125 } 164 }
126 values { 165 values {
127 ranges: own(list<own(Elm_Atspi_Text_Range *)> *); 166 ranges: own(list<own(Elm.Atspi_Text.Range *)> *);
128 } 167 }
129 } 168 }
130 @property range_extents @protected { 169 @property range_extents @protected {
diff --git a/src/lib/elm_interface_atspi_text.h b/src/lib/elm_interface_atspi_text.h
index be1abc688..3b65d0e92 100644
--- a/src/lib/elm_interface_atspi_text.h
+++ b/src/lib/elm_interface_atspi_text.h
@@ -3,59 +3,6 @@
3 3
4#ifdef EFL_BETA_API_SUPPORT 4#ifdef EFL_BETA_API_SUPPORT
5 5
6enum _Elm_Atspi_Text_Granulatity
7{
8 ELM_ATSPI_TEXT_GRANULARITY_CHAR,
9 ELM_ATSPI_TEXT_GRANULARITY_WORD,
10 ELM_ATSPI_TEXT_GRANULARITY_SENTENCE,
11 ELM_ATSPI_TEXT_GRANULARITY_LINE,
12 ELM_ATSPI_TEXT_GRANULARITY_PARAGRAPH
13};
14
15typedef enum _Elm_Atspi_Text_Granulatity Elm_Atspi_Text_Granularity;
16
17struct _Elm_Atspi_Text_Attribute
18{
19 const char *name;
20 const char *value;
21};
22
23typedef struct _Elm_Atspi_Text_Attribute Elm_Atspi_Text_Attribute;
24
25struct _Elm_Atspi_Text_Range
26{
27 int start_offset;
28 int end_offset;
29 char *content;
30};
31
32typedef struct _Elm_Atspi_Text_Range Elm_Atspi_Text_Range;
33
34enum _Elm_Atspi_Text_Clip_Type
35{
36 ELM_ATSPI_TEXT_CLIP_NONE,
37 ELM_ATSPI_TEXT_CLIP_MIN,
38 ELM_ATSPI_TEXT_CLIP_MAX,
39 ELM_ATSPI_TEXT_CLIP_BOTH
40};
41
42typedef enum _Elm_Atspi_Text_Clip_Type Elm_Atspi_Text_Clip_Type;
43
44/**
45 * @brief Free Elm_Atspi_Text_Attribute structure
46 */
47EAPI void elm_atspi_text_text_attribute_free(Elm_Atspi_Text_Attribute *attr);
48
49typedef struct _Elm_Atspi_Text_Change_Info Elm_Atspi_Text_Change_Info;
50
51struct _Elm_Atspi_Text_Change_Info
52{
53 const char *content;
54 Eina_Bool inserted;
55 size_t pos;
56 size_t len;
57};
58
59#ifdef EFL_EO_API_SUPPORT 6#ifdef EFL_EO_API_SUPPORT
60#include "elm_interface_atspi_text.eo.h" 7#include "elm_interface_atspi_text.eo.h"
61#endif 8#endif
@@ -63,5 +10,10 @@ struct _Elm_Atspi_Text_Change_Info
63#include "elm_interface_atspi_text.eo.legacy.h" 10#include "elm_interface_atspi_text.eo.legacy.h"
64#endif 11#endif
65 12
13/**
14 * @brief Free Elm_Atspi_Text_Attribute structure
15 */
16EAPI void elm_atspi_text_text_attribute_free(Elm_Atspi_Text_Attribute *attr);
17
66#endif 18#endif
67#endif 19#endif