Enum winit::event::MouseScrollDelta [−][src]
pub enum MouseScrollDelta { LineDelta(f32, f32), PixelDelta(PhysicalPosition<f64>), }
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.
PixelDelta(PhysicalPosition<f64>)
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 Clone for MouseScrollDelta
[src]
impl Clone for MouseScrollDelta
[src]fn clone(&self) -> MouseScrollDelta
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MouseScrollDelta
[src]
impl Copy for MouseScrollDelta
[src]impl<'de> Deserialize<'de> for MouseScrollDelta
[src]
impl<'de> Deserialize<'de> for MouseScrollDelta
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<MouseScrollDelta> for MouseScrollDelta
[src]
impl PartialEq<MouseScrollDelta> for MouseScrollDelta
[src]fn eq(&self, other: &MouseScrollDelta) -> bool
[src]
fn ne(&self, other: &MouseScrollDelta) -> bool
[src]
impl Serialize for MouseScrollDelta
[src]
impl Serialize for MouseScrollDelta
[src]impl StructuralPartialEq for MouseScrollDelta
[src]
impl StructuralPartialEq for MouseScrollDelta
[src]Auto Trait Implementations
impl RefUnwindSafe for MouseScrollDelta
impl RefUnwindSafe for MouseScrollDelta
impl Send for MouseScrollDelta
impl Send for MouseScrollDelta
impl Sync for MouseScrollDelta
impl Sync for MouseScrollDelta
impl Unpin for MouseScrollDelta
impl Unpin for MouseScrollDelta
impl UnwindSafe for MouseScrollDelta
impl UnwindSafe for MouseScrollDelta
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]