![]() |
![]() |
![]() |
![]() |
GtkRoot is implemented by GtkAboutDialog, GtkAppChooserDialog, GtkApplicationWindow, GtkAssistant, GtkColorChooserDialog, GtkDialog, 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.
GtkWidget *
gtk_root_get_for_surface (GdkSurface *surface
);
Finds the GtkRoot associated with the surface.
GtkWidget *
gtk_root_get_focus (GtkRoot *self
);
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.
void gtk_root_set_focus (GtkRoot *self
,GtkWidget *focus
);
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.
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.
guint gtk_root_install_properties (GObjectClass *object_class
,guint first_prop
);
“focus-widget”
property“focus-widget” GtkWidget *
The focus widget.
Owner: GtkRoot
Flags: Read / Write