[−][src]Struct enigo::Enigo
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]
Trait Implementations
impl Debug for Enigo
[src]
impl Default for Enigo
[src]
impl KeyboardControllable for Enigo
[src]
fn key_sequence(&mut self, sequence: &str)
[src]
fn key_click(&mut self, key: Key)
[src]
fn key_down(&mut self, key: Key)
[src]
fn key_up(&mut self, key: Key)
[src]
fn key_sequence_parse(&mut self, sequence: &str) where
Self: Sized,
[src]
Self: Sized,
fn key_sequence_parse_try(&mut self, sequence: &str) -> Result<(), ParseError> where
Self: Sized,
[src]
Self: Sized,
impl MouseControllable for Enigo
[src]
fn mouse_move_to(&mut self, x: i32, y: i32)
[src]
fn mouse_move_relative(&mut self, x: i32, y: i32)
[src]
fn mouse_down(&mut self, button: MouseButton)
[src]
fn mouse_up(&mut self, button: MouseButton)
[src]
fn mouse_click(&mut self, button: MouseButton)
[src]
fn mouse_scroll_x(&mut self, length: i32)
[src]
fn mouse_scroll_y(&mut self, length: i32)
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,