pub struct Pointer {
pub id: u32,
pub button: Option<PointerButton>,
pub ndc: [f32; 2],
pub delta: [f32; 2],
pub phase: PointerPhase,
pub time: f64,
}Expand description
Positions use NDC; deltas use logical pixels; both are y-up.
Fields§
§id: u32§ndc: [f32; 2]§delta: [f32; 2]§phase: PointerPhase§time: f64Trait Implementations§
impl Copy for Pointer
impl StructuralPartialEq for Pointer
Auto Trait Implementations§
impl Freeze for Pointer
impl RefUnwindSafe for Pointer
impl Send for Pointer
impl Sync for Pointer
impl Unpin for Pointer
impl UnsafeUnpin for Pointer
impl UnwindSafe for Pointer
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