GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkWindow ╰── HdyWindow ╰── HdyPreferencesWindow
HdyWindow implements AtkImplementorIface and GtkBuildable.
The HdyWindow 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 14 15 16 17
<object class="HdyWindow"/> <child> <object class="GtkBox"> <property name="visible">True</property> <property name="orientation">vertical</property> <child> <object class="HdyHeaderBar"> <property name="visible">True</property> <property name="show-close-button">True</property> </object> </child> <child> ... </child> </object> </child> </object>
if the window has a GtkGLArea, it may bring a slight performance regresssion when the window is not fullscreen, tiled or maximized.
HdyWindow has a main CSS node with the name window and style classes .background, .csd and .unified.
The .solid-csd style class on the main node is used for client-side decorations without invisible borders.
HdyWindow also represents window states with the following style classes on the main node: .tiled, .maximized, .fullscreen.
It contains the subnodes decoration for window shadow and/or border, decoration-overlay for the sheen on top of the window, widget.titlebar, and deck, which contains the child inside the window.