Struct show_image::event::WindowMouseWheelEvent
source · pub struct WindowMouseWheelEvent {
pub window_id: WindowId,
pub device_id: DeviceId,
pub delta: MouseScrollDelta,
pub phase: TouchPhase,
pub position: Option<Vec2>,
pub buttons: MouseButtonState,
pub modifiers: ModifiersState,
}
Expand description
A window received mouse wheel input.
Fields§
§window_id: WindowId
The ID of the window.
device_id: DeviceId
The device that generated the input.
delta: MouseScrollDelta
The scroll delta of the mouse wheel.
phase: TouchPhase
The touch-screen input state.
position: Option<Vec2>
The current position of the mouse cursor inside the window.
The pressed state of all mouse buttons.
modifiers: ModifiersState
The state of the keyboard modifiers at the time of the event.
Trait Implementations§
source§impl Clone for WindowMouseWheelEvent
impl Clone for WindowMouseWheelEvent
source§fn clone(&self) -> WindowMouseWheelEvent
fn clone(&self) -> WindowMouseWheelEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WindowMouseWheelEvent
impl Debug for WindowMouseWheelEvent
source§impl From<WindowMouseWheelEvent> for WindowEvent
impl From<WindowMouseWheelEvent> for WindowEvent
source§fn from(other: WindowMouseWheelEvent) -> Self
fn from(other: WindowMouseWheelEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WindowMouseWheelEvent
impl RefUnwindSafe for WindowMouseWheelEvent
impl Send for WindowMouseWheelEvent
impl Sync for WindowMouseWheelEvent
impl Unpin for WindowMouseWheelEvent
impl UnwindSafe for WindowMouseWheelEvent
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