pub enum MouseEvent {
Press(u8),
Release(u8),
Move(Option<u8>),
Wheel(bool),
}Expand description
What the mouse did. Buttons are 0 (left), 1 (middle) and 2 (right).
Variants§
Press(u8)
Release(u8)
Move(Option<u8>)
It moved, with this button held (or none).
Wheel(bool)
The wheel: up or down.
Trait Implementations§
Source§impl Clone for MouseEvent
impl Clone for MouseEvent
impl Copy for MouseEvent
Source§impl Debug for MouseEvent
impl Debug for MouseEvent
impl Eq for MouseEvent
Source§impl PartialEq for MouseEvent
impl PartialEq for MouseEvent
impl StructuralPartialEq for MouseEvent
Auto Trait Implementations§
impl Freeze for MouseEvent
impl RefUnwindSafe for MouseEvent
impl Send for MouseEvent
impl Sync for MouseEvent
impl Unpin for MouseEvent
impl UnsafeUnpin for MouseEvent
impl UnwindSafe for MouseEvent
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