Go to the source code of this file.
|
#define | GSLC_TYPEX_SEEKBAR |
|
#define | gslc_ElemXSeekbarCreate_P(pGui, nElemId, nPage, nX, nY, nW, nH, nPosMin_, nPosMax_, nPos_, nProgressW_, nRemainW_, nThumbSz_, colProgress_, colRemain_, colThumb_, bVert_, colFrame_, colFill_) |
| Create a Seekbar Element in Flash. More...
|
|
|
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...
|
|
#define gslc_ElemXSeekbarCreate_P |
( |
|
pGui, |
|
|
|
nElemId, |
|
|
|
nPage, |
|
|
|
nX, |
|
|
|
nY, |
|
|
|
nW, |
|
|
|
nH, |
|
|
|
nPosMin_, |
|
|
|
nPosMax_, |
|
|
|
nPos_, |
|
|
|
nProgressW_, |
|
|
|
nRemainW_, |
|
|
|
nThumbSz_, |
|
|
|
colProgress_, |
|
|
|
colRemain_, |
|
|
|
colThumb_, |
|
|
|
bVert_, |
|
|
|
colFrame_, |
|
|
|
colFill_ |
|
) |
| |
Create a Seekbar Element in Flash.
- Parameters
-
[in] | pGui | Pointer to GUI |
[in] | nElemId | Unique element ID to assign |
[in] | nPage | Page ID to attach element to |
[in] | nX | X coordinate of element |
[in] | nY | Y coordinate of element |
[in] | nW | Width of element |
[in] | nH | Height of element |
[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) |
[in] | colFrame_ | Color of the element frame |
[in] | colFill_ | Color of the element fill |
- Returns
- none
#define GSLC_TYPEX_SEEKBAR |
typedef bool(* GSLC_CB_XSEEKBAR_POS) (void *pvGui, void *pvElem, int16_t nPos) |
Callback function for slider feedback.
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.
- 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 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) |
- Returns
- Pointer to Element reference or NULL if failure
bool gslc_ElemXSeekbarDraw |
( |
void * |
pvGui, |
|
|
void * |
pvElemRef, |
|
|
gslc_teRedrawType |
eRedraw |
|
) |
| |
Draw a Seekbar 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
Get a Seekbar element's current position.
- Parameters
-
[in] | pGui | Pointer to GUI |
[in] | pElemRef | Pointer to Element reference |
- Returns
- Current slider position
Set a Seekbar element's current position.
- Parameters
-
[in] | pGui | Pointer to GUI |
[in] | pGui | Pointer to GUI |
[in] | pElemRef | Pointer to Element reference |
[in] | nPos | New position value |
- Returns
- none
Assign the position callback function for a slider.
- Parameters
-
[in] | pGui | Pointer to GUI |
[in] | pElemRef | Pointer to Element reference |
[in] | funcCb | Function pointer to position routine (or NULL for none) |
- Returns
- none
Set a Seekbar element's style, this includes thumb customizations and tick marks.
- Parameters
-
[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 |
- Returns
- none
bool gslc_ElemXSeekbarTouch |
( |
void * |
pvGui, |
|
|
void * |
pvElemRef, |
|
|
gslc_teTouch |
eTouch, |
|
|
int16_t |
nRelX, |
|
|
int16_t |
nRelY |
|
) |
| |
Handle touch events to Seekbar 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