[−][src]Trait gtk::prelude::EventControllerExt
Trait containing all EventController
methods.
Implementors
EventControllerKey
, EventControllerMotion
, EventControllerScroll
, EventController
, Gesture
, PadController
Required methods
fn get_propagation_phase(&self) -> PropagationPhase
fn get_widget(&self) -> Option<Widget>
fn handle_event(&self, event: &Event) -> bool
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
fn reset(&self)
Resets the self
to a clean state. Every interaction
the controller did through EventController::handle-event
will be dropped at this point.
fn set_propagation_phase(&self, phase: PropagationPhase)
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 EventControllerExt::handle_event
.
phase
a propagation phase
fn connect_property_propagation_phase_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<EventController>> EventControllerExt for O
[src]
fn get_propagation_phase(&self) -> PropagationPhase
[src]
fn get_widget(&self) -> Option<Widget>
[src]
fn handle_event(&self, event: &Event) -> bool
[src]
fn reset(&self)
[src]
fn set_propagation_phase(&self, phase: PropagationPhase)
[src]
fn connect_property_propagation_phase_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId