get_focus


Description:

public unowned Widget? get_focus ()

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.

Parameters:

this

a `GtkRoot`

Returns:

the currently focused widget




2022 vala-language.org