render_icon


Description:

public virtual Pixbuf render_icon (IconSource source, TextDirection direction, StateType state, int size, Widget? widget, string? detail)

Renders the icon specified by source at the given size according to the given parameters and returns the result in a pixbuf.

Note:

Use render_icon_pixbuf instead

Parameters:

this

a Style

source

the IconSource specifying the icon to render

direction

a text direction

state

a state

size

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

widget

the widget

detail

a style detail

Returns:

a newly-created Pixbuf containing the rendered icon




2022 vala-language.org