Picture
Creates a new empty GtkPicture
widget.
Return
a newly created GtkPicture
widget.
Creates a new GtkPicture
displaying the given @file.
If the file isn’t found or can’t be loaded, the resulting GtkPicture
is empty.
If you need to detect failures to load the file, use ctor@Gdk.Texture.new_from_file to load the file yourself, then create the GtkPicture
from the texture.
Return
a new GtkPicture
Parameters
a GFile
Creates a new GtkPicture
displaying the file @filename.
This is a utility function that calls ctor@Gtk.Picture.new_for_file. See that function for details.
Return
a new GtkPicture
Parameters
a filename
Creates a new GtkPicture
displaying @paintable.
The GtkPicture
will track changes to the @paintable and update its size and contents in response to it.
Return
a new GtkPicture
Parameters
a GdkPaintable
Creates a new GtkPicture
displaying @pixbuf.
This is a utility function that calls ctor@Gtk.Picture.new_for_paintable, See that function for details.
The pixbuf must not be modified after passing it to this function.
Return
a new GtkPicture
Parameters
a GdkPixbuf