pub struct EmulateTouchFromMouseEventCommand { /* private fields */ }Available on crate features
Input and experimental only.Expand description
Emulates touch event from the mouse event parameters.
Implementations§
Source§impl EmulateTouchFromMouseEventCommand
impl EmulateTouchFromMouseEventCommand
pub fn builder() -> EmulateTouchFromMouseEventCommandBuilder
Sourcepub fn type(&self) -> &EmulateTouchFromMouseEventCommandType
pub fn type(&self) -> &EmulateTouchFromMouseEventCommandType
Type of the mouse event.
Mouse button. Only “none”, “left”, “right” are supported.
Sourcepub fn timestamp(&self) -> Option<&TimeSinceEpoch>
pub fn timestamp(&self) -> Option<&TimeSinceEpoch>
Time at which the event occurred (default: current time).
Sourcepub fn modifiers(&self) -> Option<&u32>
pub fn modifiers(&self) -> Option<&u32>
Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).
Sourcepub fn click_count(&self) -> Option<&u32>
pub fn click_count(&self) -> Option<&u32>
Number of times the mouse button was clicked (default: 0).
Trait Implementations§
Source§impl Clone for EmulateTouchFromMouseEventCommand
impl Clone for EmulateTouchFromMouseEventCommand
Source§fn clone(&self) -> EmulateTouchFromMouseEventCommand
fn clone(&self) -> EmulateTouchFromMouseEventCommand
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 moreSource§impl<'de> Deserialize<'de> for EmulateTouchFromMouseEventCommand
impl<'de> Deserialize<'de> for EmulateTouchFromMouseEventCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EmulateTouchFromMouseEventCommand
impl RefUnwindSafe for EmulateTouchFromMouseEventCommand
impl Send for EmulateTouchFromMouseEventCommand
impl Sync for EmulateTouchFromMouseEventCommand
impl Unpin for EmulateTouchFromMouseEventCommand
impl UnwindSafe for EmulateTouchFromMouseEventCommand
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