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