#[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 (const: unstable) · 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 (const: unstable) · 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§fn eq(&self, other: &ScrollDeltaMode) -> bool
fn eq(&self, other: &ScrollDeltaMode) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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