Etk
Main Page Object Hierarchy Data Structures Related Pages
Etk

etk_spinner.h File Reference


Detailed Description


Data Structures

struct  Etk_Spinner
 [Widget] A widget that allows the user to set the value of a setting More...

Defines

#define ETK_SPINNER_TYPE   (etk_spinner_type_get())
#define ETK_SPINNER(obj)   (ETK_OBJECT_CAST((obj), ETK_SPINNER_TYPE, Etk_Spinner))
#define ETK_IS_SPINNER(obj)   (ETK_OBJECT_CHECK_TYPE((obj), ETK_SPINNER_TYPE))

Functions

Etk_Widget * etk_spinner_new (double lower, double upper, double value, double step_increment, double page_increment)
 Creates a new spinner.
void etk_spinner_digits_set (Etk_Spinner *spinner, int digits)
 Sets the number of digits displayed by the spinner.
int etk_spinner_digits_get (Etk_Spinner *spinner)
 Gets the number of digits displayed by the spinner.
void etk_spinner_snap_to_ticks_set (Etk_Spinner *spinner, Etk_Bool snap_to_ticks)
 Sets whether or not the value of the spinner should be automatically corrected to the nearest step-increment.
Etk_Bool etk_spinner_snap_to_ticks_get (Etk_Spinner *spinner)
 Gets whether or not the value of the spinner are automatically corrected to the nearest step-increment.
void etk_spinner_wrap_set (Etk_Spinner *spinner, Etk_Bool wrap)
 Sets whether or not the spinner's value should wrap around to the opposite limit when the value exceed one of the spinner's bounds.
Etk_Bool etk_spinner_wrap_get (Etk_Spinner *spinner)
 Gets whether or not the spinner's value is wrapped around to the opposite limit when the value exceed one of the spinner's bounds.