Top |
Functions
GdkDisplay * | gtk_root_get_display () |
GtkWidget * | gtk_root_get_focus () |
void | gtk_root_set_focus () |
Known Implementations
GtkRoot is implemented by GtkAboutDialog, GtkAppChooserDialog, GtkApplicationWindow, GtkAssistant, GtkColorChooserDialog, GtkDialog, GtkDragIcon, GtkFileChooserDialog, GtkFontChooserDialog, GtkMessageDialog, GtkPageSetupUnixDialog, GtkPrintUnixDialog, GtkShortcutsWindow and GtkWindow.
Description
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.
Functions
gtk_root_get_display ()
GdkDisplay *
gtk_root_get_display (GtkRoot *self
);
Returns the display that this GtkRoot is on.
gtk_root_get_focus ()
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.
gtk_root_set_focus ()
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.
Parameters
self |
a GtkRoot |
|
focus |
widget to be the new focus widget, or |
[allow-none] |