diff options
author | Benjamin Otte <otte@redhat.com> | 2015-01-25 02:40:40 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-03-18 15:23:29 +0100 |
commit | 7bafb63ec3b04764f8986b82f1a6c6e1e73eea3b (patch) | |
tree | 96ae95411828e31923c024347b3034b99d92698b /gtk/gtkcssnodeprivate.h | |
parent | d79a44c1afaea14cd8442df61631154fe0bdd441 (diff) | |
download | gtk+-7bafb63ec3b04764f8986b82f1a6c6e1e73eea3b.tar.gz |
cssnode: Handle invalidation
Handle invalidation of node inside the CssNode code, don't do it in the
stylecontext.
Diffstat (limited to 'gtk/gtkcssnodeprivate.h')
-rw-r--r-- | gtk/gtkcssnodeprivate.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/gtk/gtkcssnodeprivate.h b/gtk/gtkcssnodeprivate.h index fb8bb4de4e..46aafb01a7 100644 --- a/gtk/gtkcssnodeprivate.h +++ b/gtk/gtkcssnodeprivate.h @@ -48,6 +48,8 @@ struct _GtkCssNodeClass GtkWidgetPath * (* create_widget_path) (GtkCssNode *cssnode); const GtkWidgetPath * (* get_widget_path) (GtkCssNode *cssnode); + void (* invalidate) (GtkCssNode *cssnode, + GtkCssChange change); }; GType gtk_css_node_get_type (void) G_GNUC_CONST; @@ -59,26 +61,26 @@ GtkCssNode * gtk_css_node_get_parent (GtkCssNode * void gtk_css_node_set_widget_type (GtkCssNode *cssnode, GType widget_type); GType gtk_css_node_get_widget_type (GtkCssNode *cssnode); -gboolean gtk_css_node_set_id (GtkCssNode *cssnode, +void gtk_css_node_set_id (GtkCssNode *cssnode, const char *id); const char * gtk_css_node_get_id (GtkCssNode *cssnode); -gboolean gtk_css_node_set_state (GtkCssNode *cssnode, +void gtk_css_node_set_state (GtkCssNode *cssnode, GtkStateFlags state_flags); GtkStateFlags gtk_css_node_get_state (GtkCssNode *cssnode); void gtk_css_node_set_junction_sides (GtkCssNode *cssnode, GtkJunctionSides junction_sides); GtkJunctionSides gtk_css_node_get_junction_sides (GtkCssNode *cssnode); -gboolean gtk_css_node_add_class (GtkCssNode *cssnode, +void gtk_css_node_add_class (GtkCssNode *cssnode, GQuark style_class); -gboolean gtk_css_node_remove_class (GtkCssNode *cssnode, +void gtk_css_node_remove_class (GtkCssNode *cssnode, GQuark style_class); gboolean gtk_css_node_has_class (GtkCssNode *cssnode, GQuark style_class); GList * gtk_css_node_list_classes (GtkCssNode *cssnode); -gboolean gtk_css_node_add_region (GtkCssNode *cssnode, +void gtk_css_node_add_region (GtkCssNode *cssnode, GQuark region, GtkRegionFlags flags); -gboolean gtk_css_node_remove_region (GtkCssNode *cssnode, +void gtk_css_node_remove_region (GtkCssNode *cssnode, GQuark region); gboolean gtk_css_node_has_region (GtkCssNode *cssnode, GQuark region, @@ -94,6 +96,8 @@ GtkCssStyle * gtk_css_node_get_style (GtkCssNode * void gtk_css_node_set_style (GtkCssNode *cssnode, GtkCssStyle *style); +void gtk_css_node_invalidate (GtkCssNode *cssnode, + GtkCssChange change); GtkWidgetPath * gtk_css_node_create_widget_path (GtkCssNode *cssnode); const GtkWidgetPath * gtk_css_node_get_widget_path (GtkCssNode *cssnode); |