lib/ewl_entry.c File Reference
#include "ewl_base.h"
#include "ewl_entry.h"
#include "ewl_text_trigger.h"
#include <Ecore_Txt.h>
#include "ewl_macros.h"
#include "ewl_private.h"
#include "ewl_debug.h"

Functions | |
| void | ewl_entry_cb_configure (Ewl_Widget *w, void *ev __UNUSED__, void *data __UNUSED__) |
| void | ewl_entry_cb_disable (Ewl_Widget *w, void *ev __UNUSED__, void *data __UNUSED__) |
| void | ewl_entry_cb_dnd_data (Ewl_Widget *w, void *ev, void *data __UNUSED__) |
| void | ewl_entry_cb_dnd_position (Ewl_Widget *w, void *ev, void *data __UNUSED__) |
| void | ewl_entry_cb_enable (Ewl_Widget *w, void *ev __UNUSED__, void *data __UNUSED__) |
| void | ewl_entry_cb_focus_in (Ewl_Widget *w, void *ev __UNUSED__, void *data __UNUSED__) |
| void | ewl_entry_cb_focus_out (Ewl_Widget *w, void *ev __UNUSED__, void *data __UNUSED__) |
| void | ewl_entry_cb_key_down (Ewl_Widget *w, void *ev, void *data __UNUSED__) |
| void | ewl_entry_cb_mouse_down (Ewl_Widget *w, void *ev, void *data __UNUSED__) |
| void | ewl_entry_cb_mouse_move (Ewl_Widget *w, void *ev __UNUSED__, void *data __UNUSED__) |
| void | ewl_entry_cb_mouse_up (Ewl_Widget *w, void *ev __UNUSED__, void *data __UNUSED__) |
| int | ewl_entry_cursor_init (Ewl_Entry_Cursor *c, Ewl_Entry *parent) |
| Initializes an Ewl_Entry_Cursor to default values. | |
| void | ewl_entry_cursor_move_down (Ewl_Entry *e) |
| Moves the cursor down one line from its current position. | |
| void | ewl_entry_cursor_move_end (Ewl_Entry *e) |
| Moves the cursor to the last position. | |
| void | ewl_entry_cursor_move_left (Ewl_Entry *e) |
| Moves the cursor to the left of it's current position. | |
| void | ewl_entry_cursor_move_line_end (Ewl_Entry *e) |
| Moves the cursor to the end of the line. | |
| void | ewl_entry_cursor_move_line_start (Ewl_Entry *e) |
| Moves the cursor to the beginning of the line. | |
| void | ewl_entry_cursor_move_right (Ewl_Entry *e) |
| Moves the cursor to the right of its current position. | |
| void | ewl_entry_cursor_move_start (Ewl_Entry *e) |
| Moves the cursor to the first position. | |
| void | ewl_entry_cursor_move_up (Ewl_Entry *e) |
| Moves the cursor up one line from its current position. | |
| void | ewl_entry_cursor_move_word_next (Ewl_Entry *e) |
| Moves the cursor to the beginning of the next word. | |
| void | ewl_entry_cursor_move_word_previous (Ewl_Entry *e) |
| Moves the cursor to the beginning of the previous word. | |
| Ewl_Widget * | ewl_entry_cursor_new (Ewl_Entry *parent) |
| Creates and initializes a new Ewl_Entry_Cursor widget. | |
| unsigned int | ewl_entry_cursor_position_get (Ewl_Entry_Cursor *c) |
| Retrieves the current position of the Ewl_Entry_Cursor. | |
| void | ewl_entry_cursor_position_set (Ewl_Entry_Cursor *c, unsigned int pos) |
| Set the current cursor position. | |
| void | ewl_entry_delete_left (Ewl_Entry *e) |
| Deletes the character to the left of the cursor. | |
| void | ewl_entry_delete_right (Ewl_Entry *e) |
| Deletes the character to the right of the cursor. | |
| unsigned int | ewl_entry_editable_get (Ewl_Entry *e) |
| Retrieve if the entry is editable or not. | |
| void | ewl_entry_editable_set (Ewl_Entry *e, unsigned int editable) |
| Set if the entry is editable or not. | |
| int | ewl_entry_init (Ewl_Entry *e) |
| Initializes an Ewl_Entry widget to default values. | |
| unsigned int | ewl_entry_multiline_get (Ewl_Entry *e) |
| Retrieve if the entry is multiline or not. | |
| void | ewl_entry_multiline_set (Ewl_Entry *e, unsigned int multiline) |
| Set if the entry is multiline or not. | |
| Ewl_Widget * | ewl_entry_new (void) |
| Create and return a new Ewl_Entry widget. | |
| unsigned int | ewl_entry_selection_clear (Ewl_Entry *e) |
| Clear the current selection in the entry. | |
| Ewl_Widget * | ewl_password_new (void) |
| Allocate and initialize a new password widget. | |
Function Documentation
| void ewl_entry_cb_configure | ( | Ewl_Widget * | w, | |
| void *ev | __UNUSED__, | |||
| void *data | __UNUSED__ | |||
| ) |
References CURRENT_H, CURRENT_W, CURRENT_X, CURRENT_Y, Ewl_Entry::cursor, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, Ewl_Entry::editable, EWL_ENTRY, EWL_ENTRY_CURSOR, ewl_entry_cursor_position_get(), EWL_ENTRY_TYPE, EWL_OBJECT, ewl_object_geometry_request(), EWL_TEXT, ewl_text_index_geometry_map(), and ewl_text_offsets_set().
Referenced by ewl_entry_init().
| void ewl_entry_cb_disable | ( | Ewl_Widget * | w, | |
| void *ev | __UNUSED__, | |||
| void *data | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_ENTRY, ewl_entry_editable_set(), and EWL_ENTRY_TYPE.
Referenced by ewl_entry_init().
| void ewl_entry_cb_dnd_data | ( | Ewl_Widget * | w, | |
| void * | ev, | |||
| void *data | __UNUSED__ | |||
| ) |
References Ewl_Event_Dnd_Data_Received::data, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DISABLED, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_ENTRY, EWL_ENTRY_TYPE, EWL_TEXT, ewl_text_cursor_position_get(), ewl_text_text_insert(), IF_FREE, and Ewl_Event_Dnd_Data_Received::type.
Referenced by ewl_entry_init().
| void ewl_entry_cb_dnd_position | ( | Ewl_Widget * | w, | |
| void * | ev, | |||
| void *data | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DISABLED, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_ENTRY, EWL_ENTRY_TYPE, EWL_TEXT, ewl_text_coord_index_map(), ewl_text_cursor_position_set(), ewl_widget_focus_send(), Ewl_Event_Dnd_Position::x, and Ewl_Event_Dnd_Position::y.
Referenced by ewl_entry_init().
| void ewl_entry_cb_enable | ( | Ewl_Widget * | w, | |
| void *ev | __UNUSED__, | |||
| void *data | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_ENTRY, ewl_entry_editable_set(), and EWL_ENTRY_TYPE.
Referenced by ewl_entry_init().
| void ewl_entry_cb_focus_in | ( | Ewl_Widget * | w, | |
| void *ev | __UNUSED__, | |||
| void *data | __UNUSED__ | |||
| ) |
References Ewl_Entry::cursor, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, Ewl_Entry::editable, EWL_ENTRY, EWL_ENTRY_TYPE, ewl_widget_show(), and VISIBLE.
Referenced by ewl_entry_init().
| void ewl_entry_cb_focus_out | ( | Ewl_Widget * | w, | |
| void *ev | __UNUSED__, | |||
| void *data | __UNUSED__ | |||
| ) |
References Ewl_Entry::cursor, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, Ewl_Entry::editable, EWL_ENTRY, EWL_ENTRY_TYPE, ewl_widget_hide(), and VISIBLE.
Referenced by ewl_entry_init().
| void ewl_entry_cb_key_down | ( | Ewl_Widget * | w, | |
| void * | ev, | |||
| void *data | __UNUSED__ | |||
| ) |
References Ewl_Entry::cursor, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, ewl_callback_call(), EWL_CALLBACK_VALUE_CHANGED, EWL_ENTRY, EWL_ENTRY_CURSOR, ewl_entry_cursor_move_down(), ewl_entry_cursor_move_end(), ewl_entry_cursor_move_left(), ewl_entry_cursor_move_line_end(), ewl_entry_cursor_move_line_start(), ewl_entry_cursor_move_right(), ewl_entry_cursor_move_start(), ewl_entry_cursor_move_up(), ewl_entry_cursor_move_word_next(), ewl_entry_cursor_move_word_previous(), ewl_entry_cursor_position_get(), ewl_entry_delete_left(), ewl_entry_delete_right(), ewl_entry_selection_clear(), EWL_ENTRY_TYPE, EWL_KEY_MODIFIER_CTRL, EWL_KEY_MODIFIER_SHIFT, EWL_STATE_PERSISTENT, EWL_TEXT, ewl_text_text_insert(), EWL_TEXT_TRIGGER, ewl_text_trigger_base_set(), ewl_text_trigger_length_set(), EWL_WIDGET, ewl_widget_state_set(), Ewl_Event_Key::keyname, Ewl_Event_Key::modifiers, and Ewl_Entry::multiline.
Referenced by ewl_entry_editable_set(), and ewl_spinner_init().
| void ewl_entry_cb_mouse_down | ( | Ewl_Widget * | w, | |
| void * | ev, | |||
| void *data | __UNUSED__ | |||
| ) |
References Ewl_Entry::cursor, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, ewl_callback_append(), EWL_CALLBACK_MOUSE_MOVE, EWL_ENTRY, ewl_entry_cb_mouse_move(), EWL_ENTRY_CURSOR, ewl_entry_cursor_position_set(), EWL_ENTRY_TYPE, EWL_TEXT, ewl_text_coord_index_map(), ewl_widget_configure(), Ewl_Entry::in_select_mode, Ewl_Event_Mouse::x, and Ewl_Event_Mouse::y.
Referenced by ewl_entry_init().
| void ewl_entry_cb_mouse_move | ( | Ewl_Widget * | w, | |
| void *ev | __UNUSED__, | |||
| void *data | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_ENTRY, EWL_ENTRY_CURSOR, ewl_entry_cursor_position_set(), EWL_ENTRY_TYPE, EWL_TEXT, ewl_text_coord_index_map(), ewl_widget_configure(), Ewl_Event_Mouse::x, and Ewl_Event_Mouse::y.
Referenced by ewl_entry_cb_mouse_down(), and ewl_entry_cb_mouse_up().
| void ewl_entry_cb_mouse_up | ( | Ewl_Widget * | w, | |
| void *ev | __UNUSED__, | |||
| void *data | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, ewl_callback_del(), EWL_CALLBACK_MOUSE_MOVE, EWL_ENTRY, ewl_entry_cb_mouse_move(), EWL_ENTRY_TYPE, and Ewl_Entry::in_select_mode.
Referenced by ewl_entry_init().