Enum pilka_lib::winit::winit::event::MouseScrollDelta [−]
pub enum MouseScrollDelta {
LineDelta(f32, f32),
PixelDelta(PhysicalPosition<f64>),
}
Expand description
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
impl Clone for MouseScrollDelta
pub fn clone(&self) -> MouseScrollDelta
pub fn clone(&self) -> MouseScrollDelta
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for MouseScrollDelta
impl Debug for MouseScrollDelta
impl PartialEq<MouseScrollDelta> for MouseScrollDelta
impl PartialEq<MouseScrollDelta> for MouseScrollDelta
pub fn eq(&self, other: &MouseScrollDelta) -> bool
pub fn eq(&self, other: &MouseScrollDelta) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &MouseScrollDelta) -> bool
pub fn ne(&self, other: &MouseScrollDelta) -> bool
This method tests for !=
.
impl Copy for MouseScrollDelta
impl StructuralPartialEq for MouseScrollDelta
Auto Trait Implementations
impl RefUnwindSafe for MouseScrollDelta
impl Send for MouseScrollDelta
impl Sync for MouseScrollDelta
impl Unpin for MouseScrollDelta
impl UnwindSafe for MouseScrollDelta
Blanket Implementations
Mutably borrows from an owned value. Read more