StyleContext.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_render_icon_surface() instead, if you already have a Cairo surface.

class StyleContext
static
void
renderIcon

Parameters

context StyleContext
cr Context
pixbuf Pixbuf

a gdk.Pixbuf containing the icon to draw

x double

X position for the pixbuf

y double

Y position for the pixbuf

Meta