pub enum MouseEvent {
Moved {
x: i32,
y: i32,
dx: i32,
dy: i32,
},
LeftClick {
x: i32,
y: i32,
},
LeftDoubleClick {
x: i32,
y: i32,
},
RightClick {
x: i32,
y: i32,
},
RightDoubleClick {
x: i32,
y: i32,
},
MiddleClick {
x: i32,
y: i32,
},
ButtonDown {
x: i32,
y: i32,
button: MouseButton,
},
ButtonUp {
x: i32,
y: i32,
button: MouseButton,
},
Wheel {
x: i32,
y: i32,
direction: MouseWheelDirection,
},
EnterWindow,
LeaveWindow,
}Variants§
Moved
LeftClick
LeftDoubleClick
RightClick
RightDoubleClick
MiddleClick
ButtonDown
ButtonUp
Wheel
EnterWindow
LeaveWindow
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