summaryrefslogtreecommitdiff
path: root/gtk/gtksnapshot.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-01-01 19:52:18 +0100
committerBenjamin Otte <otte@redhat.com>2017-01-01 19:53:36 +0100
commitb993acfe2c7b81e6ed4c35eb4f30bac29f43254e (patch)
treeb55debbc063d8e126e8bfa5c1ee5d4b89be4dd7b /gtk/gtksnapshot.h
parentaa917ce3b77ab3fbf4f9417ddb8801bdf1a3bffc (diff)
downloadgtk+-b993acfe2c7b81e6ed4c35eb4f30bac29f43254e.tar.gz
gsk: Add GskRepeatNode
Also add gtk_snapshot_push_repeat() and use that to draw backgrounds. With that change, CSS background snapshots are created without Cairo nodes.
Diffstat (limited to 'gtk/gtksnapshot.h')
-rw-r--r--gtk/gtksnapshot.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtksnapshot.h b/gtk/gtksnapshot.h
index e7b35b87a3..f03cef7a31 100644
--- a/gtk/gtksnapshot.h
+++ b/gtk/gtksnapshot.h
@@ -58,6 +58,12 @@ void gtk_snapshot_push_color_matrix (GtkSnapshot
const char *name,
...) G_GNUC_PRINTF (4, 5);
GDK_AVAILABLE_IN_3_90
+void gtk_snapshot_push_repeat (GtkSnapshot *snapshot,
+ const graphene_rect_t *bounds,
+ const graphene_rect_t *child_bounds,
+ const char *name,
+ ...) G_GNUC_PRINTF (4, 5);
+GDK_AVAILABLE_IN_3_90
void gtk_snapshot_push_clip (GtkSnapshot *snapshot,
const graphene_rect_t *bounds,
const char *name,