Restructure graph view and add background color property

This commit is contained in:
2020-04-03 21:43:20 +02:00
parent 234722df85
commit 998628bb6c
3 changed files with 123 additions and 8 deletions

View File

@@ -34,7 +34,7 @@ G_BEGIN_DECLS
#define GTK_TYPE_GRAPH_VIEW (gtk_graph_view_get_type())
G_DECLARE_FINAL_TYPE(GtkGraphView, gtk_graph_view, GTK, GRAPH_VIEW, GtkGLArea)
G_DECLARE_FINAL_TYPE(GtkGraphView, gtk_graph_view, GTK, GRAPH_VIEW, GtkBox)
/**
* @brief Instanciate new GtkGraphView object
@@ -42,6 +42,16 @@ G_DECLARE_FINAL_TYPE(GtkGraphView, gtk_graph_view, GTK, GRAPH_VIEW, GtkGLArea)
*/
GtkWidget *gtk_graph_view_new();
/**
* @brief Set the background color of the graph view
*
* This is equivalent to setting the "background-color" property
*
* @param[in] graph_view GtkGraphView object
* @param[in] RGBA background color.
*/
void gtk_graph_view_set_background_color(GtkGraphView* graph_view, const GdkRGBA *rgba);
G_END_DECLS
#endif /* __GTK_GRAPH_VIEW_H__ */