pub struct SynthesizeTapGestureParams {
pub x: f64,
pub y: f64,
pub duration: Option<i64>,
pub tap_count: Option<i64>,
pub gesture_source_type: Option<GestureSourceType>,
}Expand description
Synthesizes a tap gesture over a time period by issuing appropriate touch events. synthesizeTapGesture
Fields§
§x: f64X coordinate of the start of the gesture in CSS pixels.
y: f64Y coordinate of the start of the gesture in CSS pixels.
duration: Option<i64>Duration between touchdown and touchup events in ms (default: 50).
tap_count: Option<i64>Number of times to perform the tap (e.g. 2 for double tap, default: 1).
gesture_source_type: Option<GestureSourceType>Which type of input events to be generated (default: ‘default’, which queries the platform for the preferred input type).
Implementations§
Source§impl SynthesizeTapGestureParams
impl SynthesizeTapGestureParams
pub const IDENTIFIER: &'static str = "Input.synthesizeTapGesture"
Trait Implementations§
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Command for SynthesizeTapGestureParams
impl Command for SynthesizeTapGestureParams
Source§impl Debug for SynthesizeTapGestureParams
impl Debug for SynthesizeTapGestureParams
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
Source§impl Method for SynthesizeTapGestureParams
impl Method for SynthesizeTapGestureParams
Source§fn identifier(&self) -> MethodId
fn identifier(&self) -> MethodId
The whole string identifier for this method like:
DOM.removeNodeSource§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
The name of the domain this method belongs to:
DOMSource§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
The standalone identifier of the method inside the domain:
removeNodeimpl StructuralPartialEq for SynthesizeTapGestureParams
Auto Trait Implementations§
impl Freeze for SynthesizeTapGestureParams
impl RefUnwindSafe for SynthesizeTapGestureParams
impl Send for SynthesizeTapGestureParams
impl Sync for SynthesizeTapGestureParams
impl Unpin 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