pub enum PanAxis {
Free,
Horizontal,
Vertical,
}Expand description
Which way a GestureDetector’s drag may go (milestone 582).
The reference has three families of callbacks for this — pan, horizontal drag, vertical drag — and forbids mixing them; here it is one family and a direction.
Variants§
Free
Any direction: a pan.
Horizontal
Left and right only: the vertical part of the movement is not reported, and a vertical movement inside a scroll is the scroll’s.
Vertical
Up and down only.
Trait Implementations§
impl Copy for PanAxis
impl Eq for PanAxis
impl StructuralPartialEq for PanAxis
Auto Trait Implementations§
impl Freeze for PanAxis
impl RefUnwindSafe for PanAxis
impl Send for PanAxis
impl Sync for PanAxis
impl Unpin for PanAxis
impl UnsafeUnpin for PanAxis
impl UnwindSafe for PanAxis
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