render_icon_pixbuf

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

Renders the icon specified by source at the given size, returning the result in a pixbuf.

Since 3.0

context

a Gtk.StyleContext

source

the Gtk.IconSource specifying the icon to render

size

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

Returns

a newly-created GdkPixbuf.Pixbuf containing the rendered icon