Trait gtk4::prelude::EventControllerExt
source · [−]pub trait EventControllerExt: 'static {
Show 16 methods
fn current_event(&self) -> Option<Event>;
fn current_event_device(&self) -> Option<Device>;
fn current_event_state(&self) -> ModifierType;
fn current_event_time(&self) -> u32;
fn name(&self) -> Option<GString>;
fn propagation_limit(&self) -> PropagationLimit;
fn propagation_phase(&self) -> PropagationPhase;
fn widget(&self) -> Widget;
fn reset(&self);
fn set_name(&self, name: Option<&str>);
fn set_propagation_limit(&self, limit: PropagationLimit);
fn set_propagation_phase(&self, phase: PropagationPhase);
fn connect_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_propagation_limit_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_propagation_phase_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_widget_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Required Methods
source
fn current_event(&self) -> Option<Event>
source
fn current_event_device(&self) -> Option<Device>
source
fn current_event_state(&self) -> ModifierType
source
fn current_event_time(&self) -> u32
source
fn propagation_limit(&self) -> PropagationLimit
source
fn propagation_phase(&self) -> PropagationPhase
source
fn set_propagation_limit(&self, limit: PropagationLimit)
source
fn set_propagation_phase(&self, phase: PropagationPhase)
source
fn connect_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
sourcefn connect_propagation_limit_notify<F: Fn(&Self) + 'static>(
fn connect_propagation_limit_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_propagation_phase_notify<F: Fn(&Self) + 'static>(
fn connect_propagation_phase_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
source