diff options
author | Benjamin Otte <otte@redhat.com> | 2016-12-13 00:11:06 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-12-20 18:01:10 +0100 |
commit | 67fb129ed7db377bd179757a77514c9ce0d3557f (patch) | |
tree | c4e1edd4635e05e8f2064a3f6433ed232fd9d94c /gsk/gskrendernode.h | |
parent | 19753062c4e593507472638ae8a3bc0bd435e6f2 (diff) | |
download | gtk+-67fb129ed7db377bd179757a77514c9ce0d3557f.tar.gz |
gsk: gsk_render_node_set_transform() => GskTransformNode
Instead of having a setter for the transform, have a GskTransformNode.
Most of the oprations that GTK does do not require a transform, so it
doesn't make sense to have it as a primary attribute.
Also, changing the transform requires updating the uniforms of the GL
renderer, so we're happy if we can avoid that.
Diffstat (limited to 'gsk/gskrendernode.h')
-rw-r--r-- | gsk/gskrendernode.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gsk/gskrendernode.h b/gsk/gskrendernode.h index 70d26a553e..b98bd56ce6 100644 --- a/gsk/gskrendernode.h +++ b/gsk/gskrendernode.h @@ -66,9 +66,12 @@ GskRenderNode * gsk_container_node_get_child (GskRenderNode guint idx); GDK_AVAILABLE_IN_3_90 -void gsk_render_node_set_transform (GskRenderNode *node, +GskRenderNode * gsk_transform_node_new (GskRenderNode *child, const graphene_matrix_t *transform); GDK_AVAILABLE_IN_3_90 +GskRenderNode * gsk_transform_node_get_child (GskRenderNode *node); + +GDK_AVAILABLE_IN_3_90 void gsk_render_node_set_opacity (GskRenderNode *node, double opacity); |