GUI timeline widget

This commit is contained in:
Cedric Roux
2016-05-12 17:03:07 +02:00
parent 52fae6a830
commit 944dad4caa
5 changed files with 182 additions and 3 deletions
+18 -1
View File
@@ -30,7 +30,8 @@ extern int volatile gui_logd;
/*************************************************************************/
enum widget_type {
TOPLEVEL_WINDOW, CONTAINER, POSITIONER, TEXT_LIST, XY_PLOT, BUTTON, LABEL
TOPLEVEL_WINDOW, CONTAINER, POSITIONER, TEXT_LIST, XY_PLOT, BUTTON, LABEL,
TIMELINE
};
struct widget_list;
@@ -117,6 +118,22 @@ struct xy_plot_widget {
int nplots;
};
struct timeline_subline {
int *color; /* length = width of timeline widget
* value = -1 if no color
*/
int width;
int background; /* background color of the subline */
};
struct timeline_widget {
struct widget common;
int n; /* number of sublines */
struct timeline_subline *s;
int subline_height;
int wanted_width;
};
struct button_widget {
struct widget common;
};