GUIslice
0.16.0
Embedded GUI in C
|
Functions | |
gslc_tsElemRef * | gslc_ElemXSelNumCreate (gslc_tsGui *pGui, int16_t nElemId, int16_t nPage, gslc_tsXSelNum *pXData, gslc_tsRect rElem, int8_t nFontId) |
Create a SelNum Element. More... | |
bool | gslc_ElemXSelNumDraw (void *pvGui, void *pvElemRef, gslc_teRedrawType eRedraw) |
Draw a SelNum element on the screen. More... | |
int | gslc_ElemXSelNumGetCounter (gslc_tsGui *pGui, gslc_tsXSelNum *pSelNum) |
Get the current counter associated with SelNum. More... | |
void | gslc_ElemXSelNumSetCounter (gslc_tsGui *pGui, gslc_tsXSelNum *pSelNum, int16_t nCount) |
Set the current counter associated with SelNum. More... | |
bool | gslc_ElemXSelNumClick (void *pvGui, void *pvElemRef, gslc_teTouch eTouch, int16_t nX, int16_t nY) |
Handle a click event within the SelNum. More... | |
bool | gslc_ElemXSelNumTouch (void *pvGui, void *pvElemRef, gslc_teTouch eTouch, int16_t nRelX, int16_t nRelY) |
Handle touch (up,down,move) events to SelNum element. More... | |
Variables | |
const char GSLC_PMEM | ERRSTR_NULL [] |
const char GSLC_PMEM | ERRSTR_PXD_NULL [] |
static const int16_t | SELNUM_ID_BTN_INC |
static const int16_t | SELNUM_ID_BTN_DEC |
static const int16_t | SELNUM_ID_TXT |
bool gslc_ElemXSelNumClick | ( | void * | pvGui, |
void * | pvElemRef, | ||
gslc_teTouch | eTouch, | ||
int16_t | nX, | ||
int16_t | nY | ||
) |
Handle a click event within the SelNum.
[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_ElemXSelNumCreate | ( | gslc_tsGui * | pGui, |
int16_t | nElemId, | ||
int16_t | nPage, | ||
gslc_tsXSelNum * | pXData, | ||
gslc_tsRect | rElem, | ||
int8_t | nFontId | ||
) |
Create a SelNum 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 element size |
[in] | nFontId | Font ID to use for drawing the element |
bool gslc_ElemXSelNumDraw | ( | void * | pvGui, |
void * | pvElemRef, | ||
gslc_teRedrawType | eRedraw | ||
) |
Draw a SelNum 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_ElemXSelNumGetCounter | ( | gslc_tsGui * | pGui, |
gslc_tsXSelNum * | pSelNum | ||
) |
Get the current counter associated with SelNum.
[in] | pGui | Ptr to GUI |
[in] | pSelNum | Ptr to Element |
void gslc_ElemXSelNumSetCounter | ( | gslc_tsGui * | pGui, |
gslc_tsXSelNum * | pSelNum, | ||
int16_t | nCount | ||
) |
Set the current counter associated with SelNum.
[in] | pGui | Pointer to GUI |
[in] | pSelNum | Ptr to Element |
[in] | nCount | New counter value |
bool gslc_ElemXSelNumTouch | ( | void * | pvGui, |
void * | pvElemRef, | ||
gslc_teTouch | eTouch, | ||
int16_t | nRelX, | ||
int16_t | nRelY | ||
) |
Handle touch (up,down,move) events to SelNum 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 |