102 lines
6.8 KiB
Cython
102 lines
6.8 KiB
Cython
|
from efl.evas cimport Eina_Bool, Eina_Rectangle, Evas_Object, Evas_Coord
|
||
|
from enums cimport Elm_Wrap_Type, Elm_Text_Format, Elm_Cnp_Mode, \
|
||
|
Elm_Scroller_Policy, Elm_Input_Panel_Layout, Elm_Input_Panel_Lang, \
|
||
|
Elm_Input_Panel_Lang, Elm_Input_Panel_Return_Key_Type
|
||
|
from libc.string cimport const_char
|
||
|
|
||
|
cdef extern from "Elementary.h":
|
||
|
|
||
|
#entry
|
||
|
ctypedef struct Elm_Entry_Anchor_Info:
|
||
|
char *name
|
||
|
int button
|
||
|
Evas_Coord x
|
||
|
Evas_Coord y
|
||
|
Evas_Coord w
|
||
|
Evas_Coord h
|
||
|
|
||
|
ctypedef struct Elm_Entry_Anchor_Hover_Info:
|
||
|
Elm_Entry_Anchor_Info *anchor_info
|
||
|
Evas_Object *hover
|
||
|
Eina_Rectangle hover_parent
|
||
|
Eina_Bool hover_left
|
||
|
Eina_Bool hover_right
|
||
|
Eina_Bool hover_top
|
||
|
Eina_Bool hover_bottom
|
||
|
|
||
|
# Entry (api:TODO cb:DONE test:TODO doc:TODO py3:DONE)
|
||
|
Evas_Object * elm_entry_add(Evas_Object *parent)
|
||
|
void elm_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line)
|
||
|
Eina_Bool elm_entry_single_line_get(Evas_Object *obj)
|
||
|
void elm_entry_password_set(Evas_Object *obj, Eina_Bool password)
|
||
|
Eina_Bool elm_entry_password_get(Evas_Object *obj)
|
||
|
void elm_entry_entry_set(Evas_Object *obj, const_char *entry)
|
||
|
const_char * elm_entry_entry_get(Evas_Object *obj)
|
||
|
void elm_entry_entry_append(Evas_Object *obj, const_char *text)
|
||
|
Eina_Bool elm_entry_is_empty(Evas_Object *obj)
|
||
|
const_char * elm_entry_selection_get(Evas_Object *obj)
|
||
|
Evas_Object * elm_entry_textblock_get(Evas_Object *obj)
|
||
|
void elm_entry_calc_force(Evas_Object *obj)
|
||
|
void elm_entry_entry_insert(Evas_Object *obj, const_char *entry)
|
||
|
void elm_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap)
|
||
|
Elm_Wrap_Type elm_entry_line_wrap_get(Evas_Object *obj)
|
||
|
void elm_entry_editable_set(Evas_Object *obj, Eina_Bool editable)
|
||
|
Eina_Bool elm_entry_editable_get(Evas_Object *obj)
|
||
|
void elm_entry_select_none(Evas_Object *obj)
|
||
|
void elm_entry_select_all(Evas_Object *obj)
|
||
|
Eina_Bool elm_entry_cursor_next(Evas_Object *obj)
|
||
|
Eina_Bool elm_entry_cursor_prev(Evas_Object *obj)
|
||
|
Eina_Bool elm_entry_cursor_up(Evas_Object *obj)
|
||
|
Eina_Bool elm_entry_cursor_down(Evas_Object *obj)
|
||
|
void elm_entry_cursor_begin_set(Evas_Object *obj)
|
||
|
void elm_entry_cursor_end_set(Evas_Object *obj)
|
||
|
void elm_entry_cursor_line_begin_set(Evas_Object *obj)
|
||
|
void elm_entry_cursor_line_end_set(Evas_Object *obj)
|
||
|
void elm_entry_cursor_selection_begin(Evas_Object *obj)
|
||
|
void elm_entry_cursor_selection_end(Evas_Object *obj)
|
||
|
Eina_Bool elm_entry_cursor_is_format_get(Evas_Object *obj)
|
||
|
Eina_Bool elm_entry_cursor_is_visible_format_get(Evas_Object *obj)
|
||
|
const_char * elm_entry_cursor_content_get(Evas_Object *obj)
|
||
|
Eina_Bool elm_entry_cursor_geometry_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h)
|
||
|
void elm_entry_cursor_pos_set(Evas_Object *obj, int pos)
|
||
|
int elm_entry_cursor_pos_get(Evas_Object *obj)
|
||
|
void elm_entry_selection_cut(Evas_Object *obj)
|
||
|
void elm_entry_selection_copy(Evas_Object *obj)
|
||
|
void elm_entry_selection_paste(Evas_Object *obj)
|
||
|
const_char * elm_entry_markup_to_utf8(const_char *s)
|
||
|
const_char * elm_entry_utf8_to_markup(const_char *s)
|
||
|
Eina_Bool elm_entry_file_set(Evas_Object *obj, const_char *file, Elm_Text_Format format)
|
||
|
void elm_entry_file_get(Evas_Object *obj, const_char **file, Elm_Text_Format *format)
|
||
|
void elm_entry_file_save(Evas_Object *obj)
|
||
|
void elm_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave)
|
||
|
Eina_Bool elm_entry_autosave_get(Evas_Object *obj)
|
||
|
void elm_entry_scrollable_set(Evas_Object *obj, Eina_Bool scrollable)
|
||
|
Eina_Bool elm_entry_scrollable_get(Evas_Object *obj)
|
||
|
void elm_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting)
|
||
|
void elm_entry_context_menu_clear(Evas_Object *obj)
|
||
|
void elm_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled)
|
||
|
Eina_Bool elm_entry_context_menu_disabled_get(Evas_Object *obj)
|
||
|
void elm_entry_input_panel_enabled_set(Evas_Object *obj, Eina_Bool enabled)
|
||
|
Eina_Bool elm_entry_input_panel_enabled_get(Evas_Object *obj)
|
||
|
void elm_entry_input_panel_layout_set(Evas_Object *obj, Elm_Input_Panel_Layout layout)
|
||
|
Elm_Input_Panel_Layout elm_entry_input_panel_layout_get(Evas_Object *obj)
|
||
|
void elm_entry_input_panel_show(Evas_Object *obj)
|
||
|
void elm_entry_input_panel_hide(Evas_Object *obj)
|
||
|
void elm_entry_input_panel_language_set(Evas_Object *obj, Elm_Input_Panel_Lang lang)
|
||
|
Elm_Input_Panel_Lang elm_entry_input_panel_language_get(Evas_Object *obj)
|
||
|
void elm_entry_input_panel_return_key_type_set(Evas_Object *obj, Elm_Input_Panel_Return_Key_Type return_key_type)
|
||
|
Elm_Input_Panel_Return_Key_Type elm_entry_input_panel_return_key_type_get(Evas_Object *obj)
|
||
|
void elm_entry_input_panel_return_key_disabled_set(Evas_Object *obj, Eina_Bool disabled)
|
||
|
Eina_Bool elm_entry_input_panel_return_key_disabled_get(Evas_Object *obj)
|
||
|
void elm_entry_input_panel_return_key_autoenabled_set(Evas_Object *obj, Eina_Bool disabled)
|
||
|
void elm_entry_imf_context_reset(Evas_Object *obj)
|
||
|
void elm_entry_prediction_allow_set(Evas_Object *obj, Eina_Bool allow)
|
||
|
Eina_Bool elm_entry_prediction_allow_get(Evas_Object *obj)
|
||
|
void elm_entry_cnp_mode_set(Evas_Object *obj, Elm_Cnp_Mode cnp_mode)
|
||
|
Elm_Cnp_Mode elm_entry_cnp_mode_get(Evas_Object *obj)
|
||
|
void elm_entry_anchor_hover_parent_set(Evas_Object *obj, Evas_Object *anchor_hover_parent)
|
||
|
Evas_Object * elm_entry_anchor_hover_parent_get(Evas_Object *obj)
|
||
|
void elm_entry_anchor_hover_style_set(Evas_Object *obj, const_char *anchor_hover_style)
|
||
|
const_char * elm_entry_anchor_hover_style_get(Evas_Object *obj)
|
||
|
void elm_entry_anchor_hover_end(Evas_Object *obj)
|