Struct chromiumoxide_cdp::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>,
}
Expand description

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

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

deserialize the response from json

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

The whole string identifier for this method like: DOM.removeNode

The name of the domain this method belongs to: DOM

The standalone identifier of the method inside the domain: removeNode

Tuple of (domain_name, method_name) : (DOM, removeNode)

The identifier for this event’s method field

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.