renderIcon

fnvoid renderIcon(gtk.style_context.StyleContext context, cairo.context.Context cr, gdkpixbuf.pixbuf.Pixbuf pixbuf, double x, double y)

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

This function will render the icon in pixbuf at exactly its size, regardless of scaling factors, which may not be appropriate when drawing on displays with high pixel densities.

You probably want to use [gtk.global.renderIconSurface] instead, if you already have a Cairo surface.

Parameters

contexta #GtkStyleContext
cra #cairo_t
pixbufa #GdkPixbuf containing the icon to draw
xX position for the pixbuf
yY position for the pixbuf