line-visualizer: add support for filling line areas

This allows us to fill the area and set it to an RGBA instead of the same
as the line color itself.
This commit is contained in:
Christian Hergert
2018-05-19 13:24:58 +01:00
parent fc0eff6d4b
commit 0535691afa
2 changed files with 65 additions and 11 deletions

View File

@ -38,11 +38,17 @@ struct _SpLineVisualizerRowClass
gpointer _reserved[16];
};
GtkWidget *sp_line_visualizer_row_new (void);
void sp_line_visualizer_row_clear (SpLineVisualizerRow *self);
void sp_line_visualizer_row_add_counter (SpLineVisualizerRow *self,
guint counter_id,
const GdkRGBA *color);
GtkWidget *sp_line_visualizer_row_new (void);
void sp_line_visualizer_row_clear (SpLineVisualizerRow *self);
void sp_line_visualizer_row_add_counter (SpLineVisualizerRow *self,
guint counter_id,
const GdkRGBA *color);
void sp_line_visualizer_row_set_line_width (SpLineVisualizerRow *self,
guint counter_id,
gdouble width);
void sp_line_visualizer_row_set_fill (SpLineVisualizerRow *self,
guint counter_id,
const GdkRGBA *color);
G_END_DECLS