pub enum AppMouseAction {
Move {
x: f64,
y: f64,
},
Down {
x: f64,
y: f64,
button: AppMouseButton,
},
Up {
x: f64,
y: f64,
button: AppMouseButton,
},
Click {
x: f64,
y: f64,
button: AppMouseButton,
click_count: u8,
},
Drag {
from_x: f64,
from_y: f64,
to_x: f64,
to_y: f64,
button: AppMouseButton,
},
Scroll {
x: f64,
y: f64,
dx: f64,
dy: f64,
},
}Expand description
App-window mouse action.
Coordinates are logical points in the target window content area, with
origin at the top-left corner of the same visual content captured by
AppScreenshot::take_app_screenshot.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for AppMouseAction
impl Clone for AppMouseAction
Source§fn clone(&self) -> AppMouseAction
fn clone(&self) -> AppMouseAction
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 AppMouseAction
impl Debug for AppMouseAction
Source§impl<'de> Deserialize<'de> for AppMouseAction
impl<'de> Deserialize<'de> for AppMouseAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AppMouseAction
impl RefUnwindSafe for AppMouseAction
impl Send for AppMouseAction
impl Sync for AppMouseAction
impl Unpin for AppMouseAction
impl UnsafeUnpin for AppMouseAction
impl UnwindSafe for AppMouseAction
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