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