Struct cdp::input::EmulateTouchFromMouseEventCommand [] [src]

pub struct EmulateTouchFromMouseEventCommand {
    pub ty: EmulateTouchFromMouseEventCommandType,
    pub x: i32,
    pub y: i32,
    pub timestamp: TimeSinceEpoch,
    pub button: EmulateTouchFromMouseEventCommandButton,
    pub delta_x: Option<f64>,
    pub delta_y: Option<f64>,
    pub modifiers: Option<i32>,
    pub click_count: Option<i32>,
}

[Experimental] Emulates touch event from the mouse event parameters.

Command Input.emulateTouchFromMouseEvent

Domain Module: cdp::input
Command Struct: cdp::input::EmulateTouchFromMouseEventCommand
Response Struct: cdp::input::EmulateTouchFromMouseEventResponse

Fields

Type of the mouse event.

X coordinate of the mouse pointer in DIP.

Y coordinate of the mouse pointer in DIP.

Time at which the event occurred.

Mouse button.

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

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

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

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

Trait Implementations

impl Clone for EmulateTouchFromMouseEventCommand
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for EmulateTouchFromMouseEventCommand
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for EmulateTouchFromMouseEventCommand
[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 EmulateTouchFromMouseEventCommand
[src]

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

impl SerializeCdpCommand for EmulateTouchFromMouseEventCommand
[src]

[src]

[src]

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

[src]

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