Struct cdp::input::SynthesizePinchGestureCommand
[−]
[src]
pub struct SynthesizePinchGestureCommand { pub x: f64, pub y: f64, pub scale_factor: f64, pub relative_speed: Option<i32>, pub gesture_source_type: Option<GestureSourceType>, }
[Experimental] Synthesizes a pinch gesture over a time period by issuing appropriate touch events.
Command Input.synthesizePinchGesture
Domain Module: cdp::input
Command Struct: cdp::input::SynthesizePinchGestureCommand
Response Struct: cdp::input::SynthesizePinchGestureResponse
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.
scale_factor: f64
Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out).
relative_speed: Option<i32>
Relative pointer speed in pixels per second (default: 800).
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 SynthesizePinchGestureCommand
[src]
fn clone(&self) -> SynthesizePinchGestureCommand
[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 SynthesizePinchGestureCommand
[src]
impl PartialEq for SynthesizePinchGestureCommand
[src]
fn eq(&self, __arg_0: &SynthesizePinchGestureCommand) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SynthesizePinchGestureCommand) -> bool
[src]
This method tests for !=
.
impl CdpCommand for SynthesizePinchGestureCommand
[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "Input.synthesizePinchGesture"
impl SerializeCdpCommand for SynthesizePinchGestureCommand
[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 SynthesizePinchGestureCommand
[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>,