]> git.cworth.org Git - acre/blobdiff - acre.h
Add support for a new TIMELINE style for drawing a data-set.
[acre] / acre.h
diff --git a/acre.h b/acre.h
index 6bad89aa88555127137ef45a8494484f527972be..9611da3d8d15a8b7c4cf00d4bfd07f564b5e574a 100644 (file)
--- a/acre.h
+++ b/acre.h
@@ -115,7 +115,18 @@ acre_data_destroy (acre_data_t *data);
 /* The style to be used for rendering data sets. */
 typedef enum
 {
-       ACRE_STYLE_LINE
+       /* A simple line graph connection each (X,Y) pair in order. */
+       ACRE_STYLE_LINE,
+
+       /* A timeline.
+        *
+        * Each (X,Y) pair specifies the (start,stop) time of a
+        * timeline bar.
+        *
+        * The acre_data_add_point_2d_named function is particularly
+        * useful to provide a name for each timeline bar.
+        */
+       ACRE_STYLE_TIMELINE
 } acre_style_t;
 
 /* Set the rendering style for this dataset. */