Enum winit::MouseScrollDelta [] [src]

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

Variants

LineDelta(f32f32)

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(f32f32)

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

impl PartialEq for MouseScrollDelta
[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

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

This method tests for !=.

impl Copy for MouseScrollDelta
[src]

impl Clone for MouseScrollDelta
[src]

fn clone(&self) -> MouseScrollDelta

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Debug for MouseScrollDelta
[src]

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

Formats the value using the given formatter.