renderIconPixbuf
fn
gdkpixbuf.pixbuf.Pixbuf renderIconPixbuf(gtk.style_context.StyleContext context, gtk.icon_source.IconSource source, gtk.types.IconSize size)Renders the icon specified by source at the given size, returning the result in a pixbuf.
Parameters
context | a #GtkStyleContext |
source | the #GtkIconSource specifying the icon to render |
size | the size (#GtkIconSize) to render the icon at. A size of (GtkIconSize) -1 means render at the size of the source and don’t scale. |
Returns
a newly-created #GdkPixbuf containing the rendered icon
Deprecated
Use [gtk.icon_theme.IconTheme.loadIcon] instead.