Style.renderIcon

Warning gtk_style_render_icon has been deprecated since version 3.0 and should not be used in newly-written code. Use gtk_render_icon_pixbuf() instead 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

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

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