+enum Elm.Atspi_Text.Granularity
+{
+ char,
+ word,
+ sentence,
+ line,
+ paragraph
+}
+
+enum Elm.Atspi_Text.Clip_Type
+{
+ legacy: elm_atspi_text_clip;
+ none,
+ min,
+ max,
+ both
+}
+
+struct Elm.Atspi_Text.Attribute
+{
+ name: const(char)*;
+ value: const(char)*;
+}
+
+struct Elm.Atspi_Text.Range
+{
+ start_offset: int;
+ end_offset : int;
+ content: char *;
+}
+
+struct Elm.Atspi_Text.Change_Info
+{
+ content: const(char)*;
+ inserted: Eina.Bool;
+ pos: size_t;
+ len: size_t;
+}
+
interface Elm.Interface_Atspi_Text ()
{
legacy_prefix: null;
[[Gets string, start and end offset in text according to given initial offset and granulatity.]]
}
keys {
- granularity: Elm_Atspi_Text_Granularity;
+ granularity: Elm.Atspi_Text.Granularity;
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.]]
}
end_offset: int *;
}
values {
- attributes: own(list<own(Elm_Atspi_Text_Attribute *)> *);
+ attributes: own(list<own(Elm.Atspi_Text.Attribute *)> *);
}
}
@property default_attributes @protected {
get {
}
values {
- attributes: own(list<own(Elm_Atspi_Text_Attribute *)>*);
+ attributes: own(list<own(Elm.Atspi_Text.Attribute *)>*);
}
}
@property character_extents @protected {
keys {
screen_coords: bool;
rect: Eina_Rectangle;
- xclip: Elm_Atspi_Text_Clip_Type;
- yclip: Elm_Atspi_Text_Clip_Type;
+ xclip: Elm.Atspi_Text.Clip_Type;
+ yclip: Elm.Atspi_Text.Clip_Type;
}
values {
- ranges: own(list<own(Elm_Atspi_Text_Range *)> *);
+ ranges: own(list<own(Elm.Atspi_Text.Range *)> *);
}
}
@property range_extents @protected {
#ifdef EFL_BETA_API_SUPPORT
-enum _Elm_Atspi_Text_Granulatity
-{
- ELM_ATSPI_TEXT_GRANULARITY_CHAR,
- ELM_ATSPI_TEXT_GRANULARITY_WORD,
- ELM_ATSPI_TEXT_GRANULARITY_SENTENCE,
- ELM_ATSPI_TEXT_GRANULARITY_LINE,
- ELM_ATSPI_TEXT_GRANULARITY_PARAGRAPH
-};
-
-typedef enum _Elm_Atspi_Text_Granulatity Elm_Atspi_Text_Granularity;
-
-struct _Elm_Atspi_Text_Attribute
-{
- const char *name;
- const char *value;
-};
-
-typedef struct _Elm_Atspi_Text_Attribute Elm_Atspi_Text_Attribute;
-
-struct _Elm_Atspi_Text_Range
-{
- int start_offset;
- int end_offset;
- char *content;
-};
-
-typedef struct _Elm_Atspi_Text_Range Elm_Atspi_Text_Range;
-
-enum _Elm_Atspi_Text_Clip_Type
-{
- ELM_ATSPI_TEXT_CLIP_NONE,
- ELM_ATSPI_TEXT_CLIP_MIN,
- ELM_ATSPI_TEXT_CLIP_MAX,
- ELM_ATSPI_TEXT_CLIP_BOTH
-};
-
-typedef enum _Elm_Atspi_Text_Clip_Type Elm_Atspi_Text_Clip_Type;
-
-/**
- * @brief Free Elm_Atspi_Text_Attribute structure
- */
-EAPI void elm_atspi_text_text_attribute_free(Elm_Atspi_Text_Attribute *attr);
-
-typedef struct _Elm_Atspi_Text_Change_Info Elm_Atspi_Text_Change_Info;
-
-struct _Elm_Atspi_Text_Change_Info
-{
- const char *content;
- Eina_Bool inserted;
- size_t pos;
- size_t len;
-};
-
#ifdef EFL_EO_API_SUPPORT
#include "elm_interface_atspi_text.eo.h"
#endif
#include "elm_interface_atspi_text.eo.legacy.h"
#endif
+/**
+ * @brief Free Elm_Atspi_Text_Attribute structure
+ */
+EAPI void elm_atspi_text_text_attribute_free(Elm_Atspi_Text_Attribute *attr);
+
#endif
#endif