pub struct MouseInput { /* private fields */ }Expand description
Sends mouse movements to the app that created this handle.
Requests made before a frame are coalesced to the last position per surface. The host dispatches them through ordinary hit testing, enter/exit handling, and active pointer capture. This does not move the operating system cursor.
Implementations§
Source§impl MouseInput
impl MouseInput
Sourcepub fn move_to(&self, target: MouseInputTarget, position: Point)
pub fn move_to(&self, target: MouseInputTarget, position: Point)
Requests a mouse movement in the target surface’s logical coordinates.
Graphics-layer transforms must already have been applied to position.
Non-finite positions and requests after the app closes are ignored.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MouseInput
impl !Send for MouseInput
impl !Sync for MouseInput
impl !UnwindSafe for MouseInput
impl Freeze for MouseInput
impl Unpin for MouseInput
impl UnsafeUnpin for MouseInput
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