#[repr(C)]pub enum AutoScrollDirection {
None = 0,
Up = 1,
Down = 2,
Left = 3,
Right = 4,
UpLeft = 5,
UpRight = 6,
DownLeft = 7,
DownRight = 8,
}Expand description
Direction for auto-scrolling during drag operations
Variants§
None = 0
No auto-scroll needed
Up = 1
Scroll up (mouse near top edge)
Down = 2
Scroll down (mouse near bottom edge)
Left = 3
Scroll left (mouse near left edge)
Right = 4
Scroll right (mouse near right edge)
UpLeft = 5
Scroll up-left (mouse near top-left corner)
UpRight = 6
Scroll up-right (mouse near top-right corner)
DownLeft = 7
Scroll down-left (mouse near bottom-left corner)
DownRight = 8
Scroll down-right (mouse near bottom-right corner)
Trait Implementations§
Source§impl Clone for AutoScrollDirection
impl Clone for AutoScrollDirection
Source§fn clone(&self) -> AutoScrollDirection
fn clone(&self) -> AutoScrollDirection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AutoScrollDirection
impl Debug for AutoScrollDirection
Source§impl Default for AutoScrollDirection
impl Default for AutoScrollDirection
Source§fn default() -> AutoScrollDirection
fn default() -> AutoScrollDirection
Returns the “default value” for a type. Read more
Source§impl PartialEq for AutoScrollDirection
impl PartialEq for AutoScrollDirection
impl Copy for AutoScrollDirection
impl Eq for AutoScrollDirection
impl StructuralPartialEq for AutoScrollDirection
Auto Trait Implementations§
impl Freeze for AutoScrollDirection
impl RefUnwindSafe for AutoScrollDirection
impl Send for AutoScrollDirection
impl Sync for AutoScrollDirection
impl Unpin for AutoScrollDirection
impl UnwindSafe for AutoScrollDirection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more