From 67fb129ed7db377bd179757a77514c9ce0d3557f Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 13 Dec 2016 00:11:06 +0100 Subject: 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. --- gtk/gtksnapshot.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'gtk/gtksnapshot.h') diff --git a/gtk/gtksnapshot.h b/gtk/gtksnapshot.h index e79d7134db..6acb5aa50a 100644 --- a/gtk/gtksnapshot.h +++ b/gtk/gtksnapshot.h @@ -49,16 +49,14 @@ void gtk_snapshot_push_node (GtkSnapshot 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, -- cgit v1.2.1