pub struct EmulateTouchFromMouseEventParams<'a> { /* private fields */ }Expand description
Emulates touch event from the mouse event parameters.
Implementations§
Source§impl<'a> EmulateTouchFromMouseEventParams<'a>
impl<'a> EmulateTouchFromMouseEventParams<'a>
Sourcepub fn builder(
type_: impl Into<Cow<'a, str>>,
x: i32,
y: i32,
button: impl Into<MouseButton>,
) -> EmulateTouchFromMouseEventParamsBuilder<'a>
pub fn builder( type_: impl Into<Cow<'a, str>>, x: i32, y: i32, button: impl Into<MouseButton>, ) -> EmulateTouchFromMouseEventParamsBuilder<'a>
Creates a builder for this type with the required parameters:
type_: Type of the mouse event.x: X coordinate of the mouse pointer in DIP.y: Y coordinate of the mouse pointer in DIP.button: Mouse button. Only “none”, “left”, “right” are supported.
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<i64>
pub fn modifiers(&self) -> Option<i64>
Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).
Sourcepub fn click_count(&self) -> Option<u64>
pub fn click_count(&self) -> Option<u64>
Number of times the mouse button was clicked (default: 0).
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for EmulateTouchFromMouseEventParams<'a>
impl<'a> CdpCommand<'a> for EmulateTouchFromMouseEventParams<'a>
Source§impl<'a> Clone for EmulateTouchFromMouseEventParams<'a>
impl<'a> Clone for EmulateTouchFromMouseEventParams<'a>
Source§fn clone(&self) -> EmulateTouchFromMouseEventParams<'a>
fn clone(&self) -> EmulateTouchFromMouseEventParams<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for EmulateTouchFromMouseEventParams<'a>
impl<'a> Debug for EmulateTouchFromMouseEventParams<'a>
Source§impl<'a> Default for EmulateTouchFromMouseEventParams<'a>
impl<'a> Default for EmulateTouchFromMouseEventParams<'a>
Source§fn default() -> EmulateTouchFromMouseEventParams<'a>
fn default() -> EmulateTouchFromMouseEventParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for EmulateTouchFromMouseEventParams<'a>
impl<'de, 'a> Deserialize<'de> for EmulateTouchFromMouseEventParams<'a>
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<'a> Freeze for EmulateTouchFromMouseEventParams<'a>
impl<'a> RefUnwindSafe for EmulateTouchFromMouseEventParams<'a>
impl<'a> Send for EmulateTouchFromMouseEventParams<'a>
impl<'a> Sync for EmulateTouchFromMouseEventParams<'a>
impl<'a> Unpin for EmulateTouchFromMouseEventParams<'a>
impl<'a> UnsafeUnpin for EmulateTouchFromMouseEventParams<'a>
impl<'a> UnwindSafe for EmulateTouchFromMouseEventParams<'a>
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