Cursor API
annotation (get, set)
A new format forannotation
.
const char *efl_text_annotation_get(const Eo *obj, Efl_Text_Annotate_Annotation *annotation); Eina_Bool efl_text_annotation_set(Eo *obj, Efl_Text_Annotate_Annotation *annotation, const char *format);
Deletes given annotation.
Eina_Bool efl_text_annotation_del(Eo *obj, Efl_Text_Annotate_Annotation *annotation);
Inserts an annotation format in a specified range [start
,end
- 1].
Efl_Text_Annotate_Annotation *efl_text_annotation_insert(Eo *obj, Efl_Text_Cursor_Cursor *start, Efl_Text_Cursor_Cursor *end, const char *format);
Whether this is an "item" type of annotation. Should be used before querying the annotation's geometry, as only "item" annotations have a geometry.
Eina_Bool efl_text_annotation_is_item(Eo *obj, Efl_Text_Annotate_Annotation *annotation);
Sets given cursors to the start and end positions of the annotation.
void efl_text_annotation_positions_get(Eo *obj, const Efl_Text_Annotate_Annotation *annotation, Efl_Text_Cursor_Cursor *start, Efl_Text_Cursor_Cursor *end);
cursor_item_annotation (get)
Efl_Text_Annotate_Annotation *efl_text_cursor_item_annotation_get(const Eo *obj, Efl_Text_Cursor_Cursor *cur);
Inserts a object item at specified position.
Efl_Text_Annotate_Annotation *efl_text_cursor_item_insert(Eo *obj, Efl_Text_Cursor_Cursor *cur, const char *item, const char *format);
Queries a given object item for its geometry.
Eina_Bool efl_text_item_geometry_get(Eo *obj, const Efl_Text_Annotate_Annotation *an, int *x, int *y, int *w, int *h);
Returns an iterator of all the handles in a range.
Eina_Iterator *efl_text_range_annotations_get(const Eo *obj, const Efl_Text_Cursor_Cursor *start, const Efl_Text_Cursor_Cursor *end);