render_icon


Description:

[ CCode ( cname = "gtk_render_icon" ) ]
[ Version ( since = "3.2" ) ]
public void render_icon (Context cr, 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 render_icon_surface instead, if you already have a Cairo surface.

Parameters:

cr

a Context

pixbuf

a Pixbuf containing the icon to draw

x

X position for the pixbuf

y

Y position for the pixbuf

context

a StyleContext