renderIcon
fn
void 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
context | a #GtkStyleContext |
cr | a #cairo_t |
pixbuf | a #GdkPixbuf containing the icon to draw |
x | X position for the pixbuf |
y | Y position for the pixbuf |