pub enum CursorOp {
MoveTo {
x: f64,
y: f64,
},
ClickAt {
x: f64,
y: f64,
},
HoverAt {
x: f64,
y: f64,
},
Drag {
x1: f64,
y1: f64,
x2: f64,
y2: f64,
},
}Expand description
Coordinate-addressed input operations: vs move-to, vs click-at,
vs hover-at, vs drag. Native event dispatch on backends that
support it (macOS today; Linux + Windows fall through to
ENGINE_UNSUPPORTED until M7 wires GDK / CDP input).
Variants§
MoveTo
Move the pointer to (x, y) without clicking.
ClickAt
Click at (x, y). Includes a humanized lead-in from the last
known cursor position when the mode is Human.
HoverAt
Hover (mouseover) at (x, y).
Drag
Press at (x1, y1), drag along a humanized path to (x2, y2),
release.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CursorOp
impl RefUnwindSafe for CursorOp
impl Send for CursorOp
impl Sync for CursorOp
impl Unpin for CursorOp
impl UnsafeUnpin for CursorOp
impl UnwindSafe for CursorOp
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