Struct cdp::input::DispatchMouseEventCommand [] [src]

pub struct DispatchMouseEventCommand {
    pub ty: DispatchMouseEventCommandType,
    pub x: f64,
    pub y: f64,
    pub modifiers: Option<i32>,
    pub timestamp: Option<TimeSinceEpoch>,
    pub button: Option<DispatchMouseEventCommandButton>,
    pub click_count: Option<i32>,
    pub delta_x: Option<f64>,
    pub delta_y: Option<f64>,
}

Dispatches a mouse event to the page.

Command Input.dispatchMouseEvent

Domain Module: cdp::input
Command Struct: cdp::input::DispatchMouseEventCommand
Response Struct: cdp::input::DispatchMouseEventResponse

Fields

Type of the mouse event.

X coordinate of the event relative to the main frame's viewport in CSS pixels.

Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.

Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).

Time at which the event occurred.

Mouse button (default: "none").

Number of times the mouse button was clicked (default: 0).

X delta in CSS pixels for mouse wheel event (default: 0).

Y delta in CSS pixels for mouse wheel event (default: 0).

Trait Implementations

impl Clone for DispatchMouseEventCommand
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for DispatchMouseEventCommand
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for DispatchMouseEventCommand
[src]

[src]

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

[src]

This method tests for !=.

impl CdpCommand for DispatchMouseEventCommand
[src]

COMMAND_NAME: &'static str = "Input.dispatchMouseEvent"

impl SerializeCdpCommand for DispatchMouseEventCommand
[src]

[src]

[src]

impl<'de> DeserializeCdpCommand<'de> for DispatchMouseEventCommand
[src]

[src]

impl<'b> HasCdpResponse<'b> for DispatchMouseEventCommand
[src]