BeRTOS
charts.h
Go to the documentation of this file.
00001 
00057 #ifndef GFX_CHARTS_H
00058 #define GFX_CHARTS_H
00059 
00060 #include "cfg/cfg_gfx.h" /* CONFIG_ stuff */
00061 
00062 #include <gfx/gfx.h>   /* vcoord_t */
00063 
00068 #define TICKS_HEIGHT     2
00069 #define TICKS_WIDTH      2
00070 /*\}*/
00071 
00076 #define CHART_BORDERTOP       0
00077 #define CHART_BORDERBOTTOM    0
00078 #define CHART_BORDERLEFT      0
00079 #define CHART_BORDERRIGHT     0
00080 /*\}*/
00081 
00082 #ifndef CONFIG_CHART_TYPE_X
00083 #define CONFIG_CHART_TYPE_X vcoord_t
00084 #endif
00085 #ifndef CONFIG_CHART_TYPE_Y
00086 #define CONFIG_CHART_TYPE_Y vcoord_t
00087 #endif
00088 
00089 
00090 typedef CONFIG_CHART_TYPE_X chart_x_t;
00091 typedef CONFIG_CHART_TYPE_Y chart_y_t;
00092 
00093 
00094 /* Public function protos */
00095 void chart_init(Bitmap *bm, coord_t xmin, coord_t ymin, coord_t xmax, coord_t ymax);
00096 void chart_setScale(Bitmap *bm, chart_x_t xmin, chart_y_t ymin, chart_x_t xmax, chart_y_t ymax);
00097 void chart_drawAxis(Bitmap *bm);
00098 void chart_drawCurve(Bitmap *bm, const chart_y_t *curve_y, int curve_cnt);
00099 void chart_drawDots(Bitmap *bm, const chart_x_t *dots_x, const chart_y_t *dots_y, int cnt);
00100  //defgroup charts
00102 #endif /* GFX_CHARTS_H */