#[repr(C)]pub struct PointerState {
pub relative_movement: [i32; 3],
pub button: [bool; 2],
}
Expand description
The relative change in the pointer’s state.
Fields§
§relative_movement: [i32; 3]
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
source§impl Default for PointerState
impl Default for PointerState
source§fn default() -> PointerState
fn default() -> PointerState
Returns the “default value” for a type. Read more
source§impl PartialEq for PointerState
impl PartialEq for PointerState
source§fn eq(&self, other: &PointerState) -> bool
fn eq(&self, other: &PointerState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PointerState
impl Eq for PointerState
impl StructuralPartialEq for PointerState
Auto Trait Implementations§
impl Freeze for PointerState
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