Enum winit::MouseScrollDelta [−][src]
pub enum MouseScrollDelta { LineDelta(f32, f32), PixelDelta(LogicalPosition), }
Describes a difference in the mouse scroll wheel state.
Variants
LineDelta(f32, f32)
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(LogicalPosition)
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]
impl Debug for MouseScrollDelta
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for MouseScrollDelta
[src]
impl Clone for MouseScrollDelta
fn clone(&self) -> MouseScrollDelta
[src]
fn clone(&self) -> MouseScrollDelta
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for MouseScrollDelta
[src]
impl Copy for MouseScrollDelta
impl PartialEq for MouseScrollDelta
[src]
impl PartialEq for MouseScrollDelta
fn eq(&self, other: &MouseScrollDelta) -> bool
[src]
fn eq(&self, other: &MouseScrollDelta) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &MouseScrollDelta) -> bool
[src]
fn ne(&self, other: &MouseScrollDelta) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for MouseScrollDelta
impl Send for MouseScrollDelta
impl Sync for MouseScrollDelta
impl Sync for MouseScrollDelta