#[repr(C)]pub struct PointerState {
pub relative_movement: (i32, i32, i32),
pub button: (bool, bool),
}
Expand description
The relative change in the pointer’s state.
Fields§
§relative_movement: (i32, i32, i32)
The relative movement on the X/Y/Z axis.
If PointerMode
indicates an axis is not supported, it must be ignored.
Whether the left / right mouse button is currently pressed.
If PointerMode
indicates a button is not supported, it must be ignored.
Trait Implementations§
source§impl Clone for PointerState
impl Clone for PointerState
source§fn clone(&self) -> PointerState
fn clone(&self) -> PointerState
Returns a copy 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 PointerState
impl Debug for PointerState
impl Copy for PointerState
Auto Trait Implementations§
impl RefUnwindSafe for PointerState
impl Send for PointerState
impl Sync for PointerState
impl Unpin for PointerState
impl UnwindSafe for PointerState
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