Merge branch 'master' of https://github.com/dublio/fio
[fio.git] / graph.h
diff --git a/graph.h b/graph.h
index e7d879d683533ebfea5527ce21b9f2b2dfbfb12f..078e50ceac83ee881abe61a56073cf56f27bb969 100644 (file)
--- a/graph.h
+++ b/graph.h
@@ -6,6 +6,8 @@ struct graph_label;
 
 typedef struct graph_label * graph_label_t;
 
+#define GRAPH_DEFAULT_FONT     "Sans 12"
+
 struct graph *graph_new(unsigned int xdim, unsigned int ydim, const char *font);
 /* graph_new() Returns a new graph structure of the given dimensions and font */
 void graph_set_size(struct graph *g, unsigned int xdim, unsigned int ydim);
@@ -21,6 +23,7 @@ void line_graph_set_data_count_limit(struct graph *g, int per_label_limit);
  * be added to a line graph.  Once the limit is reached, the oldest data 
  * is discarded as new data is added
  */
+void graph_set_font(struct graph *g, const char *font);
 void graph_title(struct graph *g, const char *title);
 /* graph_title() sets the main title of the graph to the given string */
 void graph_x_title(struct graph *g, const char *title);
@@ -90,5 +93,7 @@ extern int graph_contains_xy(struct graph *p, int x, int y);
 extern void graph_set_base_offset(struct graph *g, unsigned int base_offset);
 extern void graph_set_graph_all_zeroes(struct graph *g, unsigned int set);
 
+extern void graph_clear_values(struct graph *g);
+
 #endif