root

open val root: Root?

The GtkRoot widget of the widget tree containing this widget.

This will be null if the widget is not contained in a root widget.