[go: up one dir, main page]

GestureExt

Trait GestureExt 

Source
pub trait GestureExt: IsA<Gesture> + 'static {
Show 23 methods // Provided methods fn bounding_box(&self) -> Option<Rectangle> { ... } fn bounding_box_center(&self) -> Option<(f64, f64)> { ... } fn device(&self) -> Option<Device> { ... } fn group(&self) -> Vec<Gesture> { ... } fn last_event(&self, sequence: Option<&EventSequence>) -> Option<Event> { ... } fn last_updated_sequence(&self) -> Option<EventSequence> { ... } fn point(&self, sequence: Option<&EventSequence>) -> Option<(f64, f64)> { ... } fn sequence_state(&self, sequence: &EventSequence) -> EventSequenceState { ... } fn sequences(&self) -> Vec<EventSequence> { ... } fn group_with(&self, gesture: &impl IsA<Gesture>) { ... } fn handles_sequence(&self, sequence: Option<&EventSequence>) -> bool { ... } fn is_active(&self) -> bool { ... } fn is_grouped_with(&self, other: &impl IsA<Gesture>) -> bool { ... } fn is_recognized(&self) -> bool { ... } fn set_sequence_state( &self, sequence: &EventSequence, state: EventSequenceState, ) -> bool { ... } fn set_state(&self, state: EventSequenceState) -> bool { ... } fn ungroup(&self) { ... } fn n_points(&self) -> u32 { ... } fn connect_begin<F: Fn(&Self, Option<&EventSequence>) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_cancel<F: Fn(&Self, Option<&EventSequence>) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_end<F: Fn(&Self, Option<&EventSequence>) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_sequence_state_changed<F: Fn(&Self, Option<&EventSequence>, EventSequenceState) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_update<F: Fn(&Self, Option<&EventSequence>) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn bounding_box(&self) -> Option<Rectangle>

Source

fn bounding_box_center(&self) -> Option<(f64, f64)>

Source

fn device(&self) -> Option<Device>

Source

fn group(&self) -> Vec<Gesture>

Source

fn last_event(&self, sequence: Option<&EventSequence>) -> Option<Event>

Source

fn last_updated_sequence(&self) -> Option<EventSequence>

Source

fn point(&self, sequence: Option<&EventSequence>) -> Option<(f64, f64)>

Source

fn sequence_state(&self, sequence: &EventSequence) -> EventSequenceState

Source

fn sequences(&self) -> Vec<EventSequence>

Source

fn group_with(&self, gesture: &impl IsA<Gesture>)

Source

fn handles_sequence(&self, sequence: Option<&EventSequence>) -> bool

Source

fn is_active(&self) -> bool

Source

fn is_grouped_with(&self, other: &impl IsA<Gesture>) -> bool

Source

fn is_recognized(&self) -> bool

Source

fn set_sequence_state( &self, sequence: &EventSequence, state: EventSequenceState, ) -> bool

👎Deprecated: Since 4.10
Source

fn set_state(&self, state: EventSequenceState) -> bool

Source

fn ungroup(&self)

Source

fn n_points(&self) -> u32

Source

fn connect_begin<F: Fn(&Self, Option<&EventSequence>) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_cancel<F: Fn(&Self, Option<&EventSequence>) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_end<F: Fn(&Self, Option<&EventSequence>) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_sequence_state_changed<F: Fn(&Self, Option<&EventSequence>, EventSequenceState) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_update<F: Fn(&Self, Option<&EventSequence>) + 'static>( &self, f: F, ) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§