pub enum WheelDelta {
Points(Point<Points>),
Lines(Point<f32>),
}Expand description
How far a wheel scrolled (WheelEvent::delta), as GPUI’s
ScrollDelta: positive y scrolls toward the end (down), positive x
toward the right, as the DOM’s WheelEvent.
Variants§
Points(Point<Points>)
Points, from a precise device (a touchpad, a Magic Mouse; AppKit’s
hasPreciseScrollingDeltas, the DOM’s DOM_DELTA_PIXEL).
Lines(Point<f32>)
Lines (notches) of a mouse wheel, the DOM’s DOM_DELTA_LINE.
Implementations§
Trait Implementations§
Source§impl Clone for WheelDelta
impl Clone for WheelDelta
impl Copy for WheelDelta
Source§impl Debug for WheelDelta
impl Debug for WheelDelta
Source§impl Default for WheelDelta
impl Default for WheelDelta
Source§impl PartialEq for WheelDelta
impl PartialEq for WheelDelta
impl StructuralPartialEq for WheelDelta
Auto Trait Implementations§
impl Forget for WheelDelta
impl Freeze for WheelDelta
impl Move for WheelDelta
impl RefUnwindSafe for WheelDelta
impl Send for WheelDelta
impl Sync for WheelDelta
impl Unpin for WheelDelta
impl UnsafeUnpin for WheelDelta
impl UnwindSafe for WheelDelta
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