[−][src]Type Definition rubrail::SwipeCb
type SwipeCb = Box<dyn Fn(&ItemId, SwipeState, f64)>;
A callback that is called when an item is swiped
SwipeCb is expected to be a Boxed closure, and it receives the
ItemId of an item as it is being swiped if a swipe gesture recognizer
has been added to the item.
Arguments
- first -
ItemIdof the item that was swiped - second -
SwipeStaterepresenting the current gesture's lifecycle - third - Horizontal translation of the swipe, in pixels (positive is right, negative is left).