IconSet.renderIcon

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

Renders an icon using [gtk.style.Style.renderIcon]. In most cases, [gtk.widget.Widget.renderIcon] is better, since it automatically provides most of the arguments from the current widget settings. This function never returns null; if the icon can’t be rendered (perhaps because an image file fails to load), a default "missing image" icon will be returned instead.

Parameters

stylea #GtkStyle associated with widget, or null
directiontext direction
statewidget state
sizeicon size (#GtkIconSize). A size of (GtkIconSize)-1 means render at the size of the source and don’t scale.
widgetwidget that will display the icon, or null. The only use that is typically made of this is to determine the appropriate #GdkScreen.
detaildetail to pass to the theme engine, or null. Note that passing a detail of anything but null will disable caching.

Returns

a #GdkPixbuf to be displayed

Deprecated

Use [gtk.icon_set.IconSet.renderIconPixbuf] instead