Go to the source code of this file.
|
gslc_tsElemRef * | gslc_ElemXTemplateCreate (gslc_tsGui *pGui, int16_t nElemId, int16_t nPage, gslc_tsXTemplate *pXData, gslc_tsRect rElem, char *pStrBuf, uint8_t nStrBufMax, int16_t nFontId) |
| Create an Extended Text Field Element. More...
|
|
bool | gslc_ElemXTemplateDraw (void *pvGui, void *pvElemRef, gslc_teRedrawType eRedraw) |
| Draw the template element on the screen. More...
|
|
bool | gslc_ElemXTemplateTouch (void *pvGui, void *pvElemRef, gslc_teTouch eTouch, int16_t nRelX, int16_t nRelY) |
| Handle touch events to template element. More...
|
|
#define GSLC_TYPEX_TEMPLATE |
Create an Extended Text Field 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] | pStrBuf | Ptr to string buffer |
[in] | nStrBufMax | Maximum buffer alength allocated to pStrBuf |
[in] | nFontId | ID of font to use for text output |
- Returns
- Pointer to Element reference or NULL if failure
bool gslc_ElemXTemplateDraw |
( |
void * |
pvGui, |
|
|
void * |
pvElemRef, |
|
|
gslc_teRedrawType |
eRedraw |
|
) |
| |
Draw the template 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
bool gslc_ElemXTemplateTouch |
( |
void * |
pvGui, |
|
|
void * |
pvElemRef, |
|
|
gslc_teTouch |
eTouch, |
|
|
int16_t |
nRelX, |
|
|
int16_t |
nRelY |
|
) |
| |
Handle touch events to template 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