Widget.isFocus

Determines if the widget is the focus widget within its toplevel.

This does not mean that the propertyGtk.Widget:has-focus property is necessarily set; propertyGtk.Widget:has-focus will only be set if the toplevel widget additionally has the global input focus.

class Widget
bool
isFocus
()

Return Value

Type: bool

true if the widget is the focus widget.