isFocus

open fun isFocus(): Boolean

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

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

Return

true if the widget is the focus widget.