#[repr(C)]pub enum ScrollDeltaMode {
Pixel = 0,
Line = 1,
Page = 2,
}Expand description
Scroll delta mode (how scroll deltas should be interpreted).
Variants§
Pixel = 0
Delta is in pixels
Line = 1
Delta is in lines (e.g., 3 lines of text)
Page = 2
Delta is in pages
Trait Implementations§
Source§impl Clone for ScrollDeltaMode
impl Clone for ScrollDeltaMode
Source§fn clone(&self) -> ScrollDeltaMode
fn clone(&self) -> ScrollDeltaMode
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 ScrollDeltaMode
impl Debug for ScrollDeltaMode
Source§impl Hash for ScrollDeltaMode
impl Hash for ScrollDeltaMode
Source§impl Ord for ScrollDeltaMode
impl Ord for ScrollDeltaMode
Source§fn cmp(&self, other: &ScrollDeltaMode) -> Ordering
fn cmp(&self, other: &ScrollDeltaMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ScrollDeltaMode
impl PartialEq for ScrollDeltaMode
Source§impl PartialOrd for ScrollDeltaMode
impl PartialOrd for ScrollDeltaMode
impl Copy for ScrollDeltaMode
impl Eq for ScrollDeltaMode
impl StructuralPartialEq for ScrollDeltaMode
Auto Trait Implementations§
impl Freeze for ScrollDeltaMode
impl RefUnwindSafe for ScrollDeltaMode
impl Send for ScrollDeltaMode
impl Sync for ScrollDeltaMode
impl Unpin for ScrollDeltaMode
impl UnwindSafe for ScrollDeltaMode
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