Object Hierarchy:

Object hierarchy for WindowControls


[ CCode ( type_id = "gtk_window_controls_get_type ()" ) ]
public class WindowControls : Widget, Accessible, Buildable, ConstraintTarget

GtkWindowControls shows window frame controls, such as minimize, maximize and close buttons, and the window icon.

WindowControls only displays start or end side of the controls (see side), so it's intended to be always used in pair with another WindowControls using the opposite side, for example:

<object class="GtkBox">
<object class="GtkWindowControls">
<property name="side">start</property>


<object class="GtkWindowControls">
<property name="side">end</property>

CSS nodes

├── [image.icon]
├── [button.minimize]
├── [button.maximize]
╰── [button.close]
CSS node is called windowcontrols. It contains subnodes corresponding to each title button. Which of the title buttons exist and where they are placed exactly depends on the desktop environment and decoration_layout value.

When empty is true, it gets the .empty style class.

Namespace: Gtk
Package: gtk4



Creation methods:


Inherited Members:

All known members inherited from class Gtk.Widget