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