Spin control struct.
#include <gfx_mono_spinctrl.h>
Data Fields | |
union { | |
int16_t integer_data | |
Spinner integer data. More... | |
struct gfx_mono_spinctrl_string strings | |
Spinner strings and index. More... | |
}; | |
Spinner data, depends on spinner datatype. More... | |
gfx_mono_spinctrl_type_t | datatype |
Type of data to spin. More... | |
bool | in_focus |
Boolean to tell if spinner is in focus or not. More... | |
uint16_t | last_saved_value |
Variable to store the last selected spinner value. More... | |
int16_t | lower_limit |
Lower limit for spinning, must be positive and fit in uin8_t for spinner type SPINTYPE_STRING. More... | |
struct gfx_mono_spinctrl * | next |
Pointer to next spinner in a spincollection. More... | |
struct gfx_mono_spinctrl * | prev |
Pointer to previous spinner in a spincollection. More... | |
PROGMEM_STRING_T | title |
Spinner title. More... | |
int16_t | upper_limit |
Upper limit for spinning, must be positive and fit in uin8_t for spinner type SPINTYPE_STRING. More... | |
gfx_coord_t | y |
Y coordinate for placement of spinner on screen. More... | |
union { ... } |
Spinner data, depends on spinner datatype.
gfx_mono_spinctrl_type_t gfx_mono_spinctrl::datatype |
Type of data to spin.
Referenced by gfx_mono_spinctrl_draw(), gfx_mono_spinctrl_init(), gfx_mono_spinctrl_process_key(), gfx_mono_spinctrl_spincollection_process_key(), gfx_mono_spinctrl_step_down(), and gfx_mono_spinctrl_step_up().
bool gfx_mono_spinctrl::in_focus |
Boolean to tell if spinner is in focus or not.
Referenced by gfx_mono_spinctrl_draw(), gfx_mono_spinctrl_init(), and gfx_mono_spinctrl_process_key().
int16_t gfx_mono_spinctrl::integer_data |
Spinner integer data.
Referenced by gfx_mono_spinctrl_draw(), gfx_mono_spinctrl_init(), gfx_mono_spinctrl_process_key(), gfx_mono_spinctrl_spincollection_process_key(), gfx_mono_spinctrl_step_down(), and gfx_mono_spinctrl_step_up().
uint16_t gfx_mono_spinctrl::last_saved_value |
Variable to store the last selected spinner value.
Referenced by gfx_mono_spinctrl_init(), and gfx_mono_spinctrl_process_key().
int16_t gfx_mono_spinctrl::lower_limit |
Lower limit for spinning, must be positive and fit in uin8_t for spinner type SPINTYPE_STRING.
Referenced by gfx_mono_spinctrl_init(), gfx_mono_spinctrl_step_down(), and gfx_mono_spinctrl_step_up().
struct gfx_mono_spinctrl* gfx_mono_spinctrl::next |
Pointer to next spinner in a spincollection.
Referenced by gfx_mono_spinctrl_spincollection_add_spinner(), gfx_mono_spinctrl_spincollection_process_key(), and gfx_mono_spinctrl_spincollection_show().
struct gfx_mono_spinctrl* gfx_mono_spinctrl::prev |
Pointer to previous spinner in a spincollection.
Referenced by gfx_mono_spinctrl_spincollection_add_spinner(), and gfx_mono_spinctrl_spincollection_process_key().
struct gfx_mono_spinctrl_string gfx_mono_spinctrl::strings |
Spinner strings and index.
Referenced by gfx_mono_spinctrl_draw(), gfx_mono_spinctrl_init(), gfx_mono_spinctrl_process_key(), gfx_mono_spinctrl_spincollection_process_key(), gfx_mono_spinctrl_step_down(), and gfx_mono_spinctrl_step_up().
PROGMEM_STRING_T gfx_mono_spinctrl::title |
Spinner title.
Referenced by gfx_mono_spinctrl_draw(), and gfx_mono_spinctrl_init().
int16_t gfx_mono_spinctrl::upper_limit |
Upper limit for spinning, must be positive and fit in uin8_t for spinner type SPINTYPE_STRING.
Referenced by gfx_mono_spinctrl_init(), gfx_mono_spinctrl_step_down(), and gfx_mono_spinctrl_step_up().
gfx_coord_t gfx_mono_spinctrl::y |
Y coordinate for placement of spinner on screen.
Referenced by gfx_mono_draw_char_hugemem(), gfx_mono_draw_char_progmem(), gfx_mono_spinctrl_draw(), gfx_mono_spinctrl_draw_indicator(), gfx_mono_spinctrl_draw_spin_indicator(), gfx_mono_spinctrl_init(), and gfx_mono_spinctrl_spincollection_add_spinner().