| Top |
| GtkWidget * | adw_window_new () |
| void | adw_window_set_child () |
| GtkWidget * | adw_window_get_child () |
GObject
╰── GInitiallyUnowned
╰── GtkWidget
╰── GtkWindow
╰── AdwWindow
╰── AdwPreferencesWindow
AdwWindow implements GtkAccessible, GtkBuildable, GtkConstraintTarget, GtkNative, GtkShortcutManager and GtkRoot.
The AdwWindow widget is a subclass of GtkWindow which has no titlebar area and provides rounded corners on all sides, ensuring they can never be overlapped by the content. This makes it safe to use headerbars in the content area as follows:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<object class="AdwWindow"/> <child> <object class="GtkBox"> <property name="orientation">vertical</property> <child> <object class="AdwHeaderBar"/> </child> <child> ... </child> </object> </child> </object> |
AdwWindow allows to easily implement titlebar autohiding by putting the headerbar inside a GtkRevealer, and to show titlebar above content by putting it into a GtkOverlay instead of GtkBox.
if the window has a GtkGLArea, it may bring a slight performance regression when the window is not fullscreen, tiled or maximized.
Using gtk_window_get_titlebar() and gtk_window_set_titlebar() is not
supported and will result in a crash.
void adw_window_set_child (AdwWindow *self,GtkWidget *child);
Sets the child widget of self
.
Since: 1.0