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 {
111 #define gwinGraphCreate(gg, pInit) gwinGGraphCreate(GDISP, gg, pInit)
COLOR_TYPE gColor
The color type definition.
gI16 gCoord
The type for a coordinate or length on the screen.
void gwinGraphDrawPoint(GHandle gh, gCoord x, gCoord y)
Draw a graph point.
void gwinGraphStartSet(GHandle gh)
Start a new set of graphing data.
void gwinGraphDrawPoints(GHandle gh, const gPoint *points, unsigned count)
Draw multiple graph points.
void gwinGraphDrawAxis(GHandle gh)
Draw the axis and the background grid.
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 gwinGraphSetOrigin(GHandle gh, gCoord x, gCoord y)
Set the origin for graphing operations.
The structure to initialise a GWIN.
A window object structure.
Type for a 2D point on the screen.