pub struct SynthesizeTapGestureParams { /* private fields */ }Expand description
Synthesizes a tap gesture over a time period by issuing appropriate touch events.
Implementations§
Source§impl SynthesizeTapGestureParams
impl SynthesizeTapGestureParams
Sourcepub fn builder(x: f64, y: f64) -> SynthesizeTapGestureParamsBuilder
pub fn builder(x: f64, y: f64) -> SynthesizeTapGestureParamsBuilder
Creates a builder for this type with the required parameters:
x: X coordinate of the start of the gesture in CSS pixels.y: Y coordinate of the start of the gesture in CSS pixels.
Sourcepub fn duration(&self) -> Option<i64>
pub fn duration(&self) -> Option<i64>
Duration between touchdown and touchup events in ms (default: 50).
Sourcepub fn tap_count(&self) -> Option<u64>
pub fn tap_count(&self) -> Option<u64>
Number of times to perform the tap (e.g. 2 for double tap, default: 1).
Sourcepub fn gesture_source_type(&self) -> Option<&GestureSourceType>
pub fn gesture_source_type(&self) -> Option<&GestureSourceType>
Which type of input events to be generated (default: ‘default’, which queries the platform for the preferred input type).
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for SynthesizeTapGestureParams
impl<'a> CdpCommand<'a> for SynthesizeTapGestureParams
Source§impl Clone for SynthesizeTapGestureParams
impl Clone for SynthesizeTapGestureParams
Source§fn clone(&self) -> SynthesizeTapGestureParams
fn clone(&self) -> SynthesizeTapGestureParams
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 Debug for SynthesizeTapGestureParams
impl Debug for SynthesizeTapGestureParams
Source§impl Default for SynthesizeTapGestureParams
impl Default for SynthesizeTapGestureParams
Source§fn default() -> SynthesizeTapGestureParams
fn default() -> SynthesizeTapGestureParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SynthesizeTapGestureParams
impl<'de> Deserialize<'de> for SynthesizeTapGestureParams
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 SynthesizeTapGestureParams
impl RefUnwindSafe for SynthesizeTapGestureParams
impl Send for SynthesizeTapGestureParams
impl Sync for SynthesizeTapGestureParams
impl Unpin for SynthesizeTapGestureParams
impl UnsafeUnpin for SynthesizeTapGestureParams
impl UnwindSafe for SynthesizeTapGestureParams
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