diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2016-07-27 09:40:29 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2016-10-18 11:49:09 +0100 |
commit | cd0de3f87cd40ec4ce150976d85e0491dbccf374 (patch) | |
tree | e6877bce95ad81ddbedafd2459fada20ed4b70a3 /gtk/gtkcontainerprivate.h | |
parent | 43904892bc00d0cce98e30932aa77b10a47b5cd1 (diff) | |
download | gtk+-cd0de3f87cd40ec4ce150976d85e0491dbccf374.tar.gz |
gtk: Add GtkContainer API to gather render nodes
We cannot implement GtkWidgetClass.get_render_node() in GtkContainer
without breaking the fallback path that renders a widget to a single
render node rasterization. For GtkContainer subclasses we should provide
a simple API, similar to gtk_container_propagate_draw(), that gathers
all the render nodes for each child.
Diffstat (limited to 'gtk/gtkcontainerprivate.h')
-rw-r--r-- | gtk/gtkcontainerprivate.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkcontainerprivate.h b/gtk/gtkcontainerprivate.h index e581df958b..203059106e 100644 --- a/gtk/gtkcontainerprivate.h +++ b/gtk/gtkcontainerprivate.h @@ -21,6 +21,7 @@ #define __GTK_CONTAINER_PRIVATE_H__ #include "gtkcontainer.h" +#include <gsk/gsk.h> G_BEGIN_DECLS @@ -42,6 +43,10 @@ void _gtk_container_maybe_start_idle_sizer (GtkContainer *container); void gtk_container_get_children_clip (GtkContainer *container, GtkAllocation *out_clip); +void gtk_container_propagate_render_node (GtkContainer *container, + GskRenderer *renderer, + GskRenderNode *parent_node); + G_END_DECLS #endif /* __GTK_CONTAINER_PRIVATE_H__ */ |