|
GUIslice
0.16.0
Embedded GUI in C
|

Functions | |
| gslc_tsElemRef * | gslc_ElemXCheckboxCreate (gslc_tsGui *pGui, int16_t nElemId, int16_t nPage, gslc_tsXCheckbox *pXData, gslc_tsRect rElem, bool bRadio, gslc_teXCheckboxStyle nStyle, gslc_tsColor colCheck, bool bChecked) |
| Create a Checkbox or Radio button Element. More... | |
| bool | gslc_ElemXCheckboxGetState (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef) |
| Get a Checkbox element's current state. More... | |
| gslc_tsElemRef * | gslc_ElemXCheckboxFindChecked (gslc_tsGui *pGui, int16_t nGroupId) |
| Find the checkbox within a group that has been checked. More... | |
| void | gslc_ElemXCheckboxSetStateFunc (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, GSLC_CB_XCHECKBOX pfuncCb) |
| Assign the state callback function for a checkbox/radio button. More... | |
| void | gslc_ElemXCheckboxSetStateHelp (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, bool bChecked, bool bDoCb) |
| void | gslc_ElemXCheckboxSetState (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, bool bChecked) |
| Set a Checkbox element's current state. More... | |
| void | gslc_ElemXCheckboxToggleState (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef) |
| Toggle a Checkbox element's current state. More... | |
| bool | gslc_ElemXCheckboxDraw (void *pvGui, void *pvElemRef, gslc_teRedrawType eRedraw) |
| Draw a Checkbox element on the screen. More... | |
| bool | gslc_ElemXCheckboxTouch (void *pvGui, void *pvElemRef, gslc_teTouch eTouch, int16_t nRelX, int16_t nRelY) |
| Handle touch events to Checkbox element. More... | |
Variables | |
| const char GSLC_PMEM | ERRSTR_NULL [] |
| const char GSLC_PMEM | ERRSTR_PXD_NULL [] |
| gslc_tsElemRef* gslc_ElemXCheckboxCreate | ( | gslc_tsGui * | pGui, |
| int16_t | nElemId, | ||
| int16_t | nPage, | ||
| gslc_tsXCheckbox * | pXData, | ||
| gslc_tsRect | rElem, | ||
| bool | bRadio, | ||
| gslc_teXCheckboxStyle | nStyle, | ||
| gslc_tsColor | colCheck, | ||
| bool | bChecked | ||
| ) |
Create a Checkbox or Radio 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 checkbox size |
| [in] | bRadio | Radio-button functionality if true |
| [in] | nStyle | Drawing style for checkbox / radio button |
| [in] | colCheck | Color for inner fill when checked |
| [in] | bChecked | Default state |
| bool gslc_ElemXCheckboxDraw | ( | void * | pvGui, |
| void * | pvElemRef, | ||
| gslc_teRedrawType | eRedraw | ||
| ) |
Draw a Checkbox 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 |
| gslc_tsElemRef* gslc_ElemXCheckboxFindChecked | ( | gslc_tsGui * | pGui, |
| int16_t | nGroupId | ||
| ) |
Find the checkbox within a group that has been checked.
| [in] | pGui | Pointer to GUI |
| [in] | nGroupId | Group ID to search |
| bool gslc_ElemXCheckboxGetState | ( | gslc_tsGui * | pGui, |
| gslc_tsElemRef * | pElemRef | ||
| ) |
Get a Checkbox element's current state.
| [in] | pGui | Pointer to GUI |
| [in] | pElemRef | Pointer to Element reference |
| void gslc_ElemXCheckboxSetState | ( | gslc_tsGui * | pGui, |
| gslc_tsElemRef * | pElemRef, | ||
| bool | bChecked | ||
| ) |
Set a Checkbox element's current state.
| [in] | pGui | Pointer to GUI |
| [in] | pElemRef | Pointer to Element reference |
| [in] | bChecked | New state |
| void gslc_ElemXCheckboxSetStateFunc | ( | gslc_tsGui * | pGui, |
| gslc_tsElemRef * | pElemRef, | ||
| GSLC_CB_XCHECKBOX | pfuncCb | ||
| ) |
Assign the state callback function for a checkbox/radio button.
| [in] | pGui | Pointer to GUI |
| [in] | pElemRef | Pointer to Element reference |
| [in] | pfuncCb | Function pointer to callback routine (or NULL for none) |
| void gslc_ElemXCheckboxSetStateHelp | ( | gslc_tsGui * | pGui, |
| gslc_tsElemRef * | pElemRef, | ||
| bool | bChecked, | ||
| bool | bDoCb | ||
| ) |
| void gslc_ElemXCheckboxToggleState | ( | gslc_tsGui * | pGui, |
| gslc_tsElemRef * | pElemRef | ||
| ) |
Toggle a Checkbox element's current state.
| [in] | pGui | Pointer to GUI |
| [in] | pElemRef | Pointer to Element reference |
| bool gslc_ElemXCheckboxTouch | ( | void * | pvGui, |
| void * | pvElemRef, | ||
| gslc_teTouch | eTouch, | ||
| int16_t | nRelX, | ||
| int16_t | nRelY | ||
| ) |
Handle touch events to Checkbox 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 ERRSTR_NULL |
| const char GSLC_PMEM ERRSTR_PXD_NULL[] |