render_icon


Description:

[ Version ( deprecated = true , deprecated_since = "3.0" ) ]
public Pixbuf render_icon (Style? style, TextDirection direction, StateType state, IconSize size, Widget? widget, string? detail)

Warning: render_icon is deprecated since 3.0.

Renders an icon using render_icon.

Note:

Use render_icon_pixbuf instead

In most cases, render_icon 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:

this

a IconSet

style

a Style associated with widget, or null

direction

text direction

state

widget state

size

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

widget

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

detail

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

Returns:

a Pixbuf to be displayed