It derives from
<GtkApplicationWindow>.
A freeform application window.
<AdwApplicationWindow> is a
<GtkApplicationWindow> subclass
providing the same features as Window.
See Window for details.
Example of an <AdwApplicationWindow> 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 application:menubar
is not supported and may result in visual glitches.
parent-instanceWhether adaptive preview is currently open.
Adaptive preview is a debugging tool used for testing the window contents at specific screen sizes, simulating mobile environment.
Adaptive preview can always be accessed from inspector. This function allows applications to open it manually.
Most applications should not use this property.
Its value is a boolean.
Set it with (set! (application-window:adaptive-preview self)
value).
The content widget.
This property should always be used instead of window:child.
Its value is a <GtkWidget>, or #f.
Set it with (set! (application-window:content self) value).
The current breakpoint.
Its value is a <AdwBreakpoint>, or #f.
It is read only.
The open dialogs.
Its value is a <GListModel>, or #f.
It is read only.
The currently visible dialog
Its value is a <AdwDialog>, or #f.
It is read only.
Adds breakpoint to self.
Passed: a <AdwApplicationWindow>.
an application window
Passed: a <AdwBreakpoint>.
the breakpoint to add
Gets whether adaptive preview for self is currently open.
Passed: a <AdwApplicationWindow>.
an application window
Returned: a boolean.
whether adaptive preview is open.
Gets the content widget of self.
This method should always be used instead of window:get-child.
Passed: a <AdwApplicationWindow>.
an application window
Returned: a <GtkWidget>, or #f.
the content widget of self
Gets the current breakpoint.
Passed: a <AdwApplicationWindow>.
an application window
Returned: a <AdwBreakpoint>, or #f.
the current breakpoint
Returns a <GListModel> that contains the
open dialogs of self.
This can be used to keep an up-to-date view.
Passed: a <AdwApplicationWindow>.
an application window
Returned: a <GListModel>.
a list model for the dialogs of self
Returns the currently visible dialog in self, if there’s one.
Passed: a <AdwApplicationWindow>.
an application window
Returned: a <AdwDialog>, or #f.
the visible dialog
Creates a new <AdwApplicationWindow> for
app.
Passed: a <GtkApplication>.
an application instance
Returned: a <GtkWidget>.
the newly created <AdwApplicationWindow>
Sets whether adaptive preview for self is currently open.
Adaptive preview is a debugging tool used for testing the window contents at specific screen sizes, simulating mobile environment.
Adaptive preview can always be accessed from inspector. This function allows applications to open it manually.
Most applications should not use this function.
Passed: a <AdwApplicationWindow>.
an application window
Passed: a boolean.
whether to open adaptive preview
Sets the content widget of self.
This method should always be used instead of window:set-child.
Passed: a <AdwApplicationWindow>.
an application window
Passed, or left out: a <GtkWidget>, or
#f.
the content widget