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
ty: DispatchMouseEventCommandType
Type of the mouse event.
x: f64
X coordinate of the event relative to the main frame's viewport in CSS pixels.
y: f64
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.
modifiers: Option<i32>
Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).
timestamp: Option<TimeSinceEpoch>
Time at which the event occurred.
Mouse button (default: "none").
click_count: Option<i32>
Number of times the mouse button was clicked (default: 0).
delta_x: Option<f64>
X delta in CSS pixels for mouse wheel event (default: 0).
delta_y: Option<f64>
Y delta in CSS pixels for mouse wheel event (default: 0).
Trait Implementations
impl Clone for DispatchMouseEventCommand
[src]
fn clone(&self) -> DispatchMouseEventCommand
[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 Debug for DispatchMouseEventCommand
[src]
impl PartialEq for DispatchMouseEventCommand
[src]
fn eq(&self, __arg_0: &DispatchMouseEventCommand) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DispatchMouseEventCommand) -> bool
[src]
This method tests for !=
.
impl CdpCommand for DispatchMouseEventCommand
[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "Input.dispatchMouseEvent"
impl SerializeCdpCommand for DispatchMouseEventCommand
[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> DeserializeCdpCommand<'de> for DispatchMouseEventCommand
[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>,