Struct enigo::Enigo
[−]
[src]
pub struct Enigo {}
The main struct for handling the event emitting
Methods
impl Enigo
[src]
Trait Implementations
impl MouseControllable for Enigo
[src]
fn mouse_move_to(&mut self, x: i32, y: i32)
[src]
Lets the mouse cursor move to the specified x and y coordinates. Read more
fn mouse_move_relative(&mut self, x: i32, y: i32)
[src]
Lets the mouse cursor move the specified amount in the x and y direction. Read more
fn mouse_down(&mut self, button: MouseButton)
[src]
Push down one of the mouse buttons Read more
fn mouse_up(&mut self, button: MouseButton)
[src]
Lift up a pushed down mouse button Read more
fn mouse_click(&mut self, button: MouseButton)
[src]
Click a mouse button Read more
fn mouse_scroll_x(&mut self, length: i32)
[src]
Scroll the mouse (wheel) left or right Read more
fn mouse_scroll_y(&mut self, length: i32)
[src]
Scroll the mouse (wheel) up or down Read more
impl KeyboardControllable for Enigo
[src]
fn key_sequence(&mut self, sequence: &str)
[src]
Types the string Read more
fn key_click(&mut self, key: Key)
[src]
Much like the key_down and key_up function they're just invoked consecutively Read more
fn key_down(&mut self, key: Key)
[src]
presses a given key down
fn key_up(&mut self, key: Key)
[src]
release a given key formally pressed down by key_down Read more
fn key_sequence_parse(&mut self, sequence: &str) where
Self: Sized,
[src]
Self: Sized,
Types the string parsed with DSL. Read more
fn key_sequence_parse_try(&mut self, sequence: &str) -> Result<(), ParseError> where
Self: Sized,
[src]
Self: Sized,
Same as key_sequence_parse except returns any errors