diff options
author | Benjamin Otte <otte@redhat.com> | 2016-12-13 02:33:15 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-12-20 18:01:10 +0100 |
commit | 02131d590e2f4bdf9d2f487e619a3f08c1cf178e (patch) | |
tree | 0a2dd4fb6522b9d75ae31b75d6c11fe95fe0c1df /gsk/gskrendernode.h | |
parent | ca80e9decf49acb042984bc07348d2fc93c03997 (diff) | |
download | gtk+-02131d590e2f4bdf9d2f487e619a3f08c1cf178e.tar.gz |
snapshot: Change how gtk_snapshot_push/pop works
Instead of appending a container node and adding the nodes to it as they
come in, we now collect the nodes until gtk_snapshot_pop() is called and
then hand them out in a container node.
The caller of gtk_snapshot_push() is then responsible for doing whatever
he wants with the created node.
Another addigion is the keep_coordinates flag to gtk_snapshot_push()
which allows callers to keep the current offset and clip region or
discard it. Discarding is useful when doing transforms, keeping it is
useful when inserting effect nodes (like the ones I'm about to add).
Diffstat (limited to 'gsk/gskrendernode.h')
-rw-r--r-- | gsk/gskrendernode.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gsk/gskrendernode.h b/gsk/gskrendernode.h index b98bd56ce6..93a100eaf6 100644 --- a/gsk/gskrendernode.h +++ b/gsk/gskrendernode.h @@ -55,15 +55,13 @@ cairo_t * gsk_cairo_node_get_draw_context (GskRenderNode GskRenderer *renderer); GDK_AVAILABLE_IN_3_90 -GskRenderNode * gsk_container_node_new (void); +GskRenderNode * gsk_container_node_new (GskRenderNode **children, + guint n_children); GDK_AVAILABLE_IN_3_90 -GskRenderNode * gsk_container_node_append_child (GskRenderNode *node, - GskRenderNode *child); +guint gsk_container_node_get_n_children (GskRenderNode *node); GDK_AVAILABLE_IN_3_90 -guint gsk_container_node_get_n_children (GskRenderNode *node); -GDK_AVAILABLE_IN_3_90 -GskRenderNode * gsk_container_node_get_child (GskRenderNode *node, - guint idx); +GskRenderNode * gsk_container_node_get_child (GskRenderNode *node, + guint idx); GDK_AVAILABLE_IN_3_90 GskRenderNode * gsk_transform_node_new (GskRenderNode *child, |