30 typedef enum GGraphPointType_e {
31 GGRAPH_POINT_NONE, GGRAPH_POINT_DOT, GGRAPH_POINT_SQUARE, GGRAPH_POINT_CIRCLE
34 typedef struct GGraphPointStyle_t {
40 typedef enum GGraphLineType_e {
41 GGRAPH_LINE_NONE, GGRAPH_LINE_SOLID, GGRAPH_LINE_DOT, GGRAPH_LINE_DASH
44 typedef struct GGraphLineStyle_t {
50 typedef struct GGraphGridStyle_t {
57 typedef struct GGraphStyle_t {
58 GGraphPointStyle
point;
60 GGraphLineStyle xaxis;
61 GGraphLineStyle yaxis;
62 GGraphGridStyle xgrid;
63 GGraphGridStyle ygrid;
65 #define GWIN_GRAPH_STYLE_XAXIS_POSITIVE_ARROWS 0x0001 66 #define GWIN_GRAPH_STYLE_XAXIS_NEGATIVE_ARROWS 0x0002 67 #define GWIN_GRAPH_STYLE_YAXIS_POSITIVE_ARROWS 0x0004 68 #define GWIN_GRAPH_STYLE_YAXIS_NEGATIVE_ARROWS 0x0008 69 #define GWIN_GRAPH_STYLE_POSITIVE_AXIS_ARROWS (GWIN_GRAPH_STYLE_XAXIS_POSITIVE_ARROWS|GWIN_GRAPH_STYLE_YAXIS_POSITIVE_ARROWS) 70 #define GWIN_GRAPH_STYLE_NEGATIVE_AXIS_ARROWS (GWIN_GRAPH_STYLE_XAXIS_NEGATIVE_ARROWS|GWIN_GRAPH_STYLE_YAXIS_NEGATIVE_ARROWS) 71 #define GWIN_GRAPH_STYLE_XAXIS_ARROWS (GWIN_GRAPH_STYLE_XAXIS_POSITIVE_ARROWS|GWIN_GRAPH_STYLE_XAXIS_NEGATIVE_ARROWS) 72 #define GWIN_GRAPH_STYLE_YAXIS_ARROWS (GWIN_GRAPH_STYLE_YAXIS_POSITIVE_ARROWS|GWIN_GRAPH_STYLE_YAXIS_NEGATIVE_ARROWS) 73 #define GWIN_GRAPH_STYLE_ALL_AXIS_ARROWS (GWIN_GRAPH_STYLE_XAXIS_ARROWS|GWIN_GRAPH_STYLE_YAXIS_ARROWS) 77 typedef struct GGraphObject {
115 #define gwinGraphCreate(gg, pInit) gwinGGraphCreate(GDISP, gg, pInit) The structure to initialise a GWIN.
int16_t coord_t
The type for a coordinate or length on the screen.
GHandle gwinGGraphCreate(GDisplay *g, GGraphObject *gg, const GWindowInit *pInit)
Create a graph window.
void gwinGraphSetStyle(GHandle gh, const GGraphStyle *pstyle)
Set the style of the graphing operations.
void gwinGraphDrawPoints(GHandle gh, const point *points, unsigned count)
Draw multiple graph points.
void gwinGraphSetOrigin(GHandle gh, coord_t x, coord_t y)
Set the origin for graphing operations.
void gwinGraphStartSet(GHandle gh)
Start a new set of graphing data.
void gwinGraphDrawAxis(GHandle gh)
Draw the axis and the background grid.
void gwinGraphDrawPoint(GHandle gh, coord_t x, coord_t y)
Draw a graph point.
Type for a 2D point on the screen.
A window object structure.
COLOR_TYPE color_t
The color type definition.