Enum glutin::MouseScrollDelta [] [src]

pub enum MouseScrollDelta {
    LineDelta(f32, f32),
    PixelDelta(f32, f32),
}

Variants

LineDelta

Amount in lines or rows to scroll in the horizontal and vertical directions.

Positive values indicate movement forward (away from the user) or rightwards.

PixelDelta

Amount in pixels to scroll in the horizontal and vertical direction.

Scroll events are expressed as a PixelDelta if supported by the device (eg. a touchpad) and platform.

Trait Implementations

Derived Implementations

impl PartialEq for MouseScrollDelta

fn eq(&self, __arg_0: &MouseScrollDelta) -> bool

fn ne(&self, __arg_0: &MouseScrollDelta) -> bool

impl Copy for MouseScrollDelta

impl Clone for MouseScrollDelta

fn clone(&self) -> MouseScrollDelta

1.0.0fn clone_from(&mut self, source: &Self)

impl Debug for MouseScrollDelta

fn fmt(&self, __arg_0: &mut Formatter) -> Result