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