pub struct TouchDevice(/* private fields */);
Expand description
A device that receives the finger input.
Implementations§
Source§impl TouchDevice
impl TouchDevice
Sourcepub fn all_devices() -> Vec<Self>
pub fn all_devices() -> Vec<Self>
Setup the system and recognize all touch devices.
Sourcepub fn record(&self) -> bool
pub fn record(&self) -> bool
Starts to record the gesture. After invoking this and record, then an event gesture::GestureEvent::DollarRecord
will occur. Please handle the event.
Sourcepub fn touch_fingers(&self) -> Vec<TouchFinger<'_>>
pub fn touch_fingers(&self) -> Vec<TouchFinger<'_>>
Returns all the touching fingers.
Trait Implementations§
Source§impl Clone for TouchDevice
impl Clone for TouchDevice
Source§fn clone(&self) -> TouchDevice
fn clone(&self) -> TouchDevice
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 TouchDevice
impl !RefUnwindSafe for TouchDevice
impl Send for TouchDevice
impl !Sync for TouchDevice
impl Unpin for TouchDevice
impl UnwindSafe for TouchDevice
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