Class

AdwApplicationWindow

Description [src]

class Adw.ApplicationWindow : Gtk.ApplicationWindow {
  parent_instance: GtkApplicationWindow
}

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.

Ancestors

  • GtkApplicationWindow
  • GtkWindow
  • GtkWidget
  • GInitiallyUnowned
  • GObject

Implements

  • GActionGroup
  • GActionMap
  • GtkAccessible
  • GtkBuildable
  • GtkConstraintTarget
  • GtkNative
  • GtkRoot
  • GtkShortcutManager

Constructors

adw_application_window_new

Creates a new AdwApplicationWindow for app.

Instance methods

adw_application_window_add_breakpoint

Adds breakpoint to self.

Available since: 1.4

adw_application_window_get_content

Gets the content widget of self.

adw_application_window_get_current_breakpoint

Gets the current breakpoint.

Available since: 1.4

adw_application_window_set_content

Sets the content widget of self.

Properties

Adw.ApplicationWindow:content

The content widget.

Adw.ApplicationWindow:current-breakpoint

The current breakpoint.

Available since: 1.4

Class structure

struct AdwApplicationWindowClass {
  GtkApplicationWindowClass parent_class;
  
}
Class members
parent_class
GtkApplicationWindowClass
  No description available.