GUIslice
0.16.0
Embedded GUI in C
|
Functions | |
gslc_tsElemRef * | gslc_ElemXSeekbarCreate (gslc_tsGui *pGui, int16_t nElemId, int16_t nPage, gslc_tsXSeekbar *pXData, gslc_tsRect rElem, int16_t nPosMin, int16_t nPosMax, int16_t nPos, uint8_t nProgressW, uint8_t nRemainW, uint8_t nThumbSz, gslc_tsColor colProgress, gslc_tsColor colRemain, gslc_tsColor colThumb, bool bVert) |
Create a Seekbar Element. More... | |
void | gslc_ElemXSeekbarSetStyle (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, bool bTrimThumb, gslc_tsColor colTrim, bool bFrameThumb, gslc_tsColor colFrame, uint16_t nTickDiv, int16_t nTickLen, gslc_tsColor colTick) |
Set a Seekbar element's style, this includes thumb customizations and tick marks. More... | |
int | gslc_ElemXSeekbarGetPos (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef) |
Get a Seekbar element's current position. More... | |
void | gslc_ElemXSeekbarSetPos (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, int16_t nPos) |
Set a Seekbar element's current position. More... | |
void | gslc_ElemXSeekbarSetPosFunc (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, GSLC_CB_XSEEKBAR_POS funcCb) |
Assign the position callback function for a slider. More... | |
bool | gslc_ElemXSeekbarDraw (void *pvGui, void *pvElemRef, gslc_teRedrawType eRedraw) |
Draw a Seekbar element on the screen. More... | |
bool | gslc_ElemXSeekbarTouch (void *pvGui, void *pvElemRef, gslc_teTouch eTouch, int16_t nRelX, int16_t nRelY) |
Handle touch events to Seekbar element. More... | |
Variables | |
const char GSLC_PMEM | ERRSTR_NULL [] |
const char GSLC_PMEM | ERRSTR_PXD_NULL [] |
gslc_tsElemRef* gslc_ElemXSeekbarCreate | ( | gslc_tsGui * | pGui, |
int16_t | nElemId, | ||
int16_t | nPage, | ||
gslc_tsXSeekbar * | pXData, | ||
gslc_tsRect | rElem, | ||
int16_t | nPosMin, | ||
int16_t | nPosMax, | ||
int16_t | nPos, | ||
uint8_t | nProgressW, | ||
uint8_t | nRemainW, | ||
uint8_t | nThumbSz, | ||
gslc_tsColor | colProgress, | ||
gslc_tsColor | colRemain, | ||
gslc_tsColor | colThumb, | ||
bool | bVert | ||
) |
Create a Seekbar 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] | nProgressW | Width of progress track |
[in] | nRemainW | Width of remaining track |
[in] | nThumbSz | Size of the thumb control |
[in] | colProgress | Color of progress fill bar |
[in] | colRemain | Color remaining fill bar |
[in] | colThumb | Color for the thumb indicator |
[in] | bVert | Orientation (true for vertical) |
bool gslc_ElemXSeekbarDraw | ( | void * | pvGui, |
void * | pvElemRef, | ||
gslc_teRedrawType | eRedraw | ||
) |
Draw a Seekbar 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_ElemXSeekbarGetPos | ( | gslc_tsGui * | pGui, |
gslc_tsElemRef * | pElemRef | ||
) |
Get a Seekbar element's current position.
[in] | pGui | Pointer to GUI |
[in] | pElemRef | Pointer to Element reference |
void gslc_ElemXSeekbarSetPos | ( | gslc_tsGui * | pGui, |
gslc_tsElemRef * | pElemRef, | ||
int16_t | nPos | ||
) |
Set a Seekbar 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_ElemXSeekbarSetPosFunc | ( | gslc_tsGui * | pGui, |
gslc_tsElemRef * | pElemRef, | ||
GSLC_CB_XSEEKBAR_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_ElemXSeekbarSetStyle | ( | gslc_tsGui * | pGui, |
gslc_tsElemRef * | pElemRef, | ||
bool | bTrimThumb, | ||
gslc_tsColor | colTrim, | ||
bool | bFrameThumb, | ||
gslc_tsColor | colFrame, | ||
uint16_t | nTickDiv, | ||
int16_t | nTickLen, | ||
gslc_tsColor | colTick | ||
) |
Set a Seekbar element's style, this includes thumb customizations and tick marks.
[in] | pGui | Pointer to GUI |
[in] | pElemRef | Pointer to Element reference |
[in] | bTrimThumb | Show a colored trim for thumb? |
[in] | colTrim | Color of thumb trim |
[in] | bFrameThumb | Show a frame around thumb? |
[in] | colFrame | Color of thumb frame |
[in] | nTickDiv | Number of tick divisions to show (0 for none) |
[in] | nTickLen | Length of tick marks |
[in] | colTick | Color of ticks |
bool gslc_ElemXSeekbarTouch | ( | void * | pvGui, |
void * | pvElemRef, | ||
gslc_teTouch | eTouch, | ||
int16_t | nRelX, | ||
int16_t | nRelY | ||
) |
Handle touch events to Seekbar 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[] |