|
GUIslice
0.16.0
Embedded GUI in C
|

Functions | |
| gslc_tsElemRef * | gslc_ElemXSliderCreate (gslc_tsGui *pGui, int16_t nElemId, int16_t nPage, gslc_tsXSlider *pXData, gslc_tsRect rElem, int16_t nPosMin, int16_t nPosMax, int16_t nPos, uint16_t nThumbSz, bool bVert) |
| Create a Slider Element. More... | |
| void | gslc_ElemXSliderSetStyle (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, bool bTrim, gslc_tsColor colTrim, uint16_t nTickDiv, int16_t nTickLen, gslc_tsColor colTick) |
| Set a Slider element's current position. More... | |
| void | gslc_ElemXSliderSetSnapEn (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, bool bSnapEn) |
| Enable touch to snap to the nearest tick mark. More... | |
| int | gslc_ElemXSliderGetPos (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef) |
| Get a Slider element's current position. More... | |
| void | gslc_ElemXSliderSetPos (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, int16_t nPos) |
| Set a Slider element's current position. More... | |
| void | gslc_ElemXSliderSetPosFunc (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, GSLC_CB_XSLIDER_POS funcCb) |
| Assign the position callback function for a slider. More... | |
| bool | gslc_ElemXSliderDraw (void *pvGui, void *pvElemRef, gslc_teRedrawType eRedraw) |
| Draw a Slider element on the screen. More... | |
| bool | gslc_ElemXSliderTouch (void *pvGui, void *pvElemRef, gslc_teTouch eTouch, int16_t nRelX, int16_t nRelY) |
| Handle touch events to Slider element. More... | |
Variables | |
| const char GSLC_PMEM | ERRSTR_NULL [] |
| const char GSLC_PMEM | ERRSTR_PXD_NULL [] |
| gslc_tsElemRef* gslc_ElemXSliderCreate | ( | gslc_tsGui * | pGui, |
| int16_t | nElemId, | ||
| int16_t | nPage, | ||
| gslc_tsXSlider * | pXData, | ||
| gslc_tsRect | rElem, | ||
| int16_t | nPosMin, | ||
| int16_t | nPosMax, | ||
| int16_t | nPos, | ||
| uint16_t | nThumbSz, | ||
| bool | bVert | ||
| ) |
Create a Slider 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] | nPosMin | Minimum position value |
| [in] | nPosMax | Maximum position value |
| [in] | nPos | Starting position value |
| [in] | nThumbSz | Size of the thumb control |
| [in] | bVert | Orientation (true for vertical) |
| bool gslc_ElemXSliderDraw | ( | void * | pvGui, |
| void * | pvElemRef, | ||
| gslc_teRedrawType | eRedraw | ||
| ) |
Draw a Slider 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_ElemXSliderGetPos | ( | gslc_tsGui * | pGui, |
| gslc_tsElemRef * | pElemRef | ||
| ) |
Get a Slider element's current position.
| [in] | pGui | Pointer to GUI |
| [in] | pElemRef | Pointer to Element reference |
| void gslc_ElemXSliderSetPos | ( | gslc_tsGui * | pGui, |
| gslc_tsElemRef * | pElemRef, | ||
| int16_t | nPos | ||
| ) |
Set a Slider element's current position.
| [in] | pGui | Pointer to GUI |
| [in] | pGui | Pointer to GUI |
| [in] | pElemRef | Pointer to Element reference |
| [in] | nPos | New position value |
| void gslc_ElemXSliderSetPosFunc | ( | gslc_tsGui * | pGui, |
| gslc_tsElemRef * | pElemRef, | ||
| GSLC_CB_XSLIDER_POS | funcCb | ||
| ) |
Assign the position callback function for a slider.
| [in] | pGui | Pointer to GUI |
| [in] | pElemRef | Pointer to Element reference |
| [in] | funcCb | Function pointer to position routine (or NULL for none) |
| void gslc_ElemXSliderSetSnapEn | ( | gslc_tsGui * | pGui, |
| gslc_tsElemRef * | pElemRef, | ||
| bool | bSnapEn | ||
| ) |
Enable touch to snap to the nearest tick mark.
| [in] | pGui | Pointer to GUI |
| [in] | pElemRef | Pointer to Element reference |
| [in] | bSnapEn | Enable snap function if true |
| void gslc_ElemXSliderSetStyle | ( | gslc_tsGui * | pGui, |
| gslc_tsElemRef * | pElemRef, | ||
| bool | bTrim, | ||
| gslc_tsColor | colTrim, | ||
| uint16_t | nTickDiv, | ||
| int16_t | nTickLen, | ||
| gslc_tsColor | colTick | ||
| ) |
Set a Slider element's current position.
| [in] | pGui | Pointer to GUI |
| [in] | pElemRef | Pointer to Element reference |
| [in] | bTrim | Show a colored trim? |
| [in] | colTrim | Color of trim |
| [in] | nTickDiv | Number of tick divisions to show (0 for none) |
| [in] | nTickLen | Length of tickmarks |
| [in] | colTick | Color of ticks |
| bool gslc_ElemXSliderTouch | ( | void * | pvGui, |
| void * | pvElemRef, | ||
| gslc_teTouch | eTouch, | ||
| int16_t | nRelX, | ||
| int16_t | nRelY | ||
| ) |
Handle touch events to Slider 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[] |