diff options
author | Joel Bodenmann <joel@unormal.org> | 2012-10-24 02:39:21 +0200 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2012-10-24 02:39:21 +0200 |
commit | 5ac69126489aaa36182f79ea184fc771d0ac5d27 (patch) | |
tree | 76d1d63df5bffcab59fa00a9568aa9ad60f76fa6 /include | |
parent | d1f970217374c5f0363ebbfa6bd6551094a5735d (diff) | |
download | uGFX-5ac69126489aaa36182f79ea184fc771d0ac5d27.tar.gz uGFX-5ac69126489aaa36182f79ea184fc771d0ac5d27.tar.bz2 uGFX-5ac69126489aaa36182f79ea184fc771d0ac5d27.zip |
first graph implementation
Diffstat (limited to 'include')
-rw-r--r-- | include/graph.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/graph.h b/include/graph.h index e0e0622b..3a6cbe03 100644 --- a/include/graph.h +++ b/include/graph.h @@ -29,10 +29,24 @@ typedef struct _Graph { coord_t x1; coord_t y1; uint16_t grid_size; + uint16_t dot_space; bool_t full_grid; color_t color; } Graph; +#ifdef __cplusplus +extern "C" { +#endif + +void graphDrawOneQuadrat(Graph *g); +void graphDrawFourQuadrants(Graph *g); +void graphDrawDots(int coord[][2], uint16_t entries, uint16_t radius, uint16_t color); +void graphDrawNet(int coord[][2], uint16_t entries, uint16_t radius, uint16_t lineColor, uint16_t dotColor); + +#ifdef __cplusplus +} +#endif + #endif /* GFX_USE_GRAPH */ #endif |