get_focus


Description:

public unowned Widget? get_focus ()

Retrieves the current focused widget within the window.

Note that this is the widget that would have the focus if the toplevel window focused; if the toplevel window is not focused then `gtk_widget_has_focus (widget)` will not be true for the widget.

Parameters:

this

a `GtkWindow`

Returns:

the currently focused widget




2022 vala-language.org