Sets our main struct and passes it to the parent class.
Creates a new event controller that will handle focus events.
Emitted whenever the focus enters into the widget or one of its descendents.
Emitted whenever the focus leaves the widget hierarchy that is rooted at the widget that the controller is attached to.
Returns %TRUE if focus is within @self or one of its children.
Get the main Gtk struct
the main Gtk struct as a void*
Returns %TRUE if focus is within @self, but not one of its children.
the main Gtk struct
the main Gtk struct
Get the main Gtk struct
the main Gtk struct as a void*
Returns the event that is currently being handled by the controller, and %NULL at other times.
Returns the device of the event that is currently being handled by the controller, and %NULL otherwise.
Returns the modifier state of the event that is currently being handled by the controller, and 0 otherwise.
Returns the timestamp of the event that is currently being handled by the controller, and 0 otherwise.
Gets the name of @controller.
Gets the propagation limit of the event controller.
Gets the propagation phase at which @controller handles events.
Returns the #GtkWidget 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.
GtkEventControllerFocus is an event controller to keep track of keyboard focus.
The event controller offers [signal@Gtk.EventControllerFocus::enter] and [signal@Gtk.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.