#[non_exhaustive]pub enum MouseEventKind {
Down(MouseButton),
Up(MouseButton),
Drag(MouseButton),
Moved,
ScrollUp,
ScrollDown,
ScrollLeft,
ScrollRight,
}Expand description
Kinds of mouse events.
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.
Down(MouseButton)
Mouse button pressed.
Up(MouseButton)
Mouse button released.
Drag(MouseButton)
Mouse moved while a button was held down; carries which button.
Moved
Mouse moved.
ScrollUp
Mouse wheel scrolled up.
ScrollDown
Mouse wheel scrolled down.
ScrollLeft
Mouse wheel scrolled left (mostly on a laptop touchpad).
ScrollRight
Mouse wheel scrolled right (mostly on a laptop touchpad).
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MouseEventKind
Source§impl Debug for MouseEventKind
impl Debug for MouseEventKind
impl Eq for MouseEventKind
Source§impl Hash for MouseEventKind
impl Hash for MouseEventKind
Source§impl PartialEq for MouseEventKind
impl PartialEq 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