render_icon_pixbuf


Description:

[ Version ( deprecated_since = "vala-0.16" , deprecated = true , replacement = "StyleContext.render_icon_pixbuf" ) ]
public Pixbuf render_icon_pixbuf (StyleContext context, IconSource source, IconSize size)

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

Renders the icon specified by source at the given size, returning the result in a pixbuf.

Note:

Use load_icon instead.

Parameters:

context

a StyleContext

source

the IconSource specifying the icon to render

size

the size (IconSize) to render the icon at. A size of `(GtkIconSize) -1` means render at the size of the source and don’t scale.

Returns:

a newly-created Pixbuf containing the rendered icon


Namespace: Gtk
Package: gtk+-3.0