pub enum MouseScrollEvent {
Up(u16),
Down(u16),
Continuous(i16),
}Available on crate feature
input only.Expand description
Mouse scroll wheel ‘up’ or ‘down’ event, possibly continuous.
Variants§
Up(u16)
One or more full up-scroll events.
Equivalent to Self::Continuous with a multiple of Self::WHEEL_DELTA.
Down(u16)
One or more full down-scroll events.
Equivalent to Self::Continuous with a multiple of -Self::WHEEL_DELTA.
Continuous(i16)
Continuous ‘up’ (positive value) or ‘down’ (negative value) scroll event.
Values other than multiples of positive or negative Self::WHEEL_DELTA are used for mouses
with continuous scroll wheels.
Implementations§
Trait Implementations§
Source§impl Clone for MouseScrollEvent
impl Clone for MouseScrollEvent
Source§fn clone(&self) -> MouseScrollEvent
fn clone(&self) -> MouseScrollEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MouseScrollEvent
impl Debug for MouseScrollEvent
Source§impl PartialEq for MouseScrollEvent
impl PartialEq for MouseScrollEvent
impl Copy for MouseScrollEvent
impl Eq for MouseScrollEvent
impl StructuralPartialEq for MouseScrollEvent
Auto Trait Implementations§
impl Freeze for MouseScrollEvent
impl RefUnwindSafe for MouseScrollEvent
impl Send for MouseScrollEvent
impl Sync for MouseScrollEvent
impl Unpin for MouseScrollEvent
impl UnwindSafe for MouseScrollEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more