pub enum PointerEvent {
Button {
pointer: PointerType,
position: PhysicalPosition<f64>,
state: ButtonState,
button: PointerButton,
modifiers: Modifiers,
is_double: bool,
},
Move {
pointer: PointerType,
position: PhysicalPosition<f64>,
},
Enter {
pointer: PointerType,
position: PhysicalPosition<f64>,
},
Leave {
pointer: PointerType,
position: PhysicalPosition<f64>,
},
}Variants§
Button
Fields
§
pointer: PointerTypeThe type of pointer that fired this event.
§
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
§
pointer: PointerTypeThe type of pointer that fired this event.
§
position: PhysicalPosition<f64>The position relative to the top-left of the client area.
Enter
Fields
§
pointer: PointerTypeThe type of pointer that fired this event.
§
position: PhysicalPosition<f64>The position relative to the top-left of the client area.
Leave
Fields
§
pointer: PointerTypeThe type of pointer that fired this event.
§
position: PhysicalPosition<f64>The position relative to the top-left of the client area.
Implementations§
Source§impl PointerEvent
impl PointerEvent
pub fn mouse_event(self) -> Option<MouseEvent>
Trait Implementations§
Source§impl Clone for PointerEvent
impl Clone for PointerEvent
Source§fn clone(&self) -> PointerEvent
fn clone(&self) -> PointerEvent
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 PointerEvent
impl Debug for PointerEvent
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 PointerEvent
impl PartialEq for PointerEvent
Source§impl TryFrom<PointerEvent> for MouseEvent
impl TryFrom<PointerEvent> for MouseEvent
impl StructuralPartialEq for PointerEvent
Auto Trait Implementations§
impl Freeze for PointerEvent
impl RefUnwindSafe for PointerEvent
impl Send for PointerEvent
impl Sync for PointerEvent
impl Unpin for PointerEvent
impl UnsafeUnpin for PointerEvent
impl UnwindSafe for PointerEvent
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