WindowHandle

class WindowHandle(**properties: Any)

Superclasses: Widget, InitiallyUnowned, Object

Implemented Interfaces: Accessible, Buildable, ConstraintTarget

GtkWindowHandle is a titlebar area widget.

When added into a window, it can be dragged to move the window, and handles right click, double click and middle click as expected of a titlebar.

CSS nodes

GtkWindowHandle has a single CSS node with the name windowhandle.

Accessibility

Until GTK 4.10, GtkWindowHandle used the GTK_ACCESSIBLE_ROLE_GROUP role.

Starting from GTK 4.12, GtkWindowHandle uses the GTK_ACCESSIBLE_ROLE_GENERIC role.

Constructors

class WindowHandle
classmethod new() Widget

Creates a new GtkWindowHandle.

Methods

class WindowHandle
get_child() Widget | None

Gets the child widget of self.

set_child(child: Widget | None = None) None

Sets the child widget of self.

Parameters:

child – the child widget

Properties

class WindowHandle
props.child: Widget

The child widget.