Struct chrome_remote_interface_model::input::EmulateTouchFromMouseEventCommand[][src]

pub struct EmulateTouchFromMouseEventCommand { /* fields omitted */ }
This is supported on crate features Input and experimental only.

Emulates touch event from the mouse event parameters.

Implementations

impl EmulateTouchFromMouseEventCommand[src]

pub fn builder() -> EmulateTouchFromMouseEventCommandBuilder[src]

pub fn type(&self) -> &EmulateTouchFromMouseEventCommandType[src]

Type of the mouse event.

pub fn x(&self) -> u32[src]

X coordinate of the mouse pointer in DIP.

pub fn y(&self) -> u32[src]

Y coordinate of the mouse pointer in DIP.

pub fn button(&self) -> &MouseButton[src]

Mouse button. Only "none", "left", "right" are supported.

pub fn timestamp(&self) -> Option<&TimeSinceEpoch>[src]

Time at which the event occurred (default: current time).

pub fn delta_x(&self) -> Option<&f64>[src]

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

pub fn delta_y(&self) -> Option<&f64>[src]

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

pub fn modifiers(&self) -> Option<&u32>[src]

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

pub fn click_count(&self) -> Option<&u32>[src]

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

Trait Implementations

impl Clone for EmulateTouchFromMouseEventCommand[src]

impl Command for EmulateTouchFromMouseEventCommand[src]

type Return = EmulateTouchFromMouseEventReturn

Return type.

impl Debug for EmulateTouchFromMouseEventCommand[src]

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

impl Serialize for EmulateTouchFromMouseEventCommand[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.