pub enum MouseEventKind {
Down(MouseButton),
Up(MouseButton),
Drag(MouseButton),
Moved,
ScrollUp,
ScrollDown,
ScrollLeft,
ScrollRight,
}Expand description
The type of mouse event.
Variants§
Down(MouseButton)
Mouse button pressed down.
Up(MouseButton)
Mouse button released.
Drag(MouseButton)
Mouse dragged while button held.
Moved
Mouse moved (no button pressed).
ScrollUp
Mouse wheel scrolled up.
ScrollDown
Mouse wheel scrolled down.
ScrollLeft
Mouse wheel scrolled left (horizontal scroll).
ScrollRight
Mouse wheel scrolled right (horizontal scroll).
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 Hash for MouseEventKind
impl Hash for MouseEventKind
Source§impl PartialEq for MouseEventKind
impl PartialEq for MouseEventKind
impl Copy for MouseEventKind
impl Eq 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