Trait components::SwipeActionExt[][src]

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

Trait containing all SwipeAction methods.

Implementors

SwipeAction

Required methods

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

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.

Loading content...

Implementors

impl<O> SwipeActionExt for O where
    O: IsA<SwipeAction>, 
[src]

Loading content...