[][src]Struct pugl_sys::Scroll

pub struct Scroll {
    pub dx: f64,
    pub dy: f64,
    pub modifiers: Modifiers,
}

A mouse wheel scroll event

The scroll distance is expressed in "lines", an arbitrary unit that corresponds to a single tick of a detented mouse wheel. For example, dy = 1.0 scrolls 1 line up. Some systems and devices support finer resolution and/or higher values for fast scrolls, so programs should handle any value gracefully.

Fields

dx: f64

horizontal scroll distance

dy: f64

vertical scroll distance

modifiers: Modifiers

Trait Implementations

impl Clone for Scroll[src]

impl Copy for Scroll[src]

impl Debug for Scroll[src]

impl PartialEq<Scroll> for Scroll[src]

impl StructuralPartialEq for Scroll[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.