Window


Description:

[ CCode ( has_construct_function = false , type = "GtkWidget*" ) ]
public Window ()

Creates a new `GtkWindow`.

To get an undecorated window (no window borders), use [method@Gtk.Window.set_decorated].

All top-level windows created by Window are stored in an internal top-level window list. This list can be obtained from [func@Gtk.Window.list_toplevels]. Due to GTK keeping a reference to the window internally, Window does not return a reference to the caller.

To delete a `GtkWindow`, call [method@Gtk.Window.destroy].

Returns:

a new `GtkWindow`.