Struct cdp::input::SynthesizeScrollGestureCommand
[−]
[src]
pub struct SynthesizeScrollGestureCommand<'a> { pub x: f64, pub y: f64, pub x_distance: Option<f64>, pub y_distance: Option<f64>, pub x_overscroll: Option<f64>, pub y_overscroll: Option<f64>, pub prevent_fling: Option<bool>, pub speed: Option<i32>, pub gesture_source_type: Option<GestureSourceType>, pub repeat_count: Option<i32>, pub repeat_delay_ms: Option<i32>, pub interaction_marker_name: Option<Cow<'a, str>>, }
[Experimental] Synthesizes a scroll gesture over a time period by issuing appropriate touch events.
Command Input.synthesizeScrollGesture
Domain Module: cdp::input
Command Struct: cdp::input::SynthesizeScrollGestureCommand
Response Struct: cdp::input::SynthesizeScrollGestureResponse
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.
x_distance: Option<f64>
The distance to scroll along the X axis (positive to scroll left).
y_distance: Option<f64>
The distance to scroll along the Y axis (positive to scroll up).
x_overscroll: Option<f64>
The number of additional pixels to scroll back along the X axis, in addition to the given distance.
y_overscroll: Option<f64>
The number of additional pixels to scroll back along the Y axis, in addition to the given distance.
prevent_fling: Option<bool>
Prevent fling (default: true).
speed: Option<i32>
Swipe 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).
repeat_count: Option<i32>
The number of times to repeat the gesture (default: 0).
repeat_delay_ms: Option<i32>
The number of milliseconds delay between each repeat. (default: 250).
interaction_marker_name: Option<Cow<'a, str>>
The name of the interaction markers to generate, if not empty (default: "").
Trait Implementations
impl<'a> Clone for SynthesizeScrollGestureCommand<'a>
[src]
fn clone(&self) -> SynthesizeScrollGestureCommand<'a>
[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<'a> Debug for SynthesizeScrollGestureCommand<'a>
[src]
impl<'a> PartialEq for SynthesizeScrollGestureCommand<'a>
[src]
fn eq(&self, __arg_0: &SynthesizeScrollGestureCommand<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SynthesizeScrollGestureCommand<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> CdpCommand for SynthesizeScrollGestureCommand<'a>
[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "Input.synthesizeScrollGesture"
impl<'a> SerializeCdpCommand for SynthesizeScrollGestureCommand<'a>
[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, 'a> DeserializeCdpCommand<'de> for SynthesizeScrollGestureCommand<'a>
[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>,