diff options
author | Alexander Larsson <alexl@redhat.com> | 2013-06-24 12:35:39 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2013-07-03 14:39:26 +0200 |
commit | 91a268f00e26448325cacf81536cfe2ed30a52d1 (patch) | |
tree | 95a443fb44259fc3d9d6c8b916839d42c606f9f4 /gtk/gtkstylecontext.h | |
parent | 1d0bb3e010f397d89e03f2a8129d7a0f37ea5966 (diff) | |
download | gtk+-91a268f00e26448325cacf81536cfe2ed30a52d1.tar.gz |
stylecontext: add gtk_render_icon_surface
This draws an icon from a cairo_surface. We want to use this more rather
than render_icon as this means we can skip the pixbuf to surface
conversion (including allocation and alpha premultiplication) at
render time, plus we can use create_similar_image which may allow
faster rendering.
Diffstat (limited to 'gtk/gtkstylecontext.h')
-rw-r--r-- | gtk/gtkstylecontext.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkstylecontext.h b/gtk/gtkstylecontext.h index ddc30a99f4..a72b28cafe 100644 --- a/gtk/gtkstylecontext.h +++ b/gtk/gtkstylecontext.h @@ -1090,6 +1090,12 @@ void gtk_render_icon (GtkStyleContext *context, GdkPixbuf *pixbuf, gdouble x, gdouble y); +GDK_AVAILABLE_IN_3_10 +void gtk_render_icon_surface (GtkStyleContext *context, + cairo_t *cr, + cairo_surface_t *surface, + gdouble x, + gdouble y); GDK_AVAILABLE_IN_3_4 void gtk_render_insertion_cursor (GtkStyleContext *context, |