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
EventControllerGidBuilder builder() static nothrowGet builder for [gtk.event_controller.EventController] Returns: New builder objectgtk.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 phasegtk.widget.Widget getWidget() nothrowReturns the #GtkWidget this controller relates to. Returns: a #GtkWidgetbool 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.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 chainingT 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 chainingFluent builder for gtk.event_controller.EventController
Methods