It derives from <GObject>.
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 widget:add-controller. It is rarely necessary to
explicitly remove a controller with widget:remove-controller.
See the chapter on input handling for an overview of the basic concepts, such as the capture and bubble phases of event propagation.
The name for this controller, typically used for debugging purposes.
Its value is a string, or #f.
Set it with (set! (event-controller:name self) value).
The limit for which events this controller will handle.
Its value is a <GtkPropagationLimit> (or,
to set it, one of its symbols).
Set it with (set! (event-controller:propagation-limit self)
value).
The propagation phase at which this controller will handle events.
Its value is a <GtkPropagationPhase> (or,
to set it, one of its symbols).
Set it with (set! (event-controller:propagation-phase self)
value).
The widget receiving the GdkEvents that the controller will
handle.
Its value is a <GtkWidget>, or #f.
It is read only.
Returns the event that is currently being handled by the controller.
At other times, #f is returned.
Passed: a <GtkEventController>.
Returned: a <GdkEvent>, or #f.
the event that is currently handled by self
Returns the device of the event that is currently being handled by the controller.
At other times, #f is returned.
Passed: a <GtkEventController>.
Returned: a <GdkDevice>, or #f.
device of the event is currently handled by self
Returns the modifier state of the event that is currently being handled by the controller.
At other times, 0 is returned.
Passed: a <GtkEventController>.
Returned: a <GdkModifierType>.
modifier state of the event is currently handled by self
Returns the timestamp of the event that is currently being handled by the controller.
At other times, 0 is returned.
Passed: a <GtkEventController>.
Returned: an unsigned 32-bit integer.
timestamp of the event is currently handled by self
Gets the name of self.
Passed: a <GtkEventController>.
Returned: a string, or #f.
The controller name
Gets the propagation limit of the event controller.
Passed: a <GtkEventController>.
Returned: a <GtkPropagationLimit>.
the propagation limit
Gets the propagation phase at which self handles events.
Passed: a <GtkEventController>.
Returned: a <GtkPropagationPhase>.
the propagation phase
Returns the <GtkWidget> this controller relates to.
Passed: a <GtkEventController>.
Returned: a <GtkWidget>, or #f.
Resets the self to a clean state.
Passed: a <GtkEventController>.
Sets a name on the controller that can be used for debugging.
Passed: a <GtkEventController>.
Passed, or left out: a string, or #f.
a name for self
Sets the event propagation limit on the event controller.
If the limit is set to same-native, the
controller won’t handle events that are targeted at widgets on a
different surface, such as popovers.
Passed: a <GtkEventController>.
Passed: a <GtkPropagationLimit>, or one
of its symbols.
the propagation limit
Sets the propagation phase at which a controller handles events.
If phase is none, no automatic
event handling will be performed, but other additional gesture
maintenance will.
Passed: a <GtkEventController>.
Passed: a <GtkPropagationPhase>, or one
of its symbols.
a propagation phase
Sets a name on the controller that can be used for debugging.
Passed: a <GtkEventController>.
Passed, or left out: a string, or #f.
a name for self, must be a static string