#[repr(C)]pub struct TouchState {
pub num_touches: usize,
pub touch_points: TouchPointVec,
}Fields§
§num_touches: usizeNumber of active touch points (kept in sync with touch_points.len()).
touch_points: TouchPointVecCurrently active touch points (one entry per finger / stylus). Backends update this on touch start / move / end events.
Trait Implementations§
Source§impl Clone for TouchState
impl Clone for TouchState
Source§fn clone(&self) -> TouchState
fn clone(&self) -> TouchState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TouchState
impl Debug for TouchState
Source§impl Default for TouchState
impl Default for TouchState
Source§fn default() -> TouchState
fn default() -> TouchState
Returns the “default value” for a type. Read more
Source§impl PartialEq for TouchState
impl PartialEq for TouchState
Source§fn eq(&self, other: &TouchState) -> bool
fn eq(&self, other: &TouchState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TouchState
Auto Trait Implementations§
impl Freeze for TouchState
impl RefUnwindSafe for TouchState
impl Send for TouchState
impl Sync for TouchState
impl Unpin for TouchState
impl UnsafeUnpin for TouchState
impl UnwindSafe for TouchState
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