Style.renderIcon

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

Parameters

source IconSource

the GtkIconSource specifying the icon to render

direction GtkTextDirection

a text direction

state GtkStateType

a state

size GtkIconSize

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

widget Widget

the widget. [allow-none]

detail string

a style detail. [allow-none]

Return Value

Type: Pixbuf

a newly-created GdkPixbuf containing the rendered icon. [transfer full]

Meta