1 #ifndef _GUISLICE_EX_XSPINNER_H_ 2 #define _GUISLICE_EX_XSPINNER_H_ 45 #if (GSLC_FEATURE_COMPOUND) 55 #define GSLC_TYPEX_SPINNER GSLC_TYPE_BASE_EXTEND + 15 58 #define XSPINNER_COMP_CNT 3 61 #define XSPINNER_STR_LEN 8 64 #define XSPINNER_CB_STATE_UPDATE 3 115 gslc_tsRect rElem, int16_t nMin, int16_t nMax, int16_t nVal, int16_t nIncr,
196 #endif // GLSC_COMPOUND 208 #endif // __cplusplus 209 #endif // _GUISLICE_EX_XSPINNER_H_ bool gslc_ElemXSpinnerClick(void *pvGui, void *pvElemRef, gslc_teTouch eTouch, int16_t nX, int16_t nY)
Handle a click event within the Spinner.
Definition: XSpinner.c:343
bool(* GSLC_CB_INPUT)(void *pvGui, void *pvElemRef, int16_t nStatus, void *pvData)
Callback function for element input ready.
Definition: GUIslice.h:511
int16_t nMax
Maximum control value.
Definition: XSpinner.h:74
int gslc_ElemXSpinnerGetCounter(gslc_tsGui *pGui, gslc_tsXSpinner *pSpinner)
Get the current counter associated with Spinner.
Definition: XSpinner.c:301
gslc_tsCollect sCollect
Collection management for sub-elements.
Definition: XSpinner.h:81
gslc_teRedrawType
Redraw types.
Definition: GUIslice.h:370
gslc_tsElemRef * pElemRef
Save our ElemRef for the callback.
Definition: XSpinner.h:78
Extended data for Spinner element.
Definition: XSpinner.h:70
int16_t nCounter
Current value.
Definition: XSpinner.h:76
#define XSPINNER_COMP_CNT
Definition: XSpinner.h:58
int16_t nIncr
Increment by value.
Definition: XSpinner.h:75
bool gslc_ElemXSpinnerSetChars(void *pvGui, gslc_tsElemRef *pElemRef, uint8_t cIncr, uint8_t cDecr)
Set Up and Down characters for the Spinner element.
Definition: XSpinner.c:232
gslc_tsElemRef * gslc_ElemXSpinnerCreate(gslc_tsGui *pGui, int16_t nElemId, int16_t nPage, gslc_tsXSpinner *pXData, gslc_tsRect rElem, int16_t nMin, int16_t nMax, int16_t nVal, int16_t nIncr, int8_t nFontId, int8_t nButtonSz, GSLC_CB_INPUT cbInput)
Create a Spinner Element.
Definition: XSpinner.c:84
Rectangular region. Defines X,Y corner coordinates plus dimensions.
Definition: GUIslice.h:519
int16_t nMin
Minimum control value.
Definition: XSpinner.h:73
Element collection struct.
Definition: GUIslice.h:656
Element reference structure.
Definition: GUIslice.h:578
bool gslc_ElemXSpinnerTouch(void *pvGui, void *pvElemRef, gslc_teTouch eTouch, int16_t nRelX, int16_t nRelY)
Handle touch (up,down,move) events to Spinner element.
Definition: XSpinner.c:409
bool gslc_ElemXSpinnerDraw(void *pvGui, void *pvElemRef, gslc_teRedrawType eRedraw)
Draw a Spinner element on the screen.
Definition: XSpinner.c:254
#define XSPINNER_STR_LEN
Definition: XSpinner.h:61
gslc_teTouch
Processed event from input raw events and actions.
Definition: GUIslice.h:305
void gslc_ElemXSpinnerSetCounter(gslc_tsGui *pGui, gslc_tsXSpinner *pSpinner, int16_t nCount)
Set the current counter associated with Spinner.
Definition: XSpinner.c:312
GUI structure.
Definition: GUIslice.h:716
Element Struct.
Definition: GUIslice.h:593
GSLC_CB_INPUT pfuncXInput
Callback func ptr for input ready.
Definition: XSpinner.h:77