[−][src]Enum winput::MouseMotion
Describes a mouse motion.
Variants
Describes a relative mouse motion, in pixels.
Relative mouse motion is subject to the effects of the mouse speed and the two-mouse threshold values. A user sets these three values with the Pointer Speed slider of the Control Panel's Mouse Properties sheet.
Fields of Relative
Describes an absolute mouse motion, in normalized coordinates.
Fields of Absolute
x: f32
The normalized position of the mouse on the horizontal axis. A value of
0.0
maps to the left of the screen and a value of 1.0
maps to the
right of the screen.
y: f32
The normalized position of the mouse on the vertical axis. A value of 0.0
maps to the top of the screen and a value of 1.0
maps to the bottom on the
screen.
virtual_desk: bool
Whether the given normalized coordinates should map to the entier virtual desktop (if multiple monitors are used, for example).
Trait Implementations
impl Clone for MouseMotion
[src]
fn clone(&self) -> MouseMotion
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MouseMotion
[src]
impl Debug for MouseMotion
[src]
Auto Trait Implementations
impl RefUnwindSafe for MouseMotion
[src]
impl Send for MouseMotion
[src]
impl Sync for MouseMotion
[src]
impl Unpin for MouseMotion
[src]
impl UnwindSafe for MouseMotion
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,