pub enum MouseEventType {
Press(MousePressEvent),
Move(MouseMoveEvent),
Wheel(MouseWheelEvent),
Other(usize),
}Expand description
The type of the mouse event with it’s specific data
Variants§
Press(MousePressEvent)
Button on the mouse was pressed
Move(MouseMoveEvent)
Mouse was moved
Wheel(MouseWheelEvent)
Wheel on the mouse was, well, spinning.
Other(usize)
Received unrecognized mouse event type, the code is stored for reference.
Trait Implementations§
Source§impl Clone for MouseEventType
impl Clone for MouseEventType
Source§fn clone(&self) -> MouseEventType
fn clone(&self) -> MouseEventType
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 MouseEventType
Source§impl Debug for MouseEventType
impl Debug for MouseEventType
impl Eq for MouseEventType
Source§impl Hash for MouseEventType
impl Hash for MouseEventType
Source§impl Ord for MouseEventType
impl Ord for MouseEventType
Source§fn cmp(&self, other: &MouseEventType) -> Ordering
fn cmp(&self, other: &MouseEventType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MouseEventType
impl PartialEq for MouseEventType
Source§impl PartialOrd for MouseEventType
impl PartialOrd for MouseEventType
impl StructuralPartialEq for MouseEventType
Auto Trait Implementations§
impl Freeze for MouseEventType
impl RefUnwindSafe for MouseEventType
impl Send for MouseEventType
impl Sync for MouseEventType
impl Unpin for MouseEventType
impl UnsafeUnpin for MouseEventType
impl UnwindSafe for MouseEventType
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