summaryrefslogtreecommitdiff
path: root/gtk/gtksnapshotprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-11-08 01:42:06 +0100
committerBenjamin Otte <otte@redhat.com>2016-11-15 17:48:45 +0100
commitbb9626dc292edbd7a624c9b0ce921c2767612ba9 (patch)
tree841e2f3d3e14e6897268ec5e753e5a66b12a4c98 /gtk/gtksnapshotprivate.h
parentb1154be1c4210c095760555af9f4f3f0058f4903 (diff)
downloadgtk+-bb9626dc292edbd7a624c9b0ce921c2767612ba9.tar.gz
window: Implement snapshot()
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