WindowControls
Superclasses: Widget
, InitiallyUnowned
, Object
Implemented Interfaces: Accessible
, Buildable
, ConstraintTarget
- Constructors:
WindowControls(**properties)
new(side:Gtk.PackType) -> Gtk.Widget
Constructors
Methods
- class WindowControls
-
- set_decoration_layout(layout: str | None = None) None
Sets the decoration layout for the title buttons.
This overrides the
gtk_decoration_layout
setting.The format of the string is button names, separated by commas. A colon separates the buttons that should appear on the left from those on the right. Recognized button names are minimize, maximize, close and icon (the window icon).
For example, “icon:minimize,maximize,close” specifies a icon on the left, and minimize, maximize and close buttons on the right.
If
side
value isGTK_PACK_START
,self
will display the part before the colon, otherwise after that.- Parameters:
layout – a decoration layout, or
None
to unset the layout
- set_side(side: PackType) None
Determines which part of decoration layout the
GtkWindowControls
uses.See
decoration_layout
.- Parameters:
side – a side
Properties
- class WindowControls
- props.decoration_layout: str
The decoration layout for window buttons.
If this property is not set, the
gtk_decoration_layout
setting is used.
- props.side: PackType
Whether the widget shows start or end side of the decoration layout.
See
decoration_layout
.