Microchip® Advanced Software Framework

gfx_mono_spinctrl Struct Reference

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_spinctrlnext
 Pointer to next spinner in a spincollection. More...
 
struct gfx_mono_spinctrlprev
 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.

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().

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
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().

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().