pub enum ScrollDelta {
Lines(f64, f64),
Pixels(f64, f64),
}Expand description
A scroll amount, in either discrete lines or continuous pixels.
Line deltas come from mouse wheels (winit LineDelta); pixel deltas from
precision trackpads/touch (winit PixelDelta). The (x, y) order is
horizontal then vertical.
Variants§
Lines(f64, f64)
A wheel-notch delta measured in lines (x, y).
Pixels(f64, f64)
A precision delta measured in logical pixels (x, y).
Trait Implementations§
Source§impl Clone for ScrollDelta
impl Clone for ScrollDelta
impl Copy for ScrollDelta
Source§impl Debug for ScrollDelta
impl Debug for ScrollDelta
Source§impl PartialEq for ScrollDelta
impl PartialEq for ScrollDelta
impl StructuralPartialEq for ScrollDelta
Auto Trait Implementations§
impl Freeze for ScrollDelta
impl RefUnwindSafe for ScrollDelta
impl Send for ScrollDelta
impl Sync for ScrollDelta
impl Unpin for ScrollDelta
impl UnsafeUnpin for ScrollDelta
impl UnwindSafe for ScrollDelta
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> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.