pub struct TouchActions { /* private fields */ }
Expand description
A sequence containing Pointer
actions for a touch device.
Implementations§
Source§impl TouchActions
impl TouchActions
Sourcepub fn new(id: String) -> TouchActions
pub fn new(id: String) -> TouchActions
Create a new TouchActions
sequence.
The id can be any string but must uniquely identify this input source.
Trait Implementations§
Source§impl Clone for TouchActions
impl Clone for TouchActions
Source§fn clone(&self) -> TouchActions
fn clone(&self) -> TouchActions
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 TouchActions
impl Debug for TouchActions
Source§impl From<TouchActions> for ActionSequence
impl From<TouchActions> for ActionSequence
Source§fn from(ta: TouchActions) -> ActionSequence
fn from(ta: TouchActions) -> ActionSequence
Converts to this type from the input type.
Source§impl InputSource for TouchActions
impl InputSource for TouchActions
Source§type Action = PointerAction
type Action = PointerAction
The action type associated with this
InputSource
.Source§fn pause(self, duration: Duration) -> TouchActions
fn pause(self, duration: Duration) -> TouchActions
Add a pause action to the sequence for this input source.
Source§fn then(self, action: <TouchActions as InputSource>::Action) -> TouchActions
fn then(self, action: <TouchActions as InputSource>::Action) -> TouchActions
Add the specified action to the sequence for this input source.
Auto Trait Implementations§
impl Freeze for TouchActions
impl !RefUnwindSafe for TouchActions
impl Send for TouchActions
impl Sync for TouchActions
impl Unpin for TouchActions
impl !UnwindSafe for TouchActions
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