pub enum MouseEvent {
Moved {
x: f32,
y: f32,
},
ButtonPressed {
button: MouseButton,
x: f32,
y: f32,
},
ButtonReleased {
button: MouseButton,
x: f32,
y: f32,
},
Entered,
Left,
}Expand description
Mouse events
Variants§
Moved
Mouse moved to position
ButtonPressed
Mouse button pressed
ButtonReleased
Mouse button released
Entered
Mouse entered the window
Left
Mouse left the window
Trait Implementations§
Source§impl Clone for MouseEvent
impl Clone for MouseEvent
Source§fn clone(&self) -> MouseEvent
fn clone(&self) -> MouseEvent
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 moreAuto 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