Creates a new event controller that will handle focus events.
Connect to Enter signal.
Connect to Leave signal.
Returns true if focus is within self or one of its children.
Returns true if focus is within self, but not one of its children.
Returns the event that is currently being handled by the controller.
Returns the device of the event that is currently being handled by the controller.
Returns the modifier state of the event that is currently being handled by the controller.
Returns the timestamp of the event that is currently being handled by the controller.
Gets the name of controller.
Gets the propagation limit of the event controller.
Gets the propagation phase at which controller handles events.
Returns the gtk.widget.Widget this controller relates to.
Resets the controller to a clean state.
Sets a name on the controller that can be used for debugging.
Sets the event propagation limit on the event controller.
Sets the propagation phase at which a controller handles events.
Sets a name on the controller that can be used for debugging.
gtk.event_controller_focus.EventControllerFocus is an event controller to keep track of keyboard focus.
The event controller offers gtk.event_controller_focus.EventControllerFocus.enter and gtk.event_controller_focus.EventControllerFocus.leave signals, as well as property@Gtk.EventControllerFocus:is-focus and property@Gtk.EventControllerFocus:contains-focus properties which are updated to reflect focus changes inside the widget hierarchy that is rooted at the controllers widget.