Struct chromiumoxide::cdp::browser_protocol::input::SynthesizeScrollGestureParams[][src]

pub struct SynthesizeScrollGestureParams {
    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<i64>,
    pub gesture_source_type: Option<GestureSourceType>,
    pub repeat_count: Option<i64>,
    pub repeat_delay_ms: Option<i64>,
    pub interaction_marker_name: Option<String>,
}

Synthesizes a scroll gesture over a time period by issuing appropriate touch events. synthesizeScrollGesture

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<i64>

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<i64>

The number of times to repeat the gesture (default: 0).

repeat_delay_ms: Option<i64>

The number of milliseconds delay between each repeat. (default: 250).

interaction_marker_name: Option<String>

The name of the interaction markers to generate, if not empty (default: “”).

Implementations

impl SynthesizeScrollGestureParams[src]

pub fn new(
    x: impl Into<f64>,
    y: impl Into<f64>
) -> SynthesizeScrollGestureParams
[src]

impl SynthesizeScrollGestureParams[src]

impl SynthesizeScrollGestureParams[src]

pub const IDENTIFIER: &'static str[src]

Trait Implementations

impl Clone for SynthesizeScrollGestureParams[src]

impl Command for SynthesizeScrollGestureParams[src]

type Response = SynthesizeScrollGestureReturns

The type of the response this request triggers on the chromium server

impl Debug for SynthesizeScrollGestureParams[src]

impl<'de> Deserialize<'de> for SynthesizeScrollGestureParams[src]

impl Method for SynthesizeScrollGestureParams[src]

impl MethodType for SynthesizeScrollGestureParams[src]

impl PartialEq<SynthesizeScrollGestureParams> for SynthesizeScrollGestureParams[src]

impl Serialize for SynthesizeScrollGestureParams[src]

impl StructuralPartialEq for SynthesizeScrollGestureParams[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,