Enum speedy2d::window::MouseScrollDistance
source · pub enum MouseScrollDistance {
Lines {
x: f64,
y: f64,
z: f64,
},
Pixels {
x: f64,
y: f64,
z: f64,
},
Pages {
x: f64,
y: f64,
z: f64,
},
}
Expand description
Describes a difference in the mouse scroll wheel position.
Variants§
Lines
Fields
x: f64
The horizontal scroll distance. Negative values indicate scrolling left, and positive values indicate scrolling right.
Number of lines or rows to scroll in each direction. The y
field
represents the vertical scroll direction on a typical mouse wheel.
Pixels
Fields
x: f64
The horizontal scroll distance. Negative values indicate scrolling left, and positive values indicate scrolling right.
Number of pixels to scroll in each direction. Scroll events are
expressed in pixels if supported by the device (eg. a touchpad) and
platform. The y
field represents the vertical scroll direction on a
typical mouse wheel.
Pages
Fields
x: f64
The horizontal scroll distance. Negative values indicate scrolling left, and positive values indicate scrolling right.
Number of pages to scroll in each direction (only supported for
WebCanvas). The y
field represents the vertical scroll direction on a
typical mouse wheel.
Trait Implementations§
source§impl Clone for MouseScrollDistance
impl Clone for MouseScrollDistance
source§fn clone(&self) -> MouseScrollDistance
fn clone(&self) -> MouseScrollDistance
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more