render_icon_pixbuf


Description:

[ Version ( since = "3.0" ) ]
public Pixbuf render_icon_pixbuf (StyleContext context, IconSize size)

Renders an icon using render_icon_pixbuf.

Note:

Use IconTheme instead.

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

context

a StyleContext

size

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

Returns:

a Pixbuf to be displayed