Data Structures | |
struct | Ewl_Spinner |
Inherits from Ewl_Container and adds an entry box that can only contain numerical values as well as buttons for manipulating that value. More... | |
Defines | |
#define | EWL_SPINNER(spinner) ((Ewl_Spinner *) spinner) |
Typecasts a pointer to an Ewl_Spinner pointer. | |
Typedefs | |
typedef Ewl_Spinner | Ewl_Spinner |
A combination of entry and increment/decrement buttons for adjusting numerical values. | |
Functions | |
Ewl_Widget * | ewl_spinner_new (void) |
Allocate a new spinner widget. | |
int | ewl_spinner_init (Ewl_Spinner *s) |
Initialize a spinner to default values and callbacks. | |
void | ewl_spinner_value_set (Ewl_Spinner *s, double value) |
Set the current value of a spinner widget. | |
double | ewl_spinner_value_get (Ewl_Spinner *s) |
Get the current value of a spinner widget. | |
void | ewl_spinner_digits_set (Ewl_Spinner *s, unsigned char digits) |
Set the number of digits displayed by a spinner. | |
double | ewl_spinner_min_val_get (Ewl_Spinner *s) |
Retrieves the minimum value for the spinner. | |
void | ewl_spinner_min_val_set (Ewl_Spinner *s, double val) |
Set the minimum value possible for a spinner. | |
double | ewl_spinner_max_val_get (Ewl_Spinner *s) |
Retrieves the maximum value for the spinner. | |
void | ewl_spinner_max_val_set (Ewl_Spinner *s, double val) |
Set the maximum value possible for a spinner. | |
void | ewl_spinner_step_set (Ewl_Spinner *s, double step) |
Returns no value. Set the increment between each click of the spinner. |
|
Set the number of digits displayed by a spinner.
|
|
Initialize a spinner to default values and callbacks.
|
|
Retrieves the maximum value for the spinner.
|
|
Set the maximum value possible for a spinner.
|
|
Retrieves the minimum value for the spinner.
|
|
Set the minimum value possible for a spinner.
|
|
Allocate a new spinner widget.
|
|
Returns no value. Set the increment between each click of the spinner.
Changes the increment that s changes by with each click of it's spinner buttons to step. |
|
Get the current value of a spinner widget.
|
|
Set the current value of a spinner widget.
|