Efl.Text.Cursor (interface)

Description

Cursor API

Since 1.20

Members

cursor (get)

The object's main cursor.
Efl_Text_Cursor_Cursor *efl_text_cursor_get(const Eo *obj, Efl_Text_Cursor_Cursor_Get_Type get_type);


cursor_char_delete

Deletes a single character from position pointed by given cursor.
void efl_text_cursor_char_delete(Eo *obj, Efl_Text_Cursor_Cursor *cur);


cursor_char_next

Advances to the next character
void efl_text_cursor_char_next(Eo *obj, Efl_Text_Cursor_Cursor *cur);


cursor_char_prev

Advances to the previous character
void efl_text_cursor_char_prev(Eo *obj, Efl_Text_Cursor_Cursor *cur);


cursor_compare

Compare two cursors
int efl_text_cursor_compare(Eo *obj, const Efl_Text_Cursor_Cursor *cur1, const Efl_Text_Cursor_Cursor *cur2);


cursor_content (get)

The content of the cursor (the character under the cursor)
Eina_Unicode efl_text_cursor_content_get(const Eo *obj, const Efl_Text_Cursor_Cursor *cur);


cursor_coord_set

Set cursor coordinates
void efl_text_cursor_coord_set(Eo *obj, Efl_Text_Cursor_Cursor *cur, int x, int y);


cursor_copy

Copy existing cursor
void efl_text_cursor_copy(Eo *obj, Efl_Text_Cursor_Cursor *dst, const Efl_Text_Cursor_Cursor *src);


cursor_equal

Check if two cursors are equal
Eina_Bool efl_text_cursor_equal(Eo *obj, const Efl_Text_Cursor_Cursor *cur1, const Efl_Text_Cursor_Cursor *cur2);


cursor_free

Free existing cursor
void efl_text_cursor_free(Eo *obj, Efl_Text_Cursor_Cursor *cur);


cursor_geometry (get)

Returns the geometry of two cursors ("split cursor"), if logical cursor is between LTR/RTL text, also considering paragraph direction. Upper cursor is shown for the text of the same direction as paragraph, lower cursor - for opposite.
Eina_Bool efl_text_cursor_geometry_get(const Eo *obj, const Efl_Text_Cursor_Cursor *cur, Efl_Text_Cursor_Cursor_Type ctype, int *cx, int *cy, int *cw, int *ch, int *cx2, int *cy2, int *cw2, int *ch2);


cursor_line_char_first

Advance to current line first character
void efl_text_cursor_line_char_first(Eo *obj, Efl_Text_Cursor_Cursor *cur);


cursor_line_char_last

Advance to current line last character
void efl_text_cursor_line_char_last(Eo *obj, Efl_Text_Cursor_Cursor *cur);


cursor_line_jump_by

Jump the cursor by the given number of lines
void efl_text_cursor_line_jump_by(Eo *obj, Efl_Text_Cursor_Cursor *cur, int by);


cursor_new

Create new cursor
Efl_Text_Cursor_Cursor *efl_text_cursor_new(Eo *obj);


cursor_paragraph_char_first

Advances to the first character in this paragraph
void efl_text_cursor_paragraph_char_first(Eo *obj, Efl_Text_Cursor_Cursor *cur);


cursor_paragraph_char_last

Advances to the last character in this paragraph
void efl_text_cursor_paragraph_char_last(Eo *obj, Efl_Text_Cursor_Cursor *cur);


cursor_paragraph_first

Advance to current paragraph first character
void efl_text_cursor_paragraph_first(Eo *obj, Efl_Text_Cursor_Cursor *cur);


cursor_paragraph_last

Advance to current paragraph last character
void efl_text_cursor_paragraph_last(Eo *obj, Efl_Text_Cursor_Cursor *cur);


cursor_paragraph_next

Advances to the start of the next text node
void efl_text_cursor_paragraph_next(Eo *obj, Efl_Text_Cursor_Cursor *cur);


cursor_paragraph_prev

Advances to the end of the previous text node
void efl_text_cursor_paragraph_prev(Eo *obj, Efl_Text_Cursor_Cursor *cur);


cursor_position (get, set)

Cursor position
int efl_text_cursor_position_get(const Eo *obj, Efl_Text_Cursor_Cursor *cur);
void efl_text_cursor_position_set(Eo *obj, Efl_Text_Cursor_Cursor *cur, int position);


cursor_text_insert

Adds text to the current cursor position and set the cursor to *after* the start of the text just added.
int efl_text_cursor_text_insert(Eo *obj, Efl_Text_Cursor_Cursor *cur, const char *text);


cursor_word_end

Advance to current word end
void efl_text_cursor_word_end(Eo *obj, Efl_Text_Cursor_Cursor *cur);


cursor_word_start

Advance to current word start
void efl_text_cursor_word_start(Eo *obj, Efl_Text_Cursor_Cursor *cur);


Events