1 #ifndef _GUISLICE_EX_XGRAPH_H_ 2 #define _GUISLICE_EX_XGRAPH_H_ 50 #define GSLC_TYPEX_GRAPH GSLC_TYPE_BASE_EXTEND + 5 121 gslc_teXGraphStyle eStyle,uint8_t nMargin);
134 int16_t nYMin,int16_t nYMax);
184 #endif // __cplusplus 185 #endif // _GUISLICE_EX_XGRAPH_H_ gslc_teXGraphStyle
Gauge drawing style.
Definition: XGraph.h:54
Dot.
Definition: XGraph.h:55
Filled.
Definition: XGraph.h:57
uint16_t nScrollPos
Current scrollbar position.
Definition: XGraph.h:74
gslc_teRedrawType
Redraw types.
Definition: GUIslice.h:370
uint16_t nWndHeight
Visible window height.
Definition: XGraph.h:76
uint16_t nPlotIndStart
First row of current window.
Definition: XGraph.h:84
gslc_teXGraphStyle eStyle
Style of the graph.
Definition: XGraph.h:70
void gslc_ElemXGraphSetRange(gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, int16_t nYMin, int16_t nYMax)
Set the graph's drawing range.
Definition: XGraph.c:176
Line.
Definition: XGraph.h:56
bool gslc_ElemXGraphDraw(void *pvGui, void *pvElemRef, gslc_teRedrawType eRedraw)
Draw a Graph element on the screen.
Definition: XGraph.c:243
uint8_t nMargin
Margin for graph area within element rect.
Definition: XGraph.h:68
Rectangular region. Defines X,Y corner coordinates plus dimensions.
Definition: GUIslice.h:519
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.
Definition: XGraph.c:195
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.
Definition: XGraph.c:70
uint16_t nWndWidth
Visible window width.
Definition: XGraph.h:77
uint16_t nPlotIndMax
Number of data points to show in window.
Definition: XGraph.h:80
uint16_t nBufMax
Maximum number of points in buffer.
Definition: XGraph.h:72
bool bScrollEn
Enable for scrollbar.
Definition: XGraph.h:73
Element reference structure.
Definition: GUIslice.h:578
void gslc_ElemXGraphSetStyle(gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, gslc_teXGraphStyle eStyle, uint8_t nMargin)
Set the graph's additional drawing characteristics.
Definition: XGraph.c:155
int16_t * pBuf
Ptr to the data buffer (circular buffer))
Definition: XGraph.h:67
int16_t nPlotValMax
Visible window maximum value.
Definition: XGraph.h:78
void gslc_ElemXGraphAdd(gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, int16_t nVal)
Add a value to the graph at the latest position.
Definition: XGraph.c:224
GUI structure.
Definition: GUIslice.h:716
Color structure. Defines RGB triplet.
Definition: GUIslice.h:534
int16_t nPlotValMin
Visible window minimum value.
Definition: XGraph.h:79
gslc_tsColor colGraph
Color of the graph.
Definition: XGraph.h:69
Extended data for Graph element.
Definition: XGraph.h:65
uint16_t nBufCnt
Number of points in buffer.
Definition: XGraph.h:83