Struct cdp::input::SynthesizeTapGestureCommand
[−]
[src]
pub struct SynthesizeTapGestureCommand {
pub x: f64,
pub y: f64,
pub duration: Option<i32>,
pub tap_count: Option<i32>,
pub gesture_source_type: Option<GestureSourceType>,
}[Experimental] Synthesizes a tap gesture over a time period by issuing appropriate touch events.
Command Input.synthesizeTapGesture
Domain Module: cdp::input
Command Struct: cdp::input::SynthesizeTapGestureCommand
Response Struct: cdp::input::SynthesizeTapGestureResponse
Fields
x: f64
X coordinate of the start of the gesture in CSS pixels.
y: f64
Y coordinate of the start of the gesture in CSS pixels.
duration: Option<i32>
Duration between touchdown and touchup events in ms (default: 50).
tap_count: Option<i32>
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).
Trait Implementations
impl Clone for SynthesizeTapGestureCommand[src]
fn clone(&self) -> SynthesizeTapGestureCommand[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for SynthesizeTapGestureCommand[src]
impl PartialEq for SynthesizeTapGestureCommand[src]
fn eq(&self, __arg_0: &SynthesizeTapGestureCommand) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &SynthesizeTapGestureCommand) -> bool[src]
This method tests for !=.
impl CdpCommand for SynthesizeTapGestureCommand[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "Input.synthesizeTapGesture"
impl SerializeCdpCommand for SynthesizeTapGestureCommand[src]
fn command_name(&self) -> &str[src]
fn serialize_command_params<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer, [src]
S: Serializer,
impl<'de> DeserializeCdpCommand<'de> for SynthesizeTapGestureCommand[src]
fn deserialize_command<D>(
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>, [src]
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,