Trait SwipeActionExt

Source
pub trait SwipeActionExt: 'static {
    // Required method
    fn connect_swipe<F: Fn(&Self, &Actor, SwipeDirection) -> bool + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
}
Expand description

Trait containing all SwipeAction methods.

§Implementors

SwipeAction

Required Methods§

Source

fn connect_swipe<F: Fn(&Self, &Actor, SwipeDirection) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId

The ::swipe signal is emitted when a swipe gesture is recognized on the attached actor.

§actor

the Actor attached to the action

§direction

the main direction of the swipe gesture

§Returns

true if the swipe should continue, and false if the swipe should be cancelled.

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§