pub enum ScrollDelta {
Wheel(i32),
Pixels(f32),
}Expand description
One scroll event on the vertical axis, as wl_pointer reports it.
Positive values scroll down.
Variants§
Wheel(i32)
A mouse wheel, in axis_value120 units: 120 per notch, less for a
high-resolution wheel.
Pixels(f32)
Smooth scrolling, such as from a touchpad, in logical pixels.
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 Forget for ScrollDelta
impl Freeze for ScrollDelta
impl Move 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