summaryrefslogtreecommitdiff
path: root/src/bin/e_editable.h
blob: 11543edce078222f820d872d71a025512d989f9b (plain)
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
#ifdef E_TYPEDEFS
#else
#ifndef E_EDITABLE_H
#define E_EDITABLE_H

EAPI Evas_Object *e_editable_add                     (Evas *evas);
EAPI void         e_editable_theme_set               (Evas_Object *editable, const char *category, const char *group);
EAPI void         e_editable_password_set            (Evas_Object *editable, int password_mode);
EAPI int          e_editable_password_get            (Evas_Object *editable);

EAPI void         e_editable_text_set                (Evas_Object *editable, const char *text);
EAPI const char  *e_editable_text_get                (Evas_Object *editable);
EAPI char        *e_editable_text_range_get          (Evas_Object *editable, int start, int end);
EAPI int          e_editable_text_length_get         (Evas_Object *editable);
EAPI int          e_editable_insert                  (Evas_Object *editable, int pos, const char *text);
EAPI int          e_editable_delete                  (Evas_Object *editable, int start, int end);

EAPI void         e_editable_cursor_pos_set          (Evas_Object *editable, int pos);
EAPI int          e_editable_cursor_pos_get          (Evas_Object *editable);
EAPI void         e_editable_cursor_geometry_get     (Evas_Object *editable, Evas_Coord *cx, Evas_Coord *cy, Evas_Coord *cw, Evas_Coord *ch);
EAPI void         e_editable_cursor_move_to_start    (Evas_Object *editable);
EAPI void         e_editable_cursor_move_to_end      (Evas_Object *editable);
EAPI void         e_editable_cursor_move_left        (Evas_Object *editable);
EAPI void         e_editable_cursor_move_right       (Evas_Object *editable);
EAPI void         e_editable_cursor_show             (Evas_Object *editable);
EAPI void         e_editable_cursor_hide             (Evas_Object *editable);

EAPI void         e_editable_selection_pos_set       (Evas_Object *editable, int pos);
EAPI int          e_editable_selection_pos_get       (Evas_Object *editable);
EAPI void         e_editable_selection_move_to_start (Evas_Object *editable);
EAPI void         e_editable_selection_move_to_end   (Evas_Object *editable);
EAPI void         e_editable_selection_move_left     (Evas_Object *editable);
EAPI void         e_editable_selection_move_right    (Evas_Object *editable);
EAPI void         e_editable_select_all              (Evas_Object *editable);
EAPI void         e_editable_unselect_all            (Evas_Object *editable);
EAPI void         e_editable_select_word             (Evas_Object *editable, int index);
EAPI void         e_editable_selection_show          (Evas_Object *editable);
EAPI void         e_editable_selection_hide          (Evas_Object *editable);

EAPI int          e_editable_pos_get_from_coords     (Evas_Object *editable, Evas_Coord x, Evas_Coord y);
EAPI void         e_editable_char_size_get           (Evas_Object *editable, int *w, int *h);

EAPI void         e_editable_enable                  (Evas_Object *entry);
EAPI void         e_editable_disable                 (Evas_Object *entry);

#endif
#endif