pub trait EventControllerExt: 'static {
    fn propagation_phase(&self) -> PropagationPhase;
    fn widget(&self) -> Option<Widget>;
    fn handle_event(&self, event: &Event) -> bool;
    fn reset(&self);
    fn set_propagation_phase(&self, phase: PropagationPhase);
    fn connect_propagation_phase_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }
Expand description

Required Methods

Gets the propagation phase at which self handles events.

Returns

the propagation phase

Returns the Widget this controller relates to.

Returns

a Widget

Feeds an events into self, so it can be interpreted and the controller actions triggered.

event

a GdkEvent

Returns

true if the event was potentially useful to trigger the controller action

Resets the self to a clean state. Every interaction the controller did through signal::EventController::handle-event will be dropped at this point.

Sets the propagation phase at which a controller handles events.

If phase is PropagationPhase::None, no automatic event handling will be performed, but other additional gesture maintenance will. In that phase, the events can be managed by calling handle_event().

phase

a propagation phase

Implementors