pub enum Axis {
Vertical,
Horizontal,
Both,
}Expand description
A SingleChildScrollView’s scrolling axis, or axes.
Variants§
Vertical
Up and down.
Horizontal
Left and right.
Both
Both, which is a convenience rather than a third kind of area: a scrollable elsewhere has one axis and one only, and two of them means one nested inside the other. This is that pair collapsed into a single node, and a gesture reads it as the pair: one drag moves one axis, decided by the direction the finger went in and held to the end of the gesture. A page that scrolls down does not drift sideways while it does it.
Trait Implementations§
impl Copy for Axis
impl Eq for Axis
impl StructuralPartialEq for Axis
Auto Trait Implementations§
impl Freeze for Axis
impl RefUnwindSafe for Axis
impl Send for Axis
impl Sync for Axis
impl Unpin for Axis
impl UnsafeUnpin for Axis
impl UnwindSafe for Axis
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