renderIcon

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

context gtk.style_context.StyleContext

a #GtkStyleContext

cr cairo.context.Context

a #cairo_t

pixbuf gdkpixbuf.pixbuf.Pixbuf

a #GdkPixbuf containing the icon to draw

x double

X position for the pixbuf

y double

Y position for the pixbuf