summaryrefslogtreecommitdiff
path: root/gtk/gtksnapshotprivate.h
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-01-31 08:05:34 +0100
committerMatthias Clasen <mclasen@redhat.com>2020-02-07 13:16:32 -0500
commitbf8fb2c1a522fa46fbe1b86e5da16158d7c691fe (patch)
tree4573cdcfca59700224f35dae4b7fb9ceea1ec51b /gtk/gtksnapshotprivate.h
parentb7ee2cbc289b4ab8a950cd77bdcd69a6f13932a7 (diff)
downloadgtk+-bf8fb2c1a522fa46fbe1b86e5da16158d7c691fe.tar.gz
snapshot: Add _push_collect() and _pop_collect()
These will replace the previous gtk_snapshot_new_with_parent(), which allocated an entirely new GObject just to push()/pop() some state. This is already a problem but will be more important in the future as we start using this more.
Diffstat (limited to 'gtk/gtksnapshotprivate.h')
-rw-r--r--gtk/gtksnapshotprivate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtksnapshotprivate.h b/gtk/gtksnapshotprivate.h
index e02531e1a5..7317b4ad59 100644
--- a/gtk/gtksnapshotprivate.h
+++ b/gtk/gtksnapshotprivate.h
@@ -104,6 +104,10 @@ void gtk_snapshot_append_text (GtkSnapshot
const GdkRGBA *color,
float x,
float y);
+
+void gtk_snapshot_push_collect (GtkSnapshot *snapshot);
+GskRenderNode * gtk_snapshot_pop_collect (GtkSnapshot *snapshot);
+
G_END_DECLS
#endif /* __GTK_SNAPSHOT_PRIVATE_H__ */