aboutsummaryrefslogtreecommitdiffstats
path: root/include/gwin
diff options
context:
space:
mode:
authorAndrew Hannam <andrewh@inmarket.com.au>2012-12-13 22:33:05 +1000
committerAndrew Hannam <andrewh@inmarket.com.au>2012-12-13 22:33:05 +1000
commit311c0e71684462269afb15264b7134a0f16064bc (patch)
tree3cdf67549051b5c739c138c3d289addb8636147d /include/gwin
parentd503f3a4ac81198d3e9fb41179a20382d76cfcb8 (diff)
downloaduGFX-311c0e71684462269afb15264b7134a0f16064bc.tar.gz
uGFX-311c0e71684462269afb15264b7134a0f16064bc.tar.bz2
uGFX-311c0e71684462269afb15264b7134a0f16064bc.zip
Add grids to graph demo and update graph arrows
Add grid lines to graph demo. Update graph arrows to allow seperate control of positive and negative axis arrowheads.
Diffstat (limited to 'include/gwin')
-rw-r--r--include/gwin/graph.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/gwin/graph.h b/include/gwin/graph.h
index 752460cb..58c5fdee 100644
--- a/include/gwin/graph.h
+++ b/include/gwin/graph.h
@@ -80,8 +80,15 @@ typedef struct GGraphStyle_t {
GGraphGridStyle xgrid;
GGraphGridStyle ygrid;
uint16_t flags;
- #define GWIN_GRAPH_STYLE_XAXIS_ARROWS 0x0001
- #define GWIN_GRAPH_STYLE_YAXIS_ARROWS 0x0002
+ #define GWIN_GRAPH_STYLE_XAXIS_POSITIVE_ARROWS 0x0001
+ #define GWIN_GRAPH_STYLE_XAXIS_NEGATIVE_ARROWS 0x0002
+ #define GWIN_GRAPH_STYLE_YAXIS_POSITIVE_ARROWS 0x0004
+ #define GWIN_GRAPH_STYLE_YAXIS_NEGATIVE_ARROWS 0x0008
+ #define GWIN_GRAPH_STYLE_POSITIVE_AXIS_ARROWS (GWIN_GRAPH_STYLE_XAXIS_POSITIVE_ARROWS|GWIN_GRAPH_STYLE_YAXIS_POSITIVE_ARROWS)
+ #define GWIN_GRAPH_STYLE_NEGATIVE_AXIS_ARROWS (GWIN_GRAPH_STYLE_XAXIS_NEGATIVE_ARROWS|GWIN_GRAPH_STYLE_YAXIS_NEGATIVE_ARROWS)
+ #define GWIN_GRAPH_STYLE_XAXIS_ARROWS (GWIN_GRAPH_STYLE_XAXIS_POSITIVE_ARROWS|GWIN_GRAPH_STYLE_XAXIS_NEGATIVE_ARROWS)
+ #define GWIN_GRAPH_STYLE_YAXIS_ARROWS (GWIN_GRAPH_STYLE_YAXIS_POSITIVE_ARROWS|GWIN_GRAPH_STYLE_YAXIS_NEGATIVE_ARROWS)
+ #define GWIN_GRAPH_STYLE_ALL_AXIS_ARROWS (GWIN_GRAPH_STYLE_XAXIS_ARROWS|GWIN_GRAPH_STYLE_YAXIS_ARROWS)
} GGraphStyle;
// A graph window