pub enum NativeAction {
Click {
x: i32,
y: i32,
button: MouseButton,
},
DoubleClick {
x: i32,
y: i32,
button: MouseButton,
},
RightClick {
x: i32,
y: i32,
},
MoveMouse {
x: i32,
y: i32,
},
Drag {
from_x: i32,
from_y: i32,
to_x: i32,
to_y: i32,
duration_ms: u64,
button: MouseButton,
},
Scroll {
x: Option<i32>,
y: Option<i32>,
delta_x: i32,
delta_y: i32,
},
Type {
text: String,
},
PressKey {
key: String,
},
Hotkey {
keys: Vec<String>,
},
Wait {
duration_ms: u64,
},
}Variants§
Trait Implementations§
Source§impl Clone for NativeAction
impl Clone for NativeAction
Source§fn clone(&self) -> NativeAction
fn clone(&self) -> NativeAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NativeAction
impl Debug for NativeAction
Source§impl PartialEq for NativeAction
impl PartialEq for NativeAction
Source§fn eq(&self, other: &NativeAction) -> bool
fn eq(&self, other: &NativeAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NativeAction
Auto Trait Implementations§
impl Freeze for NativeAction
impl RefUnwindSafe for NativeAction
impl Send for NativeAction
impl Sync for NativeAction
impl Unpin for NativeAction
impl UnsafeUnpin for NativeAction
impl UnwindSafe for NativeAction
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