Enum enigo::MouseButton
source · pub enum MouseButton {
Left,
Middle,
Right,
Back,
Forward,
ScrollUp,
ScrollDown,
ScrollLeft,
ScrollRight,
}
Expand description
MouseButton
represents a mouse button and is used in e.g
MouseControllable::mouse_click
.
Variants§
Left
Left mouse button
Middle
Middle mouse button
Right
Right mouse button
Back
4th mouse button. Typically performs the same function as Browser_Back
Forward
5th mouse button. Typically performs the same function as Browser_Forward
ScrollUp
Scroll up button. It is better to use the MouseControllable::mouse_scroll_y method to scroll.
ScrollDown
Scroll down button. It is better to use the MouseControllable::mouse_scroll_y method to scroll.
ScrollLeft
Scroll left button. It is better to use the MouseControllable::mouse_scroll_x method to scroll.
ScrollRight
Scroll right button. It is better to use the MouseControllable::mouse_scroll_x method to scroll.
Trait Implementations§
source§impl Clone for MouseButton
impl Clone for MouseButton
source§fn clone(&self) -> MouseButton
fn clone(&self) -> MouseButton
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MouseButton
impl Debug for MouseButton
source§impl Hash for MouseButton
impl Hash for MouseButton
source§impl PartialEq<MouseButton> for MouseButton
impl PartialEq<MouseButton> for MouseButton
source§fn eq(&self, other: &MouseButton) -> bool
fn eq(&self, other: &MouseButton) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MouseButton
impl Eq for MouseButton
impl StructuralEq for MouseButton
impl StructuralPartialEq for MouseButton
Auto Trait Implementations§
impl RefUnwindSafe for MouseButton
impl Send for MouseButton
impl Sync for MouseButton
impl Unpin for MouseButton
impl UnwindSafe for MouseButton
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