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 _getGType() static nothrow
GType _gType() @property nothrow
EventController self() nothrowReturns `this`, for use in `with` statements.
EventControllerGidBuilder builder() static nothrowGet builder for [gtk.event_controller.EventController] Returns: New builder object
gtk.types.PropagationPhase propagationPhase() @property nothrowGet `propagationPhase` property. Returns: The propagation phase at which this controller will handle events.
void propagationPhase(gtk.types.PropagationPhase propval) @property nothrowSet `propagationPhase` property. Params: propval = The propagation phase at which this controller will handle events.
gtk.widget.Widget widget() @property nothrowGet `widget` property. Returns: The widget receiving the #GdkEvents that the controller will handle.
gtk.types.PropagationPhase getPropagationPhase() nothrowGets the propagation phase at which controller handles events. Returns: the propagation phase
gtk.widget.Widget getWidget() nothrowReturns the #GtkWidget this controller relates to. Returns: a #GtkWidget
bool handleEvent(gdk.event.Event event) nothrowFeeds an events into controller, so it can be interpreted and the controller actions triggered.
void reset() nothrowResets 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) nothrowSets the propagation phase at which a controller handles events.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder implementation template for gtk.event_controller.EventController

Methods
T propagationPhase(gtk.types.PropagationPhase propval) nothrowSet `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) nothrowSet `widget` property. Params: propval = The widget receiving the #GdkEvents that the controller will handle. Returns: Builder instance for fluent chaining
Methods
EventController build() nothrowCreate object from builder. Returns: New object