pub struct PointerButtonEvent {
pub button: Option<PointerButton>,
pub pointer: PointerInfo,
pub state: PointerState,
}Expand description
An event representing a PointerButton that was pressed or released.
Fields§
The PointerButton that was pressed.
pointer: PointerInfoIdentity of the pointer.
state: PointerStateThe state of the pointer (i.e. position, pressure, etc.).
Trait Implementations§
Source§impl Clone for PointerButtonEvent
impl Clone for PointerButtonEvent
Source§fn clone(&self) -> PointerButtonEvent
fn clone(&self) -> PointerButtonEvent
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 PointerButtonEvent
impl RefUnwindSafe for PointerButtonEvent
impl Send for PointerButtonEvent
impl Sync for PointerButtonEvent
impl Unpin for PointerButtonEvent
impl UnwindSafe for PointerButtonEvent
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