Package org.gnome.gtk

Interface Root

All Superinterfaces:
Native, Proxy
All Known Implementing Classes:
AboutDialog, AboutWindow, AppChooserDialog, ApplicationWindow, ApplicationWindow, Assistant, ColorChooserDialog, Dialog, DragIcon, FileChooserDialog, FontChooserDialog, MessageDialog, MessageDialog, PageSetupUnixDialog, PreferencesWindow, PrintUnixDialog, Root.RootImpl, ShortcutsWindow, Window, Window

@Generated("io.github.jwharm.JavaGI") public interface Root extends Proxy, 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 getDisplay().

GtkRoot also maintains the location of keyboard focus inside its widget hierarchy, with setFocus(org.gnome.gtk.Widget) and getFocus().