Root

gtk.root.Root 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 gtk.root.Root is gtk.window.Window.

To get the display to which a gtk.root.Root belongs, use gtk.root.Root.getDisplay.

gtk.root.Root also maintains the location of keyboard focus inside its widget hierarchy, with gtk.root.Root.setFocus and gtk.root.Root.getFocus.

Members

Functions

getDisplay
gdk.display.Display getDisplay()

Returns the display that this gtk.root.Root is on.

getFocus
gtk.widget.Widget getFocus()

Retrieves the current focused widget within the root.

setFocus
void setFocus(gtk.widget.Widget focus)

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