Creates a new adw.window.Window.
Adds breakpoint to self.
Gets the content widget of self.
Gets the current breakpoint.
Returns a gio.list_model.ListModel that contains the open dialogs of self.
Returns the currently visible dialog in self, if there's one.
Sets the content widget of self.
Returns the fallback icon name for windows.
Returns a list of all existing toplevel windows.
Returns a list of all existing toplevel windows.
Sets whether the window should request startup notification.
Sets an icon to be used as fallback.
Opens or closes the interactive debugger.
Requests that the window is closed.
Drop the internal reference GTK holds on toplevel windows.
Asks to place window in the fullscreen state.
Asks to place window in the fullscreen state on the given monitor.
Gets the gtk.application.Application associated with the window.
Gets the child widget of window.
Returns whether the window has been set to have decorations.
Gets the default size of the window.
Returns the default widget for window.
Returns whether the window has been set to have a close button.
Returns whether the window will be destroyed with its transient parent.
Retrieves the current focused widget within the window.
Gets whether “focus rectangles” are supposed to be visible.
Returns the group for window.
Returns whether this window reacts to F10 key presses by activating a menubar it contains.
Returns whether the window will be hidden when the close button is clicked.
Returns the name of the themed icon for the window.
Gets whether mnemonics are supposed to be visible.
Returns whether the window is modal.
Gets the value set by gtk.window.Window.setResizable.
Retrieves the title of the window.
Returns the custom titlebar that has been set with gtk.window.Window.setTitlebar.
Fetches the transient parent for this window.
Returns whether window has an explicit window group.
Returns whether the window is part of the current active toplevel.
Retrieves the current fullscreen state of window.
Retrieves the current maximized state of window.
Retrieves the current suspended state of window.
Asks to maximize window, so that it fills the screen.
Asks to minimize the specified window.
Presents a window to the user.
Presents a window to the user in response to an user interaction.
Sets or unsets the gtk.application.Application associated with the window.
Sets the child widget of window.
Sets whether the window should be decorated.
Sets the default size of a window.
Sets the default widget.
Sets whether the window should be deletable.
If setting is true, then destroying the transient parent of window will also destroy window itself.
Sets the gdk.display.Display where the window is displayed.
Sets the focus widget.
Sets whether “focus rectangles” are supposed to be visible.
Sets whether this window should react to F10 key presses by activating a menubar it contains.
If setting is true, then clicking the close button on the window will not destroy it, but only hide it.
Sets the icon for the window from a named themed icon.
Sets whether mnemonics are supposed to be visible.
Sets a window modal or non-modal.
Sets whether the user can resize a window.
Sets the startup notification ID.
Sets the title of the gtk.window.Window.
Sets a custom titlebar for window.
Dialog windows should be set transient for the main application window they were spawned from. This allows window managers to e.g. keep the dialog on top of the main window, or center the dialog over the main window. gtk.dialog.Dialog.newWithButtons and other convenience functions in GTK will sometimes call gtk.window.Window.setTransientFor on your behalf.
Asks to remove the fullscreen state for window, and return to its previous state.
Asks to unmaximize window.
Asks to unminimize the specified window.
Connect to ActivateDefault signal.
Connect to ActivateFocus signal.
Connect to CloseRequest signal.
Connect to EnableDebugging signal.
Connect to KeysChanged signal.
<object class="AdwWindow"> <property name="width-request">360</property> <property name="height-request">200</property> <property name="content"> <object class="AdwToolbarView"> <child type="top"> <object class="AdwHeaderBar"/> </child> <property name="content"> <!-- ... --> </property> <child type="bottom"> <object class="GtkActionBar" id="bottom_bar"> <property name="revealed">True</property> <property name="visible">False</property> </object> </child> </object> </property> <child> <object class="AdwBreakpoint"> <condition>max-width: 500px</condition> <setter object="bottom_bar" property="visible">True</setter> </object> </child> </object>
Like adw.breakpoint_bin.BreakpointBin, if breakpoints are used, adw.window.Window doesn't have a minimum size, and property@Gtk.Widget:width-request and property@Gtk.Widget:height-request properties must be set manually.
A freeform window.
<picture> <source srcset="window-dark.png" media="(prefers-color-scheme: dark)"> <img src="window.png" alt="window"> </picture>
The adw.window.Window widget is a subclass of gtk.window.Window which has no titlebar area. Instead, class@ToolbarView can be used together with class@HeaderBar or gtk.header_bar.HeaderBar as follows:
Using gtk.window.Window.Widget or gtk.window.Window.Widget is not supported and will result in a crash. Use property@Window:content instead.
Dialogs
adw.window.Window can contain class@Dialog. Use adw.dialog.Dialog.present with the window or a widget within a window to show a dialog.
Breakpoints
adw.window.Window can be used with class@Breakpoint the same way as class@BreakpointBin. Refer to that widget's documentation for details.