pub trait UIActionSimulatorMethods: WxRustMethods {
// Provided methods
fn mouse_move_long(&self, x: c_long, y: c_long) -> bool { ... }
fn mouse_move_point<P: PointMethods>(&self, point: &P) -> bool { ... }
fn mouse_down(&self, button: c_int) -> bool { ... }
fn mouse_up(&self, button: c_int) -> bool { ... }
fn mouse_click(&self, button: c_int) -> bool { ... }
fn mouse_dbl_click(&self, button: c_int) -> bool { ... }
fn mouse_drag_drop(
&self,
x1: c_long,
y1: c_long,
x2: c_long,
y2: c_long,
button: c_int,
) -> bool { ... }
fn key_down(&self, keycode: c_int, modifiers: c_int) -> bool { ... }
fn key_up(&self, keycode: c_int, modifiers: c_int) -> bool { ... }
fn char(&self, keycode: c_int, modifiers: c_int) -> bool { ... }
fn select(&self, text: &str) -> bool { ... }
fn text(&self, text: *const c_void) -> bool { ... }
}Expand description
This trait represents C++ wxUIActionSimulator class’s methods and inheritance.
See UIActionSimulatorIsOwned documentation for the class usage.
Provided Methods§
Sourcefn mouse_move_long(&self, x: c_long, y: c_long) -> bool
fn mouse_move_long(&self, x: c_long, y: c_long) -> bool
Move the mouse to the specified coordinates.
Sourcefn mouse_move_point<P: PointMethods>(&self, point: &P) -> bool
fn mouse_move_point<P: PointMethods>(&self, point: &P) -> bool
Move the mouse to the specified coordinates.
Sourcefn mouse_down(&self, button: c_int) -> bool
fn mouse_down(&self, button: c_int) -> bool
Press a mouse button.
Sourcefn mouse_click(&self, button: c_int) -> bool
fn mouse_click(&self, button: c_int) -> bool
Click a mouse button.
Sourcefn mouse_dbl_click(&self, button: c_int) -> bool
fn mouse_dbl_click(&self, button: c_int) -> bool
Double-click a mouse button.
See C++ wxUIActionSimulator::MouseDblClick()’s documentation.
Sourcefn mouse_drag_drop(
&self,
x1: c_long,
y1: c_long,
x2: c_long,
y2: c_long,
button: c_int,
) -> bool
fn mouse_drag_drop( &self, x1: c_long, y1: c_long, x2: c_long, y2: c_long, button: c_int, ) -> bool
Perform a drag and drop operation.
See C++ wxUIActionSimulator::MouseDragDrop()’s documentation.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.