IconSet.renderIcon

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.

More...

Parameters

style gtk.style.Style

a #GtkStyle associated with widget, or null

direction gtk.types.TextDirection

text direction

state gtk.types.StateType

widget state

size gtk.types.IconSize

icon size (#GtkIconSize). A size of (GtkIconSize)-1 means render at the size of the source and don’t scale.

widget gtk.widget.Widget

widget that will display the icon, or null. The only use that is typically made of this is to determine the appropriate #GdkScreen.

detail string

detail to pass to the theme engine, or null. Note that passing a detail of anything but null will disable caching.

Return Value

Type: gdkpixbuf.pixbuf.Pixbuf

a #GdkPixbuf to be displayed

Detailed Description