Enum winit::MouseScrollDelta
source · pub enum MouseScrollDelta {
LineDelta(f32, f32),
PixelDelta(LogicalPosition),
}
Expand description
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
sourceimpl Clone for MouseScrollDelta
impl Clone for MouseScrollDelta
sourcefn clone(&self) -> MouseScrollDelta
fn clone(&self) -> MouseScrollDelta
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MouseScrollDelta
impl Debug for MouseScrollDelta
sourceimpl<'de> Deserialize<'de> for MouseScrollDelta
impl<'de> Deserialize<'de> for MouseScrollDelta
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<MouseScrollDelta> for MouseScrollDelta
impl PartialEq<MouseScrollDelta> for MouseScrollDelta
sourcefn eq(&self, other: &MouseScrollDelta) -> bool
fn eq(&self, other: &MouseScrollDelta) -> bool
sourceimpl Serialize for MouseScrollDelta
impl Serialize for MouseScrollDelta
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.