render_icon

function render_icon(context:Gtk.StyleContext, cr:cairo.Context, pixbuf:GdkPixbuf.Pixbuf, x:Number, y:Number):void {
    // Gjs wrapper for gtk_render_icon()
}

Renders the icon in pixbuf at the specified x and y coordinates.

Since 3.2

context

a Gtk.StyleContext

cr

a #cairo_t

pixbuf

a GdkPixbuf.Pixbuf containing the icon to draw

x

X position for the pixbuf

y

Y position for the pixbuf