Trait gtk4::prelude::EventControllerExt
source · pub trait EventControllerExt: 'static {
Show 16 methods
// Required 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;
}