aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJoel Bodenmann <joel.bodenmann@hevs.ch>2012-10-24 21:05:23 +0200
committerJoel Bodenmann <joel.bodenmann@hevs.ch>2012-10-24 21:05:23 +0200
commit0c2b45dbd5b3e6ba9007a08853baf957a803c8b1 (patch)
tree85672f5d5d331e6b1211781a82ea6a30b37b6842 /include
parent0004d3824ba7ed532801e440a9e5dbab409f4064 (diff)
downloaduGFX-0c2b45dbd5b3e6ba9007a08853baf957a803c8b1.tar.gz
uGFX-0c2b45dbd5b3e6ba9007a08853baf957a803c8b1.tar.bz2
uGFX-0c2b45dbd5b3e6ba9007a08853baf957a803c8b1.zip
graph update
Diffstat (limited to 'include')
-rw-r--r--include/graph.h26
1 files changed, 15 insertions, 11 deletions
diff --git a/include/graph.h b/include/graph.h
index e027c4ef..74b85ed4 100644
--- a/include/graph.h
+++ b/include/graph.h
@@ -24,28 +24,32 @@
#if GFX_USE_GRAPH
typedef struct _Graph {
- coord_t x0;
- coord_t y0;
- coord_t x1;
- coord_t y1;
+ coord_t origin_x;
+ coord_t origin_y;
+ int xmin;
+ int xmax;
+ int ymin;
+ int ymax;
uint16_t grid_size;
uint16_t dot_space;
bool_t full_grid;
+ bool_t arrows;
color_t axis_color;
color_t grid_color;
+
+ /* do never modify values below this line manually */
+ coord_t x0;
+ coord_t x1;
+ coord_t y0;
+ coord_t y1;
} Graph;
#ifdef __cplusplus
extern "C" {
#endif
-void graphDrawOneQuadrat(Graph *g);
-void graphDrawFourQuadrants(Graph *g);
-void graphDrawDot(coord_t x, coord_t y, uint16_t radius, color_t color);
-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);
-
-point_t graphGetOrigin(void);
+void graphDrawSystem(Graph *g);
+void graphDrawDot(Graph *g, coord_t x, coord_t y, uint16_t radius, color_t color);
#ifdef __cplusplus
}