EventControllerFocus
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.
Skipped during bindings generation
method
contains-focus
: Property has no getter nor settermethod
is-focus
: Property has no getter nor setter
Constructors
Properties
Functions
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.
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 propagation limit of the event controller.
Gets the propagation phase at which @controller handles events.
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.