gtk.event_controller

Module for [EventController] class

Types 3

#GtkEventController is a base, low-level implementation for event controllers. Those react to a series of #GdkEvents, and possibly trigger actions as a consequence of those.

Methods
GType _gType() @property
EventController self()Returns `this`, for use in `with` statements.
EventControllerGidBuilder builder()Get builder for [gtk.event_controller.EventController] Returns: New builder object
gtk.types.PropagationPhase propagationPhase() @propertyGet `propagationPhase` property. Returns: The propagation phase at which this controller will handle events.
void propagationPhase(gtk.types.PropagationPhase propval) @propertySet `propagationPhase` property. Params: propval = The propagation phase at which this controller will handle events.
gtk.widget.Widget widget() @propertyGet `widget` property. Returns: The widget receiving the #GdkEvents that the controller will handle.
gtk.types.PropagationPhase getPropagationPhase()Gets the propagation phase at which controller handles events. Returns: the propagation phase
gtk.widget.Widget getWidget()Returns the #GtkWidget this controller relates to. Returns: a #GtkWidget
bool handleEvent(gdk.event.Event event)Feeds an events into controller, so it can be interpreted and the controller actions triggered.
void reset()Resets the controller to a clean state. Every interaction the controller did through #GtkEventController::handle-event will be dropped at this point.
void setPropagationPhase(gtk.types.PropagationPhase phase)Sets the propagation phase at which a controller handles events.
Constructors
this(void * ptr, Flag!"Take" take)
Methods
T propagationPhase(gtk.types.PropagationPhase propval)Set `propagationPhase` property. Params: propval = The propagation phase at which this controller will handle events. Returns: Builder instance for fluent chaining
T widget(gtk.widget.Widget propval)Set `widget` property. Params: propval = The widget receiving the #GdkEvents that the controller will handle. Returns: Builder instance for fluent chaining

Fluent builder for [gtk.event_controller.EventController]