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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more