pub enum MouseEvent {
Input {
button: MouseButton,
state: MouseButtonState,
},
Scroll {
delta: ScrollingDelta,
phase: ScrollingPhase,
},
Moved {
position: PhysicalPosition<f64>,
},
Entered,
Exited,
}
Expand description
Mouse events.
Variants§
Input
Mouse button input event.
Fields
Mouse button (see MouseButton).
§
state: MouseButtonState
Mouse button state (see MouseButtonState).
Scroll
Mouse wheel scroll event.
Moved
Mouse cursor has been moved.
Fields
§
position: PhysicalPosition<f64>
New cursor position.
Entered
Mouse position has entered into a window view frame.
Exited
Mouse position has left a window view frame.
Trait Implementations§
Source§impl Debug for MouseEvent
impl Debug for MouseEvent
Source§impl PartialEq for MouseEvent
impl PartialEq for MouseEvent
Source§impl PartialOrd for MouseEvent
impl PartialOrd 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 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