Class

AdwWindow

Description [src]

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

A freeform 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

Hierarchy

hierarchy this AdwWindow implements_0 GtkAccessible this--implements_0 implements_1 GtkBuildable this--implements_1 implements_2 GtkConstraintTarget this--implements_2 implements_3 GtkNative this--implements_3 implements_4 GtkRoot this--implements_4 implements_5 GtkShortcutManager this--implements_5 ancestor_0 GtkWindow ancestor_0--this ancestor_1 GtkWidget ancestor_1--ancestor_0 ancestor_2 GInitiallyUnowned ancestor_2--ancestor_1 ancestor_3 GObject ancestor_3--ancestor_2

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.