GUIslice
0.16.0
Embedded GUI in C
|
Functions | |
gslc_tsElemRef * | gslc_ElemXGraphCreate (gslc_tsGui *pGui, int16_t nElemId, int16_t nPage, gslc_tsXGraph *pXData, gslc_tsRect rElem, int16_t nFontId, int16_t *pBuf, uint16_t nBufMax, gslc_tsColor colGraph) |
Create a Graph Element. More... | |
void | gslc_ElemXGraphSetStyle (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, gslc_teXGraphStyle eStyle, uint8_t nMargin) |
Set the graph's additional drawing characteristics. More... | |
void | gslc_ElemXGraphSetRange (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, int16_t nYMin, int16_t nYMax) |
Set the graph's drawing range. More... | |
void | gslc_ElemXGraphScrollSet (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, uint8_t nScrollPos, uint8_t nScrollMax) |
Set the graph scroll position (nScrollPos) as a fraction of nScrollMax. More... | |
void | gslc_ElemXGraphAdd (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, int16_t nVal) |
Add a value to the graph at the latest position. More... | |
bool | gslc_ElemXGraphDraw (void *pvGui, void *pvElemRef, gslc_teRedrawType eRedraw) |
Draw a Graph element on the screen. More... | |
Variables | |
const char GSLC_PMEM | ERRSTR_NULL [] |
const char GSLC_PMEM | ERRSTR_PXD_NULL [] |
void gslc_ElemXGraphAdd | ( | gslc_tsGui * | pGui, |
gslc_tsElemRef * | pElemRef, | ||
int16_t | nVal | ||
) |
Add a value to the graph at the latest position.
[in] | pGui | Pointer to GUI |
[in] | pElemRef | Pointer to Element reference |
[in] | nVal | Data value to add |
gslc_tsElemRef* gslc_ElemXGraphCreate | ( | gslc_tsGui * | pGui, |
int16_t | nElemId, | ||
int16_t | nPage, | ||
gslc_tsXGraph * | pXData, | ||
gslc_tsRect | rElem, | ||
int16_t | nFontId, | ||
int16_t * | pBuf, | ||
uint16_t | nBufRows, | ||
gslc_tsColor | colGraph | ||
) |
Create a Graph 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] | nFontId | Font ID to use for graph area |
[in] | pBuf | Ptr to data buffer (already allocated) with size (nBufMax) int16_t |
[in] | nBufRows | Maximum number of points in buffer |
[in] | colGraph | Color of the graph |
bool gslc_ElemXGraphDraw | ( | void * | pvGui, |
void * | pvElemRef, | ||
gslc_teRedrawType | eRedraw | ||
) |
Draw a Graph 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_ElemXGraphScrollSet | ( | gslc_tsGui * | pGui, |
gslc_tsElemRef * | pElemRef, | ||
uint8_t | nScrollPos, | ||
uint8_t | nScrollMax | ||
) |
Set the graph scroll position (nScrollPos) as a fraction of nScrollMax.
[in] | pGui | Pointer to GUI |
[in] | pElemRef | Pointer to Element reference |
[in] | nScrollPos | New scroll position |
[in] | nScrollMax | Maximum scroll position |
void gslc_ElemXGraphSetRange | ( | gslc_tsGui * | pGui, |
gslc_tsElemRef * | pElemRef, | ||
int16_t | nYMin, | ||
int16_t | nYMax | ||
) |
Set the graph's drawing range.
[in] | pGui | Pointer to GUI |
[in] | pElemRef | Pointer to Element reference |
[in] | nYMin | Minimum Y value to draw |
[in] | nYMax | Maximum Y value to draw |
void gslc_ElemXGraphSetStyle | ( | gslc_tsGui * | pGui, |
gslc_tsElemRef * | pElemRef, | ||
gslc_teXGraphStyle | eStyle, | ||
uint8_t | nMargin | ||
) |
Set the graph's additional drawing characteristics.
[in] | pGui | Pointer to GUI |
[in] | pElemRef | Pointer to Element reference |
[in] | eStyle | Drawing style for the graph |
[in] | nMargin | Margin to provide around graph area inside frame |
const char GSLC_PMEM ERRSTR_NULL[] |
const char GSLC_PMEM ERRSTR_PXD_NULL[] |