GUIslice
0.16.0
Embedded GUI in C
|
Functions | |
gslc_tsElemRef * | gslc_ElemXTogglebtnCreate (gslc_tsGui *pGui, int16_t nElemId, int16_t nPage, gslc_tsXTogglebtn *pXData, gslc_tsRect rElem, gslc_tsColor colThumb, gslc_tsColor colOnState, gslc_tsColor colOffState, bool bCircular, bool bChecked, GSLC_CB_TOUCH cbTouch) |
Create a Togglebtn button Element. More... | |
bool | gslc_ElemXTogglebtnGetState (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef) |
Get a Togglebtn element's current state. More... | |
void | gslc_ElemXTogglebtnSetStateHelp (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, bool bOn) |
void | gslc_ElemXTogglebtnSetState (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, bool bOn) |
Set a Togglebtn element's current state. More... | |
void | gslc_ElemXTogglebtnToggleState (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef) |
Toggle a Togglebtn element's current state. More... | |
void | gslc_ElemXTogglebtnDrawCircularHelp (gslc_tsGui *pGui, gslc_tsElem *pElem, gslc_tsXTogglebtn *pTogglebtn) |
void | gslc_ElemXTogglebtnDrawRectangularHelp (gslc_tsGui *pGui, gslc_tsElem *pElem, gslc_tsXTogglebtn *pTogglebtn) |
bool | gslc_ElemXTogglebtnDraw (void *pvGui, void *pvElemRef, gslc_teRedrawType eRedraw) |
Draw a Togglebtn element on the screen. More... | |
bool | gslc_ElemXTogglebtnTouch (void *pvGui, void *pvElemRef, gslc_teTouch eTouch, int16_t nRelX, int16_t nRelY) |
Handle touch events to Togglebtn element. More... | |
gslc_tsElemRef * | gslc_ElemXTogglebtnFindSelected (gslc_tsGui *pGui, int16_t nGroupId) |
Find the togglebtn within a group that has been selected. More... | |
Variables | |
const char GSLC_PMEM | ERRSTR_NULL [] |
const char GSLC_PMEM | ERRSTR_PXD_NULL [] |
gslc_tsElemRef* gslc_ElemXTogglebtnCreate | ( | gslc_tsGui * | pGui, |
int16_t | nElemId, | ||
int16_t | nPage, | ||
gslc_tsXTogglebtn * | pXData, | ||
gslc_tsRect | rElem, | ||
gslc_tsColor | colThumb, | ||
gslc_tsColor | colOnState, | ||
gslc_tsColor | colOffState, | ||
bool | bCircular, | ||
bool | bChecked, | ||
GSLC_CB_TOUCH | cbTouch | ||
) |
Create a Togglebtn button 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 togglebtn size |
[in] | colThumb | Color of thumb |
[in] | colOnState | Color to indicate on position |
[in] | colOffState | Color to indicate off position |
[in] | bCircular | Style of the toggle button circular or rectangular |
[in] | bChecked | Default state |
[in] | cbTouch | Callback for touch events |
bool gslc_ElemXTogglebtnDraw | ( | void * | pvGui, |
void * | pvElemRef, | ||
gslc_teRedrawType | eRedraw | ||
) |
Draw a Togglebtn 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 |
void gslc_ElemXTogglebtnDrawCircularHelp | ( | gslc_tsGui * | pGui, |
gslc_tsElem * | pElem, | ||
gslc_tsXTogglebtn * | pTogglebtn | ||
) |
void gslc_ElemXTogglebtnDrawRectangularHelp | ( | gslc_tsGui * | pGui, |
gslc_tsElem * | pElem, | ||
gslc_tsXTogglebtn * | pTogglebtn | ||
) |
gslc_tsElemRef* gslc_ElemXTogglebtnFindSelected | ( | gslc_tsGui * | pGui, |
int16_t | nGroupId | ||
) |
Find the togglebtn within a group that has been selected.
[in] | pGui | Pointer to GUI |
[in] | nGroupId | Group ID to search |
bool gslc_ElemXTogglebtnGetState | ( | gslc_tsGui * | pGui, |
gslc_tsElemRef * | pElemRef | ||
) |
Get a Togglebtn element's current state.
[in] | pGui | Pointer to GUI |
[in] | pElemRef | Pointer to Element reference |
void gslc_ElemXTogglebtnSetState | ( | gslc_tsGui * | pGui, |
gslc_tsElemRef * | pElemRef, | ||
bool | bOn | ||
) |
Set a Togglebtn element's current state.
[in] | pGui | Pointer to GUI |
[in] | pElemRef | Pointer to Element reference |
[in] | bOn | New state |
void gslc_ElemXTogglebtnSetStateHelp | ( | gslc_tsGui * | pGui, |
gslc_tsElemRef * | pElemRef, | ||
bool | bOn | ||
) |
void gslc_ElemXTogglebtnToggleState | ( | gslc_tsGui * | pGui, |
gslc_tsElemRef * | pElemRef | ||
) |
Toggle a Togglebtn element's current state.
[in] | pGui | Pointer to GUI |
[in] | pElemRef | Pointer to Element reference |
bool gslc_ElemXTogglebtnTouch | ( | void * | pvGui, |
void * | pvElemRef, | ||
gslc_teTouch | eTouch, | ||
int16_t | nRelX, | ||
int16_t | nRelY | ||
) |
Handle touch events to Togglebtn 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[] |