Go to the source code of this file.
|
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. 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...
|
|
bool | gslc_ElemXGraphDraw (void *pvGui, void *pvElemRef, gslc_teRedrawType eRedraw) |
| Draw a Graph element on the screen. More...
|
|
void | gslc_ElemXGraphAdd (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, int16_t nVal) |
| Add a value to the graph at the latest position. 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...
|
|
Gauge drawing style.
Enumerator |
---|
GSLCX_GRAPH_STYLE_DOT |
Dot.
|
GSLCX_GRAPH_STYLE_LINE |
Line.
|
GSLCX_GRAPH_STYLE_FILL |
Filled.
|
Add a value to the graph at the latest position.
- Parameters
-
[in] | pGui | Pointer to GUI |
[in] | pElemRef | Pointer to Element reference |
[in] | nVal | Data value to add |
- Returns
- none
Create a Graph 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] | 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 |
- Returns
- Pointer to Element reference or NULL if failure
bool gslc_ElemXGraphDraw |
( |
void * |
pvGui, |
|
|
void * |
pvElemRef, |
|
|
gslc_teRedrawType |
eRedraw |
|
) |
| |
Draw a Graph 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
Set the graph scroll position (nScrollPos) as a fraction of nScrollMax.
- Parameters
-
[in] | pGui | Pointer to GUI |
[in] | pElemRef | Pointer to Element reference |
[in] | nScrollPos | New scroll position |
[in] | nScrollMax | Maximum scroll position |
- Returns
- none
Set the graph's drawing range.
- Parameters
-
[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 |
- Returns
- none
Set the graph's additional drawing characteristics.
- Parameters
-
[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 |
- Returns
- none