diff options
author | Benjamin Otte <otte@redhat.com> | 2016-11-13 16:16:39 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-11-15 17:48:45 +0100 |
commit | 79d2d0e40d35c2b22b4e9005486af6823b09c0e0 (patch) | |
tree | 2cce19241480a8a582337279499c7e45631cff3a /gtk/gtkrenderborderprivate.h | |
parent | 9006e697fb5ff6b91c767a5ebcdf19cffbf1df48 (diff) | |
download | gtk+-79d2d0e40d35c2b22b4e9005486af6823b09c0e0.tar.gz |
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().
Diffstat (limited to 'gtk/gtkrenderborderprivate.h')
-rw-r--r-- | gtk/gtkrenderborderprivate.h | 10 |
1 files changed, 10 insertions, 0 deletions
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, |