pub enum MouseScrollEvent {
Up,
Down,
Continuous(i16),
}
Available on crate feature
input
only.Expand description
Mouse scroll wheel ‘up’ or ‘down’ event, possibly continuous.
Variants§
Up
Single up-scroll event.
Equivalent to Self::Continuous
with a value of [WHEEL_DELTA
].
Down
Single down-scroll event.
Equivalent to Self::Continuous
with a value of -[WHEEL_DELTA
].
Continuous(i16)
Continuous ‘up’ (positive value) or ‘down’ (negative value) scroll event.
Values other than positive or negative [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