[][src]Enum simulate::Event

pub enum Event {
    Key {
        key: Key,
        action: Action,
    },
    Char {
        character: char,
        action: Action,
    },
    MoveMouseAbsolute {
        x: f32,
        y: f32,
        map_to_virtual_desktop: bool,
    },
    MoveMouseRelative {
        dx: i32,
        dy: i32,
    },
    Scroll {
        delta: f32,
        direction: ScrollDirection,
    },
}

An event that can be sent to a Simulate.

Variants

Key

Fields of Key

key: Keyaction: Action
Char

Fields of Char

character: charaction: Action
MoveMouseAbsolute

Fields of MoveMouseAbsolute

x: f32y: f32map_to_virtual_desktop: bool

Maps the given coordinates to the whole virtual desktop (if multiple monitors are used). When this flag is off, the coordinates (1, 1) map to the lower-right corner of the main monitor.

MoveMouseRelative

Fields of MoveMouseRelative

dx: i32dy: i32
Scroll

Fields of Scroll

delta: f32

One mouse clock is a delta of 1. A positive value means the wheel must be rotated forward (or to the right if the direction is horizontal).

direction: ScrollDirection

Trait Implementations

impl Clone for Event[src]

impl Debug for Event[src]

Auto Trait Implementations

impl RefUnwindSafe for Event

impl Send for Event

impl Sync for Event

impl Unpin for Event

impl UnwindSafe for Event

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> 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.