lib/ewl_spinner.c File Reference
#include <Ecore_Str.h>
#include <math.h>
#include <langinfo.h>
#include "ewl_base.h"
#include "ewl_spinner.h"
#include "ewl_box.h"
#include "ewl_button.h"
#include "ewl_entry.h"
#include "ewl_private.h"
#include "ewl_macros.h"
#include "ewl_debug.h"

Functions | |
| void | ewl_spinner_cb_child_resize (Ewl_Container *c, Ewl_Widget *w __UNUSED__, int size __UNUSED__, Ewl_Orientation o __UNUSED__) |
| void | ewl_spinner_cb_child_show (Ewl_Container *c, Ewl_Widget *w __UNUSED__) |
| void | ewl_spinner_cb_configure (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_spinner_cb_decrease_value (Ewl_Widget *w __UNUSED__, void *ev_data, void *user_data) |
| void | ewl_spinner_cb_destroy (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_spinner_cb_focus_out (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_spinner_cb_increase_value (Ewl_Widget *w __UNUSED__, void *ev_data, void *user_data) |
| void | ewl_spinner_cb_key_down (Ewl_Widget *w, void *ev_data, void *user_data __UNUSED__) |
| void | ewl_spinner_cb_realize (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_spinner_cb_value_changed (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_spinner_cb_value_stop (Ewl_Widget *w __UNUSED__, void *ev_data __UNUSED__, void *user_data) |
| void | ewl_spinner_cb_wheel (Ewl_Widget *w, void *ev_data, void *user_data __UNUSED__) |
| unsigned char | ewl_spinner_digits_get (Ewl_Spinner *s) |
| This will retrieve the number of digits displayed by the spinner. | |
| void | ewl_spinner_digits_set (Ewl_Spinner *s, unsigned char digits) |
| Set the number of digits displayed by a spinner. | |
| int | ewl_spinner_init (Ewl_Spinner *s) |
| Initialize a spinner to default values and callbacks. | |
| Ewl_Widget * | ewl_spinner_new (void) |
| Allocate a new spinner widget. | |
Function Documentation
| void ewl_spinner_cb_child_resize | ( | Ewl_Container * | c, | |
| Ewl_Widget *w | __UNUSED__, | |||
| int size | __UNUSED__, | |||
| Ewl_Orientation o | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_SPINNER, and EWL_SPINNER_TYPE.
Referenced by ewl_spinner_init().
| void ewl_spinner_cb_child_show | ( | Ewl_Container * | c, | |
| Ewl_Widget *w | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_SPINNER, and EWL_SPINNER_TYPE.
Referenced by ewl_spinner_init().
| void ewl_spinner_cb_configure | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References CURRENT_H, CURRENT_W, CURRENT_X, CURRENT_Y, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, Ewl_Spinner::entry, EWL_OBJECT, ewl_object_place(), ewl_object_preferred_w_get(), EWL_SPINNER, EWL_WIDGET_TYPE, and Ewl_Spinner::vbox.
Referenced by ewl_spinner_init().
| void ewl_spinner_cb_decrease_value | ( | Ewl_Widget *w | __UNUSED__, | |
| void * | ev_data, | |||
| void * | user_data | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, Ewl_Spinner::direction, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_RANGE, ewl_range_decrease(), ewl_range_increase(), EWL_SPINNER, ewl_spinner_cb_focus_out(), EWL_SPINNER_TYPE, EWL_WIDGET, Ewl_Range::invert, Ewl_Spinner::last_value, Ewl_Spinner::start_time, and Ewl_Spinner::timer.
Referenced by ewl_spinner_cb_key_down(), and ewl_spinner_init().
| void ewl_spinner_cb_destroy | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_SPINNER, EWL_SPINNER_TYPE, and Ewl_Spinner::timer.
Referenced by ewl_spinner_init().
| void ewl_spinner_cb_focus_out | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, Ewl_Spinner::entry, EWL_RANGE, ewl_range_value_set(), EWL_SPINNER, EWL_TEXT, ewl_text_text_get(), EWL_WIDGET_TYPE, and FREE.
Referenced by ewl_spinner_cb_decrease_value(), ewl_spinner_cb_increase_value(), and ewl_spinner_init().
| void ewl_spinner_cb_increase_value | ( | Ewl_Widget *w | __UNUSED__, | |
| void * | ev_data, | |||
| void * | user_data | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, Ewl_Spinner::direction, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_RANGE, ewl_range_decrease(), ewl_range_increase(), EWL_SPINNER, ewl_spinner_cb_focus_out(), EWL_SPINNER_TYPE, EWL_WIDGET, Ewl_Range::invert, Ewl_Spinner::last_value, Ewl_Spinner::start_time, and Ewl_Spinner::timer.
Referenced by ewl_spinner_cb_key_down(), and ewl_spinner_init().
| void ewl_spinner_cb_key_down | ( | Ewl_Widget * | w, | |
| void * | ev_data, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, Ewl_Spinner::entry, EWL_ENTRY, ewl_entry_cursor_move_left(), ewl_entry_cursor_move_right(), ewl_entry_delete_left(), ewl_entry_delete_right(), ewl_entry_selection_clear(), EWL_SPINNER, ewl_spinner_cb_decrease_value(), ewl_spinner_cb_increase_value(), EWL_TEXT, ewl_text_cursor_position_get(), ewl_text_text_insert(), EWL_WIDGET_TYPE, and Ewl_Event_Key::keyname.
Referenced by ewl_spinner_init().
| void ewl_spinner_cb_realize | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, Ewl_Spinner::digits, DLEAVE_FUNCTION, DLEVEL_STABLE, Ewl_Spinner::entry, EWL_RANGE, EWL_SPINNER, EWL_SPINNER_TYPE, EWL_TEXT, ewl_text_minimum_size_string_set(), MAX, Ewl_Range::max_val, and Ewl_Range::min_val.
Referenced by ewl_spinner_init().
| void ewl_spinner_cb_value_changed | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_SPINNER, and EWL_WIDGET_TYPE.
Referenced by ewl_spinner_init().
| void ewl_spinner_cb_value_stop | ( | Ewl_Widget *w | __UNUSED__, | |
| void *ev_data | __UNUSED__, | |||
| void * | user_data | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, Ewl_Spinner::direction, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_SPINNER_TYPE, Ewl_Spinner::start_time, and Ewl_Spinner::timer.
Referenced by ewl_spinner_init().
| void ewl_spinner_cb_wheel | ( | Ewl_Widget * | w, | |
| void * | ev_data, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_RANGE, ewl_range_value_set(), EWL_WIDGET_TYPE, Ewl_Range::step, Ewl_Range::value, and Ewl_Event_Mouse_Wheel::z.
Referenced by ewl_spinner_init().