adw.application_window
Module for [ApplicationWindow] class
Types 3
A freeform application window.
[adw.application_window.ApplicationWindow] is a [gtk.application_window.ApplicationWindow] subclass providing the same features as class@Window.
See class@Window for details.
Example of an [adw.application_window.ApplicationWindow] UI definition:
<object class="AdwApplicationWindow">
<property name="content">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar"/>
</child>
<property name="content">
<!-- ... -->
</property>
</object>
</property>
</object>Using [gtk.application.Application.menubar] is not supported and may result in visual glitches.
Methods
ApplicationWindow self()Returns `this`, for use in `with` statements.ApplicationWindowGidBuilder builder()Get builder for [adw.application_window.ApplicationWindow] Returns: New builder objectvoid content(gtk.widget.Widget propval) @propertySet `content` property. Params: propval = The content widget.adw.breakpoint.Breakpoint currentBreakpoint() @propertyGet `currentBreakpoint` property. Returns: The current breakpoint.adw.dialog.Dialog visibleDialog() @propertyGet `visibleDialog` property. Returns: The currently visible dialogvoid addBreakpoint(adw.breakpoint.Breakpoint breakpoint)Adds breakpoint to self.gtk.widget.Widget getContent()Gets the content widget of self.adw.breakpoint.Breakpoint getCurrentBreakpoint()Gets the current breakpoint. Returns: the current breakpointgio.list_model.ListModel getDialogs()Returns a [gio.list_model.ListModel] that contains the open dialogs of self.adw.dialog.Dialog getVisibleDialog()Returns the currently visible dialog in self, if there's one. Returns: the visible dialogvoid setContent(gtk.widget.Widget content = null)Sets the content widget of self.Constructors
this(gtk.application.Application app)Creates a new [adw.application_window.ApplicationWindow] for app.Methods
T content(gtk.widget.Widget propval)Set `content` property. Params: propval = The content widget.Fluent builder for [adw.application_window.ApplicationWindow]
Methods