pub enum MouseKind {
Down(MouseButton),
Up(MouseButton),
Drag(MouseButton),
ScrollUp,
ScrollDown,
Moved,
}Expand description
The type of mouse event.
Variants§
Down(MouseButton)
A mouse button was pressed.
Up(MouseButton)
A mouse button was released.
Drag(MouseButton)
The mouse was moved while a button was held.
ScrollUp
The scroll wheel was rotated upward.
ScrollDown
The scroll wheel was rotated downward.
Moved
The mouse was moved without any button held.
Trait Implementations§
impl Eq for MouseKind
impl StructuralPartialEq for MouseKind
Auto Trait Implementations§
impl Freeze for MouseKind
impl RefUnwindSafe for MouseKind
impl Send for MouseKind
impl Sync for MouseKind
impl Unpin for MouseKind
impl UnsafeUnpin for MouseKind
impl UnwindSafe for MouseKind
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