pub enum ReorderGrab {
Handle,
LongPress,
}Expand description
How a row of a ReorderableList is picked up.
Not a decoration: it decides whether the list can still be scrolled with a finger, so it is the first thing to get right and the reason the reference has two widgets where it could have had one.
Variants§
Handle
A grip at the row’s trailing edge, which lifts on the press. Everywhere else on the row keeps meaning what it meant — a tap, a swipe, a scroll.
LongPress
The whole row, after a hold. Nothing is added to the row, and the list still scrolls: a finger that holds still is not scrolling, which is what makes the hold a gesture the scroll cannot claim.
Trait Implementations§
Source§impl Clone for ReorderGrab
impl Clone for ReorderGrab
impl Copy for ReorderGrab
Source§impl Debug for ReorderGrab
impl Debug for ReorderGrab
Source§impl Default for ReorderGrab
impl Default for ReorderGrab
impl Eq for ReorderGrab
Source§impl PartialEq for ReorderGrab
impl PartialEq for ReorderGrab
impl StructuralPartialEq for ReorderGrab
Auto Trait Implementations§
impl Freeze for ReorderGrab
impl RefUnwindSafe for ReorderGrab
impl Send for ReorderGrab
impl Sync for ReorderGrab
impl Unpin for ReorderGrab
impl UnsafeUnpin for ReorderGrab
impl UnwindSafe for ReorderGrab
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more