summaryrefslogtreecommitdiff
path: root/gtk/gtksnapshotprivate.h
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtksnapshotprivate.h')
-rw-r--r--gtk/gtksnapshotprivate.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk/gtksnapshotprivate.h b/gtk/gtksnapshotprivate.h
index 5b238b74d2..bb8df07964 100644
--- a/gtk/gtksnapshotprivate.h
+++ b/gtk/gtksnapshotprivate.h
@@ -33,9 +33,19 @@ struct _GtkSnapshot {
void gtk_snapshot_init (GtkSnapshot *state,
const GtkSnapshot *parent,
const graphene_matrix_t *transform);
+void gtk_snapshot_init_translate (GtkSnapshot *state,
+ const GtkSnapshot *parent,
+ int x,
+ int y);
void gtk_snapshot_init_root (GtkSnapshot *state,
GskRenderer *renderer);
+static inline const graphene_matrix_t *
+gtk_snapshot_get_transform (const GtkSnapshot *snapshot)
+{
+ return &snapshot->transform;
+}
+
void gtk_snapshot_finish (GtkSnapshot *state);
G_END_DECLS