Ewl_Spinner: A Numerical Value Entry
Detailed Description
Provides a field for entering numerical values, along with buttons to increment and decrement the value.
- Remarks:
- Inherits from Ewl_Range.
Tutorial
Data Structures | |
struct | Ewl_Spinner |
Inherits from Ewl_Range and extends to provide a spinner widget. More... | |
Defines | |
#define | EWL_SPINNER(spinner) ((Ewl_Spinner *) spinner) |
#define | EWL_SPINNER_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_SPINNER_TYPE)) |
#define | EWL_SPINNER_TYPE "spinner" |
Typedefs | |
typedef Ewl_Spinner | Ewl_Spinner |
Functions | |
void | ewl_spinner_cb_child_resize (Ewl_Container *c, Ewl_Widget *w, int size, Ewl_Orientation o) |
void | ewl_spinner_cb_child_show (Ewl_Container *c, Ewl_Widget *w) |
void | ewl_spinner_cb_configure (Ewl_Widget *widget, void *ev_data, void *user_data) |
void | ewl_spinner_cb_decrease_value (Ewl_Widget *widget, void *ev_data, void *user_data) |
void | ewl_spinner_cb_destroy (Ewl_Widget *w, void *ev_data, void *user_data) |
void | ewl_spinner_cb_focus_out (Ewl_Widget *w, void *ev_data, void *user_data) |
void | ewl_spinner_cb_increase_value (Ewl_Widget *widget, void *ev_data, void *user_data) |
void | ewl_spinner_cb_key_down (Ewl_Widget *widget, void *ev_data, void *user_data) |
void | ewl_spinner_cb_realize (Ewl_Widget *widget, void *ev_data, void *user_data) |
void | ewl_spinner_cb_value_changed (Ewl_Widget *widget, void *ev_data, void *user_data) |
void | ewl_spinner_cb_value_stop (Ewl_Widget *w, void *ev_data, void *user_data) |
void | ewl_spinner_cb_wheel (Ewl_Widget *w, void *ev_data, void *user_data) |
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. |
Define Documentation
#define EWL_SPINNER | ( | spinner | ) | ((Ewl_Spinner *) spinner) |
Typecasts a pointer to an Ewl_Spinner pointer.
#define EWL_SPINNER_IS | ( | w | ) | (ewl_widget_type_is(EWL_WIDGET(w), EWL_SPINNER_TYPE)) |
Returns TRUE if the widget is an Ewl_Spinner, FALSE otherwise
#define EWL_SPINNER_TYPE "spinner" |
The type name for the Ewl_Spinner widget
Typedef Documentation
typedef struct Ewl_Spinner Ewl_Spinner |
A combination of entry and increment/decrement buttons for adjusting numerical values.
Function Documentation
void ewl_spinner_cb_child_resize | ( | Ewl_Container * | c, | |
Ewl_Widget * | w, | |||
int | size, | |||
Ewl_Orientation | o | |||
) |
void ewl_spinner_cb_child_show | ( | Ewl_Container * | c, | |
Ewl_Widget * | w | |||
) |
void ewl_spinner_cb_configure | ( | Ewl_Widget * | widget, | |
void * | ev_data, | |||
void * | user_data | |||
) |
void ewl_spinner_cb_decrease_value | ( | Ewl_Widget * | widget, | |
void * | ev_data, | |||
void * | user_data | |||
) |
void ewl_spinner_cb_destroy | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
void ewl_spinner_cb_focus_out | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
void ewl_spinner_cb_increase_value | ( | Ewl_Widget * | widget, | |
void * | ev_data, | |||
void * | user_data | |||
) |
void ewl_spinner_cb_key_down | ( | Ewl_Widget * | widget, | |
void * | ev_data, | |||
void * | user_data | |||
) |
void ewl_spinner_cb_realize | ( | Ewl_Widget * | widget, | |
void * | ev_data, | |||
void * | user_data | |||
) |
void ewl_spinner_cb_value_changed | ( | Ewl_Widget * | widget, | |
void * | ev_data, | |||
void * | user_data | |||
) |
void ewl_spinner_cb_value_stop | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
void ewl_spinner_cb_wheel | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
unsigned char ewl_spinner_digits_get | ( | Ewl_Spinner * | s | ) |
This will retrieve the number of digits displayed by the spinner.
- Parameters:
-
s,: The spinnner to get the number of digits displayed
- Returns:
- Returns 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.
- Parameters:
-
s,: the widget to change the number of digits displayed digits,: the number of digits to display for the spinner s
- Returns:
- Returns no value.
int ewl_spinner_init | ( | Ewl_Spinner * | s | ) |
Initialize a spinner to default values and callbacks.
- Parameters:
-
s,: the spinner to initialize
- Returns:
- Returns TRUE on success or FALSE on failure
Ewl_Widget* ewl_spinner_new | ( | void | ) |
Allocate a new spinner widget.
- Returns:
- Returns a new spinner widget on success, NULL on failure.