Style.renderIcon

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

More...

Parameters

source gtk.icon_source.IconSource

the #GtkIconSource specifying the icon to render

direction gtk.types.TextDirection

a text direction

state gtk.types.StateType

a state

size gtk.types.IconSize

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

widget gtk.widget.Widget

the widget

detail string

a style detail

Return Value

Type: gdkpixbuf.pixbuf.Pixbuf

a newly-created #GdkPixbuf containing the rendered icon

Detailed Description

Deprecated: Use gtk.global.renderIconPixbuf instead