#[non_exhaustive]pub enum MouseEventKind {
Press(MouseButton),
Release(MouseButton),
Move,
Scroll(f64),
}Expand description
The specific mouse action that occurred.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Press(MouseButton)
A button was pressed.
Release(MouseButton)
A button was released.
Move
The cursor moved.
Scroll(f64)
Mouse wheel scrolled. Positive = scroll up (zoom in convention).
Trait Implementations§
Source§impl Clone for MouseEventKind
impl Clone for MouseEventKind
Source§fn clone(&self) -> MouseEventKind
fn clone(&self) -> MouseEventKind
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 MouseEventKind
impl Debug for MouseEventKind
Source§impl PartialEq for MouseEventKind
impl PartialEq for MouseEventKind
impl Copy for MouseEventKind
impl StructuralPartialEq for MouseEventKind
Auto Trait Implementations§
impl Freeze for MouseEventKind
impl RefUnwindSafe for MouseEventKind
impl Send for MouseEventKind
impl Sync for MouseEventKind
impl Unpin for MouseEventKind
impl UnsafeUnpin for MouseEventKind
impl UnwindSafe for MouseEventKind
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