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 _getGType() static nothrow
GType _gType() @property nothrow
ApplicationWindow self() nothrowReturns `this`, for use in `with` statements.
ApplicationWindowGidBuilder builder() static nothrowGet builder for [adw.application_window.ApplicationWindow] Returns: New builder object
gtk.widget.Widget content() @property nothrowGet `content` property. Returns: The content widget.
void content(gtk.widget.Widget propval) @property nothrowSet `content` property. Params: propval = The content widget.
adw.breakpoint.Breakpoint currentBreakpoint() @property nothrowGet `currentBreakpoint` property. Returns: The current breakpoint.
gio.list_model.ListModel dialogs() @property nothrowGet `dialogs` property. Returns: The open dialogs.
adw.dialog.Dialog visibleDialog() @property nothrowGet `visibleDialog` property. Returns: The currently visible dialog
void addBreakpoint(adw.breakpoint.Breakpoint breakpoint) nothrowAdds breakpoint to self.
gtk.widget.Widget getContent() nothrowGets the content widget of self.
adw.breakpoint.Breakpoint getCurrentBreakpoint() nothrowGets the current breakpoint. Returns: the current breakpoint
gio.list_model.ListModel getDialogs() nothrowReturns a [gio.list_model.ListModel] that contains the open dialogs of self.
adw.dialog.Dialog getVisibleDialog() nothrowReturns the currently visible dialog in self, if there's one. Returns: the visible dialog
void setContent(gtk.widget.Widget content = null) nothrowSets 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) nothrowSet `content` property. Params: propval = The content widget.