render_icon


Description:

[ Version ( deprecated_since = "vala-0.16" , deprecated = true , replacement = "StyleContext.render_icon" ) ]
public void render_icon (StyleContext context, Context cr, Pixbuf pixbuf, double x, double y)

Warning: render_icon is deprecated since "vala-0.16". Use Gtk.StyleContext.render_icon.

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:

context

a StyleContext

cr

a Context

pixbuf

a Pixbuf containing the icon to draw

x

X position for the pixbuf

y

Y position for the pixbuf


Namespace: Gtk
Package: gtk+-3.0