Enum winput::message_loop::Event [−][src]
An event of any kind.
Variants
Fields of Keyboard
Fields of MouseMoveRelative
x: i32
The x coordinate of the mouse, in per-monitor-aware screen coordinates.
y: i32
The y coordinate of the mouse, in per-monitor-aware screen coordinates.
Fields of MouseMoveAbsolute
Fields of MouseButton
action: Action
The action that was taken on the mouse button.
The mouse button involved in the event.
Fields of MouseWheel
delta: f32
The amount of rotation of the wheel. Positive values indicate that the wheel was rotated forward, away from the user; a negative value means that the wheel was rotated backward, toward the user.
direction: WheelDirection
The direction of the wheel.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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>,