Trait gtk4::prelude::GestureSingleExt
source · [−]pub trait GestureSingleExt: 'static {
fn button(&self) -> u32;
fn current_button(&self) -> u32;
fn current_sequence(&self) -> Option<EventSequence>;
fn is_exclusive(&self) -> bool;
fn is_touch_only(&self) -> bool;
fn set_button(&self, button: u32);
fn set_exclusive(&self, exclusive: bool);
fn set_touch_only(&self, touch_only: bool);
fn connect_button_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_exclusive_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_touch_only_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Required Methods
source
fn current_sequence(&self) -> Option<EventSequence>
source
fn is_exclusive(&self) -> bool
source
fn is_touch_only(&self) -> bool
source
fn set_exclusive(&self, exclusive: bool)
source
fn set_touch_only(&self, touch_only: bool)
sourcefn connect_exclusive_notify<F: Fn(&Self) + 'static>(
fn connect_exclusive_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_touch_only_notify<F: Fn(&Self) + 'static>(