Class

AdwApplicationWindow

[]

Description [src]

class Adw.ApplicationWindow : Gtk.ApplicationWindow
  implements Gio.ActionGroup, Gio.ActionMap, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Native, Gtk.Root, Gtk.ShortcutManager {
  /* No available fields */
}

A freeform application window.

application-window

AdwApplicationWindow is a GtkApplicationWindow subclass providing the same features as AdwWindow.

See AdwWindow 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 GtkApplication:menubar is not supported and may result in visual glitches.

[]

Hierarchy

hierarchy this AdwApplicationWindow implements_0 GActionGroup this--implements_0 implements_1 GActionMap this--implements_1 implements_2 GtkAccessible this--implements_2 implements_3 GtkBuildable this--implements_3 implements_4 GtkConstraintTarget this--implements_4 implements_5 GtkNative this--implements_5 implements_6 GtkRoot this--implements_6 implements_7 GtkShortcutManager this--implements_7 ancestor_0 GtkApplicationWindow ancestor_0--this ancestor_1 GtkWindow ancestor_1--ancestor_0 ancestor_2 GtkWidget ancestor_2--ancestor_1 ancestor_3 GInitiallyUnowned ancestor_3--ancestor_2 ancestor_4 GObject ancestor_4--ancestor_3
[]

Constructors

adw_application_window_new

Creates a new AdwApplicationWindow for app.

[]

Instance methods

adw_application_window_add_breakpoint

Adds breakpoint to self.

since: 1.4

adw_application_window_get_adaptive_preview

Gets whether adaptive preview for self is currently open.

since: 1.7

adw_application_window_get_content

Gets the content widget of self.

adw_application_window_get_current_breakpoint

Gets the current breakpoint.

since: 1.4

adw_application_window_get_dialogs

Returns a GListModel that contains the open dialogs of self.

since: 1.5

adw_application_window_get_visible_dialog

Returns the currently visible dialog in self, if there’s one.

since: 1.5

adw_application_window_set_adaptive_preview

Sets whether adaptive preview for self is currently open.

since: 1.7

adw_application_window_set_content

Sets the content widget of self.

Methods inherited from GtkApplicationWindow (5)
Methods inherited from GtkWindow (55)
Methods inherited from GtkWidget (164)
Methods inherited from GObject (43)
Methods inherited from GActionGroup (14)
Methods inherited from GActionMap (5)
Methods inherited from GtkAccessible (20)
Methods inherited from GtkBuildable (1)
Methods inherited from GtkNative (5)
Methods inherited from GtkRoot (3)
[]

Properties

Adw.ApplicationWindow:adaptive-preview

Whether adaptive preview is currently open.

since: 1.7

Adw.ApplicationWindow:content

The content widget.

Adw.ApplicationWindow:current-breakpoint

The current breakpoint.

since: 1.4

Adw.ApplicationWindow:dialogs

The open dialogs.

since: 1.5

Adw.ApplicationWindow:visible-dialog

The currently visible dialog.

since: 1.5

Properties inherited from GtkApplicationWindow (1)
Properties inherited from GtkWindow (25)
Properties inherited from GtkWidget (35)
Properties inherited from GtkAccessible (1)
[]

Signals

Signals inherited from GtkWindow (5)
Signals inherited from GtkWidget (13)
Signals inherited from GObject (1)
Signals inherited from GActionGroup (4)

Class structure