render_icon_pixbuf


Description:

[ Version ( deprecated = true , deprecated_since = "3.10" , since = "3.0" ) ]
public Pixbuf? render_icon_pixbuf (string stock_id, IconSize size)

Warning: render_icon_pixbuf is deprecated since 3.10.

A convenience function that uses the theme engine and style settings for this to look up stock_id and render it to a pixbuf.

Note:

Use load_icon instead.

stock_id should be a stock icon ID such as OPEN or OK. size should be a size such as MENU.

The pixels in the returned Pixbuf are shared with the rest of the application and should not be modified. The pixbuf should be freed after use with unref.

Parameters:

this

a Widget

stock_id

a stock ID

size

a stock size (IconSize). A size of `(GtkIconSize)-1` means render at the size of the source and don’t scale (if there are multiple source sizes, GTK+ picks one of the available sizes).

Returns:

a new pixbuf, or null if the stock ID wasn’t known




2022 vala-language.org