Description [src]

interface Gtk.Root : Gtk.Native

GtkRoot is the interface implemented by all widgets that can act as a toplevel widget to a hierarchy of widgets. 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.

Instance methods


Returns the display that this GtkRoot is on.


Retrieves the current focused widget within the root.


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

Interface structure

struct GtkRootInterface {
  /* no available fields */