Class

AdwWindow

Description [src]

class Adw.Window : Gtk.Window {
  parent_instance: GtkWindow
}

A freeform window.

window

The AdwWindow widget is a subclass of GtkWindow which has no titlebar area. It means GtkHeaderBar can be used as follows:

<object class="AdwWindow">
  <property name="content">
    <object class="GtkBox">
      <property name="orientation">vertical</property>
      <child>
        <object class="GtkHeaderBar"/>
      </child>
      <child>
        ...
      </child>
    </object>
  </property>
</object>

Using gtk_window_get_titlebar() and gtk_window_set_titlebar() is not supported and will result in a crash.

Available since:1.0

Ancestors

  • GtkWindow
  • GtkWidget
  • GInitiallyUnowned
  • GObject

Implements

  • GtkAccessible
  • GtkBuildable
  • GtkConstraintTarget
  • GtkNative
  • GtkRoot
  • GtkShortcutManager

Constructors

adw_window_new

Creates a new AdwWindow.

Available since: 1.0

Instance methods

adw_window_get_content

Gets the content widget of self.

Available since: 1.0

adw_window_set_content

Sets the content widget of self.

Available since: 1.0

Properties

Adw.Window:content

The content widget.

Available since: 1.0

Class structure

struct AdwWindowClass {
  GtkWindowClass parent_class;
  
}
Class members
parent_class
GtkWindowClass
  No description available.