[][src]Struct enigo::Enigo

pub struct Enigo { /* fields omitted */ }

The main struct for handling the event emitting

Methods

impl Enigo[src]

pub fn main_display_size() -> (usize, usize)[src]

Fetches the (width, height) in pixels of the main display

pub fn mouse_location() -> (i32, i32)[src]

The mouse coordinates in points, only works on the main display

impl Enigo[src]

pub fn new() -> Self[src]

Constructs a new Enigo instance.

Example

use enigo::*;
let mut enigo = Enigo::new();

Trait Implementations

impl Debug for Enigo[src]

impl Default for Enigo[src]

impl KeyboardControllable for Enigo[src]

impl MouseControllable for Enigo[src]

Auto Trait Implementations

impl RefUnwindSafe for Enigo

impl !Send for Enigo

impl !Sync for Enigo

impl Unpin for Enigo

impl UnwindSafe for Enigo

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