GtkWindow
A top-level window.
Preview
Window content
CSS Node Tree
window.background.csd
├── .titlebar
└── <child>Props
Prop
Type
Behavior
- On the web, the window takes the size of its content by default. Use
styleorclassNameto control sizing. - The
.csdclass enables client-side decorations (border-radius, shadow). - The
maximized,fullscreenandtiledprops add those classes: square corners, and no shadow when maximized or fullscreen. The maximize button shows the restore icon whilemaximized. - The child gets the whole area below the titlebar; its
halign/valignplace it. A window has one child: put several in aGtkBox. titleis shown by aGtkHeaderBarwithout a title widget.- The window controls and title bars of header bars inside it call
onClose,onMinimize,onMaximizeandonDrag: a title bar starts a move once dragged past the drag threshold, toggles maximization on a double click, and opens a window menu on a right click.