adw.application_window

Module for ApplicationWindow class

Types 3

A freeform application window.

application-window

adw.application_window.ApplicationWindow is a gtk.application_window.ApplicationWindow subclass providing the same features as adw.window.Window.

See adw.window.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
GType _gType() @property
ApplicationWindow self()Returns `this`, for use in `with` statements.
ApplicationWindowGidBuilder builder()Get builder for [adw.application_window.ApplicationWindow] Returns: New builder object
gtk.widget.Widget content() @propertyGet `content` property. Returns: The content widget.
void content(gtk.widget.Widget propval) @propertySet `content` property. Params: propval = The content widget.
adw.breakpoint.Breakpoint currentBreakpoint() @propertyGet `currentBreakpoint` property. Returns: The current breakpoint.
gio.list_model.ListModel dialogs() @propertyGet `dialogs` property. Returns: The open dialogs.
adw.dialog.Dialog visibleDialog() @propertyGet `visibleDialog` property. Returns: The currently visible dialog
void 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 breakpoint
gio.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 dialog
void setContent(gtk.widget.Widget content = null)Sets the content widget of self.
Constructors
this(void * ptr, Flag!"Take" take)
this(gtk.application.Application app)Creates a new [adw.application_window.ApplicationWindow] for app.

Fluent builder implementation template for adw.application_window.ApplicationWindow

Methods
T content(gtk.widget.Widget propval)Set `content` property. Params: propval = The content widget.