WindowControls


Object Hierarchy:

Gtk.WindowControls Gtk.WindowControls Gtk.WindowControls Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.WindowControls GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->Gtk.WindowControls Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.WindowControls Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->Gtk.WindowControls Gtk.ConstraintTarget->Gtk.Widget

Description:

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

`GtkWindowControls` shows window frame controls.

Typical window frame controls are minimize, maximize and close buttons, and the window icon.

![An example GtkWindowControls](windowcontrols.png)

`GtkWindowControls` only displays start or end side of the controls (see [property@Gtk.WindowControls:side]), so it's intended to be always used in pair with another `GtkWindowControls` for the opposite side, for example:

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

...

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

CSS nodes

``` windowcontrols ├── [image.icon] ├── [button.minimize] ├── [button.maximize] ╰── [button.close] ```

A `GtkWindowControls`' 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 [property@Gtk.WindowControls:decoration-layout] value.

When [property@Gtk.WindowControls:empty] is true, it gets the .empty style class.

Accessibility

`GtkWindowControls` uses the gtk_accessible_role_group role.


Namespace: Gtk
Package: gtk4

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gtk.Widget