Enum window_events::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 MouseScrollDeltafn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for MouseScrollDelta[src]
impl Clone for MouseScrollDeltafn clone(&self) -> MouseScrollDelta[src]
fn clone(&self) -> MouseScrollDeltaReturns 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 MouseScrollDeltaimpl PartialEq for MouseScrollDelta[src]
impl PartialEq for MouseScrollDeltafn eq(&self, other: &MouseScrollDelta) -> bool[src]
fn eq(&self, other: &MouseScrollDelta) -> boolThis 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) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for MouseScrollDelta
impl Send for MouseScrollDeltaimpl Sync for MouseScrollDelta
impl Sync for MouseScrollDelta