Enum winit::MouseScrollDelta[][src]

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

Describes a difference in the mouse scroll wheel state.

Variants

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

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

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 Debug for MouseScrollDelta
[src]

Formats the value using the given formatter. Read more

impl Clone for MouseScrollDelta
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for MouseScrollDelta
[src]

impl PartialEq for MouseScrollDelta
[src]

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

This method tests for !=.

Auto Trait Implementations