pub struct Mouse;Expand description
The mouse emulator
Implementations§
Source§impl Mouse
impl Mouse
Sourcepub fn display_size() -> Result<(i32, i32)>
pub fn display_size() -> Result<(i32, i32)>
Returns screen resolution (width, height)
Sourcepub fn press_left() -> Result<()>
pub fn press_left() -> Result<()>
Press the left mouse button
Sourcepub fn release_left() -> Result<()>
pub fn release_left() -> Result<()>
Release the left mouse button (uses after ‘hold_left’ method)
Sourcepub fn press_right() -> Result<()>
pub fn press_right() -> Result<()>
Press the right mouse button
Sourcepub fn release_right() -> Result<()>
pub fn release_right() -> Result<()>
Release the right mouse button (uses after ‘hold_right’ method)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mouse
impl RefUnwindSafe for Mouse
impl Send for Mouse
impl Sync for Mouse
impl Unpin for Mouse
impl UnwindSafe for Mouse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more