Struct rich_sdl2_rust::event::touch::TouchDevice
source · 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 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 moreAuto Trait Implementations§
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