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 /gtk/gtksnapshot.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 'gtk/gtksnapshot.h')
-rw-r--r-- | gtk/gtksnapshot.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gtk/gtksnapshot.h b/gtk/gtksnapshot.h index e79d7134db..6acb5aa50a 100644 --- a/gtk/gtksnapshot.h +++ b/gtk/gtksnapshot.h @@ -50,15 +50,13 @@ GDK_AVAILABLE_IN_3_90 void gtk_snapshot_pop (GtkSnapshot *snapshot); GDK_AVAILABLE_IN_3_90 -void gtk_snapshot_set_transform (GtkSnapshot *snapshot, - const graphene_matrix_t *transform); -GDK_AVAILABLE_IN_3_90 -void gtk_snapshot_transform (GtkSnapshot *snapshot, - const graphene_matrix_t *transform); -GDK_AVAILABLE_IN_3_90 void gtk_snapshot_translate_2d (GtkSnapshot *snapshot, int x, int y); +GDK_AVAILABLE_IN_3_90 +void gtk_snapshot_get_offset (GtkSnapshot *snapshot, + double *x, + double *y); GDK_AVAILABLE_IN_3_90 void gtk_snapshot_append_node (GtkSnapshot *snapshot, |