Picture.for_pixbuf


Description:

[ CCode ( has_construct_function = false , type = "GtkWidget*" ) ]
public Picture.for_pixbuf (Pixbuf? pixbuf)

Creates a new `GtkPicture` displaying pixbuf.

This is a utility function that calls [[email protected]_for_paintable], See that function for details.

The pixbuf must not be modified after passing it to this function.

Parameters:

pixbuf

a `GdkPixbuf`

Returns:

a new `GtkPicture`




2022 vala-language.org