pub enum MouseEvent {
Button {
position: PhysicalPosition<f64>,
state: ButtonState,
button: MouseButton,
modifiers: Modifiers,
is_double_click: bool,
},
Move {
position: PhysicalPosition<f64>,
},
Enter {
position: PhysicalPosition<f64>,
},
Leave {
position: PhysicalPosition<f64>,
},
}Expand description
Mouse events are issued for all pressed and released mouse buttons.
Variants§
Button
Fields
§
position: PhysicalPosition<f64>The position relative to the top-left of the client area.
§
state: ButtonStateWhether the button is pressed or released.
Logical button value.
Move
Fields
§
position: PhysicalPosition<f64>The position relative to the top-left of the client area.
Enter
Fields
§
position: PhysicalPosition<f64>The position relative to the top-left of the client area.
Leave
Fields
§
position: PhysicalPosition<f64>The position relative to the top-left of the client area.
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 moreSource§impl Debug for MouseEvent
impl Debug for MouseEvent
Source§impl From<MouseEvent> for PointerEvent
impl From<MouseEvent> for PointerEvent
Source§fn from(event: MouseEvent) -> Self
fn from(event: MouseEvent) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MouseEvent
impl PartialEq for MouseEvent
Source§impl TryFrom<PointerEvent> for MouseEvent
impl TryFrom<PointerEvent> 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