EventController
GtkEventController
is the base class for event controllers.
These are ancillary objects associated to widgets, which react to GdkEvents
, and possibly trigger actions as a consequence.
Event controllers are added to a widget with method@Gtk.Widget.add_controller. It is rarely necessary to explicitly remove a controller with method@Gtk.Widget.remove_controller.
See the chapter on input-handling.html for an overview of the basic concepts, such as the capture and bubble phases of event propagation.
Inheritors
Constructors
Properties
Functions
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.