Style.renderIcon

gdkpixbuf.pixbuf.Pixbuf renderIcon(gtk.icon_source.IconSource source, gtk.types.TextDirection direction, gtk.types.StateType state, gtk.types.IconSize size, gtk.widget.Widget widget = null, string detail = null)

Renders the icon specified by source at the given size according to the given parameters and returns the result in a pixbuf.

Parameters

sourcethe #GtkIconSource specifying the icon to render
directiona text direction
statea state
sizethe size to render the icon at (#GtkIconSize). A size of (GtkIconSize)-1 means render at the size of the source and don’t scale.
widgetthe widget
detaila style detail

Returns

a newly-created #GdkPixbuf

containing the rendered icon

Deprecated

Use [gtk.global.renderIconPixbuf] instead