diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2011-06-06 10:23:06 -0400 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-06-09 23:17:09 +0200 |
commit | 2446aef0ea695fd8d4ac9959db6d3106dde77a0b (patch) | |
tree | 8b7d50b587cd25763c5a128796bba0ff05c2bb7c /gtk/gtkthemingengine.h | |
parent | b6b66803c015947472424efad75fdecc254709f9 (diff) | |
download | gtk+-2446aef0ea695fd8d4ac9959db6d3106dde77a0b.tar.gz |
themingengine: add gtk_theming_engine_render_icon()
Renders a pixbuf in the provided rectangle, applying effects such as
'icon-shadow'.
Diffstat (limited to 'gtk/gtkthemingengine.h')
-rw-r--r-- | gtk/gtkthemingengine.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk/gtkthemingengine.h b/gtk/gtkthemingengine.h index b1d4b95bb3..148bbd2773 100644 --- a/gtk/gtkthemingengine.h +++ b/gtk/gtkthemingengine.h @@ -69,6 +69,7 @@ struct _GtkThemingEngine * @render_activity: Renders an area displaying activity, such as in #GtkSpinner, * or #GtkProgressBar. * @render_icon_pixbuf: Renders an icon as a #GdkPixbuf. + * @render_icon: Renders an icon given as a #GdkPixbuf. * * Base class for theming engines. */ @@ -168,9 +169,14 @@ struct _GtkThemingEngineClass GdkPixbuf * (* render_icon_pixbuf) (GtkThemingEngine *engine, const GtkIconSource *source, GtkIconSize size); + void (* render_icon) (GtkThemingEngine *engine, + cairo_t *cr, + GdkPixbuf *pixbuf, + gdouble x, + gdouble y); /*< private >*/ - gpointer padding[16]; + gpointer padding[15]; }; GType gtk_theming_engine_get_type (void) G_GNUC_CONST; |