GUIslice
0.16.0
Embedded GUI in C
|
Functions | |
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. More... | |
bool | gslc_ElemXSpinnerSetChars (void *pvGui, gslc_tsElemRef *pElemRef, uint8_t cIncr, uint8_t cDecr) |
Set Up and Down characters for the Spinner element. More... | |
bool | gslc_ElemXSpinnerDraw (void *pvGui, void *pvElemRef, gslc_teRedrawType eRedraw) |
Draw a Spinner element on the screen. More... | |
int | gslc_ElemXSpinnerGetCounter (gslc_tsGui *pGui, gslc_tsXSpinner *pSpinner) |
Get the current counter associated with Spinner. More... | |
void | gslc_ElemXSpinnerSetCounter (gslc_tsGui *pGui, gslc_tsXSpinner *pSpinner, int16_t nCount) |
Set the current counter associated with Spinner. More... | |
bool | gslc_ElemXSpinnerClick (void *pvGui, void *pvElemRef, gslc_teTouch eTouch, int16_t nX, int16_t nY) |
Handle a click event within the Spinner. More... | |
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. More... | |
Variables | |
const char GSLC_PMEM | ERRSTR_NULL [] |
const char GSLC_PMEM | ERRSTR_PXD_NULL [] |
static const int16_t | SPINNER_ID_BTN_INC |
static const int16_t | SPINNER_ID_BTN_DEC |
static const int16_t | SPINNER_ID_TXT |
bool gslc_ElemXSpinnerClick | ( | void * | pvGui, |
void * | pvElemRef, | ||
gslc_teTouch | eTouch, | ||
int16_t | nX, | ||
int16_t | nY | ||
) |
Handle a click event within the Spinner.
[in] | pvGui | Void ptr to GUI (typecast to gslc_tsGui*) |
[in] | pvElemRef | Void ptr to Element reference (typecast to gslc_tsElemRef*) |
[in] | eTouch | Touch event type |
[in] | nX | Touch X coord |
[in] | nY | Touch Y coord |
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.
[in] | pGui | Pointer to GUI |
[in] | nElemId | Element ID to assign (0..16383 or GSLC_ID_AUTO to autogen) |
[in] | nPage | Page ID to attach element to |
[in] | pXData | Ptr to extended element data structure |
[in] | rElem | Rectangle coordinates defining overall size |
[in] | nMin | Minimum value of Spinner |
[in] | nMax | Maximum value of Spinner |
[in] | nVal | Starting value of Spinner |
[in] | nIncr | Increment Spinner by this value |
[in] | nFontId | Font ID to use for drawing the element |
[in] | nButtonSz | Size of individual buttons |
[in] | cbInput | Callback for touch events |
bool gslc_ElemXSpinnerDraw | ( | void * | pvGui, |
void * | pvElemRef, | ||
gslc_teRedrawType | eRedraw | ||
) |
Draw a Spinner element on the screen.
[in] | pvGui | Void ptr to GUI (typecast to gslc_tsGui*) |
[in] | pvElemRef | Void ptr to Element reference (typecast to gslc_tsElemRef*) |
[in] | eRedraw | Redraw mode |
int gslc_ElemXSpinnerGetCounter | ( | gslc_tsGui * | pGui, |
gslc_tsXSpinner * | pSpinner | ||
) |
Get the current counter associated with Spinner.
[in] | pGui | Ptr to GUI |
[in] | pSpinner | Ptr to Element |
bool gslc_ElemXSpinnerSetChars | ( | void * | pvGui, |
gslc_tsElemRef * | pElemRef, | ||
uint8_t | cIncr, | ||
uint8_t | cDecr | ||
) |
Set Up and Down characters for the Spinner element.
[in] | pvGui | Void ptr to GUI (typecast to gslc_tsGui*) |
[in] | pElemRef | Ptr to ElementRef |
[in] | cIncr | Character to use to indicate incrementing the spinner |
[in] | cDecr | Character to use to indicate decrementing the spinner |
void gslc_ElemXSpinnerSetCounter | ( | gslc_tsGui * | pGui, |
gslc_tsXSpinner * | pSpinner, | ||
int16_t | nCount | ||
) |
Set the current counter associated with Spinner.
[in] | pGui | Pointer to GUI |
[in] | pSpinner | Ptr to Element |
[in] | nCount | New counter value |
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.
[in] | pvGui | Void ptr to GUI (typecast to gslc_tsGui*) |
[in] | pvElemRef | Void ptr to Element reference (typecast to gslc_tsElemRef*) |
[in] | eTouch | Touch event type |
[in] | nRelX | Touch X coord relative to element |
[in] | nRelY | Touch Y coord relative to element |
const char GSLC_PMEM ERRSTR_NULL[] |
const char GSLC_PMEM ERRSTR_PXD_NULL[] |
|
static |
|
static |
|
static |