Picture

constructor()

Creates a new empty GtkPicture widget.

Return

a newly created GtkPicture widget.


constructor(file: <Error class: unknown class>? = null)

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

file

a GFile


constructor(filename: String? = null)

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

filename

a filename


constructor(paintable: <Error class: unknown class>? = null)

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

paintable

a GdkPaintable


constructor(pixbuf: <Error class: unknown class>? = null)

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

pixbuf

a GdkPixbuf


constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)