Root

interface Root : Native

GtkRoot is the interface implemented by all widgets that can act as a toplevel widget.

The root widget takes care of providing the connection to the windowing system and manages layout, drawing and event delivery for its widget hierarchy.

The obvious example of a GtkRoot is GtkWindow.

To get the display to which a GtkRoot belongs, use method@Gtk.Root.get_display.

GtkRoot also maintains the location of keyboard focus inside its widget hierarchy, with method@Gtk.Root.set_focus and method@Gtk.Root.get_focus.

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val gtkNativePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
abstract val gtkRootPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun getDisplay_(): <Error class: unknown class>

Returns the display that this GtkRoot is on.

Link copied to clipboard
open fun getFocus(): Widget?

Retrieves the current focused widget within the root.

Link copied to clipboard
open fun getRenderer(): <Error class: unknown class>?

Returns the renderer that is used for this GtkNative.

Link copied to clipboard
open fun getSurface(): <Error class: unknown class>?

Returns the surface of this GtkNative.

Link copied to clipboard
open fun realize_()

Realizes a GtkNative.

Link copied to clipboard
open fun setFocus(focus: Widget? = null)

If @focus is not the current focus widget, and is focusable, sets it as the focus widget for the root.

Link copied to clipboard
open fun unrealize_()

Unrealizes a GtkNative.