GtkRoot — Interface for root widgets
GInterface ╰── GtkRoot
GtkRoot is implemented by GtkAboutDialog, GtkAppChooserDialog, GtkApplicationWindow, GtkAssistant, GtkColorChooserDialog, GtkDialog, GtkDragIcon, GtkFileChooserDialog, GtkFontChooserDialog, GtkMessageDialog, GtkPageSetupUnixDialog, GtkPrintUnixDialog, GtkShortcutsWindow and GtkWindow.
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.
GdkDisplay * gtk_root_get_display (
Returns the display that this GtkRoot is on.
the display of
Retrieves the current focused widget within the root.
Note that this is the widget that would have the focus if the root is active; if the root is not focused then
gtk_widget_has_focus (widget) will be
FALSE for the widget.
the currently focused widget, or
NULL if there is none.
focus is not the current focus widget, and is focusable, sets it as the focus widget for the root. If
NULL, unsets the focus widget for the root.
To set the focus to a particular widget in the root, it is usually more convenient to use
gtk_widget_grab_focus() instead of this function.
widget to be the new focus widget, or
typedef struct _GtkRoot GtkRoot;
© 2005–2020 The GNOME Project
Licensed under the GNU Lesser General Public License version 2.1 or later.