From 79d2d0e40d35c2b22b4e9005486af6823b09c0e0 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 13 Nov 2016 16:16:39 +0100 Subject: snapshot: Add gtk_snapshot_render_background() and gtk_snapshot_render_frame() to be direct replacements for the old gtk_render_*() functions. Use them to replace Cairo usage completely in gtk_window_snapshot(). --- gtk/gtkrenderborderprivate.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gtk/gtkrenderborderprivate.h') diff --git a/gtk/gtkrenderborderprivate.h b/gtk/gtkrenderborderprivate.h index b72010e985..e05a664c7d 100644 --- a/gtk/gtkrenderborderprivate.h +++ b/gtk/gtkrenderborderprivate.h @@ -25,6 +25,7 @@ #include "gtkborder.h" #include "gtkcssimageprivate.h" #include "gtkcssvalueprivate.h" +#include "gtksnapshot.h" G_BEGIN_DECLS @@ -43,6 +44,11 @@ gboolean gtk_css_style_render_border_get_clip (GtkCssStyle gdouble width, gdouble height, GdkRectangle *out_clip) G_GNUC_WARN_UNUSED_RESULT; +void gtk_css_style_snapshot_border (GtkCssStyle *style, + GtkSnapshot *state, + gdouble width, + gdouble height, + GtkJunctionSides junction); gboolean gtk_css_style_render_has_outline (GtkCssStyle *style); void gtk_css_style_render_outline (GtkCssStyle *style, @@ -51,6 +57,10 @@ void gtk_css_style_render_outline (GtkCssStyle gdouble y, gdouble width, gdouble height); +void gtk_css_style_snapshot_outline (GtkCssStyle *style, + GtkSnapshot *state, + gdouble width, + gdouble height); gboolean gtk_css_style_render_outline_get_clip (GtkCssStyle *style, gdouble x, gdouble y, -- cgit v1.2.1