Go to the source code of this file.
|
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...
|
|
#define GSLC_TYPEX_SELNUM |
bool gslc_ElemXSelNumClick |
( |
void * |
pvGui, |
|
|
void * |
pvElemRef, |
|
|
gslc_teTouch |
eTouch, |
|
|
int16_t |
nX, |
|
|
int16_t |
nY |
|
) |
| |
Handle a click event within the SelNum.
- This is called internally by the SelNum touch handler
- Parameters
-
[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 |
- Returns
- none
Create a SelNum Element.
- Parameters
-
[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 |
- Returns
- Pointer to Element or NULL if failure
bool gslc_ElemXSelNumDraw |
( |
void * |
pvGui, |
|
|
void * |
pvElemRef, |
|
|
gslc_teRedrawType |
eRedraw |
|
) |
| |
Draw a SelNum element on the screen.
- Parameters
-
[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 |
- Returns
- true if success, false otherwise
Get the current counter associated with SelNum.
- Parameters
-
[in] | pGui | Ptr to GUI |
[in] | pSelNum | Ptr to Element |
- Returns
- Current counter value
Set the current counter associated with SelNum.
- Parameters
-
[in] | pGui | Pointer to GUI |
[in] | pSelNum | Ptr to Element |
[in] | nCount | New counter value |
- Returns
- none
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.
- Parameters
-
[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 |
- Returns
- true if success, false otherwise