Struct autogui::Mouse
[−]
[src]
pub struct Mouse { /* fields omitted */ }
Mouse controller
Methods
impl Mouse
[src]
pub fn at(self, new_pos: Position) -> Mouse
[src]
Perform next event at given position
pub fn move_to(self, new_pos: Position) -> Mouse
[src]
Move mouse to new position
pub fn drag_to(self, new_pos: Position) -> Mouse
[src]
Alias for left_drag_to
pub fn left_drag_to(self, new_pos: Position) -> Mouse
[src]
Drag from the current position to new position with left mouse button
pub fn right_drag_to(self, new_pos: Position) -> Mouse
[src]
Drag from the current position to new position with right mouse button
pub fn drag_to_with(self, new_pos: Position, button: MouseButton) -> Mouse
[src]
Drag from the current position to new position with given mouse button
pub fn down(self, button: MouseButton) -> Mouse
[src]
Press the given mouse button down
pub fn up(self, button: MouseButton) -> Mouse
[src]
Release the given mouse button
pub fn click(self) -> Mouse
[src]
Alias for left_click
pub fn left_click(self) -> Mouse
[src]
Click with left button
pub fn right_click(self) -> Mouse
[src]
Click with right button
pub fn click_with(self, button: MouseButton) -> Mouse
[src]
Click with the given button
pub fn doubleclick(self) -> Mouse
[src]
Alias for left_doubleclick
pub fn left_doubleclick(self) -> Mouse
[src]
Double click with left button
pub fn right_doubleclick(self) -> Mouse
[src]
Double click with right button
pub fn doubleclick_with(self, button: MouseButton) -> Mouse
[src]
Double click with the given mouse button
Trait Implementations
impl Debug for Mouse
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more