Gtk.IconSet.prototype.render_icon_pixbuf

function render_icon_pixbuf(context:Gtk.StyleContext, size:Number):GdkPixbuf.Pixbuf {
    // Gjs wrapper for gtk_icon_set_render_icon_pixbuf()
}

Renders an icon using render_icon_pixbuf. 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.

Since 3.0

context

a Gtk.StyleContext

size

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

Returns

a GdkPixbuf.Pixbuf to be displayed