Struct show_image::event::WindowMouseMoveEvent
source · pub struct WindowMouseMoveEvent {
pub window_id: WindowId,
pub device_id: DeviceId,
pub position: Vec2,
pub prev_position: Vec2,
pub buttons: MouseButtonState,
pub modifiers: ModifiersState,
}
Expand description
The mouse cursor was moved on a window.
Fields§
§window_id: WindowId
The ID of the window.
device_id: DeviceId
The device that generated the input.
position: Vec2
The new position of the cursor in physical pixels, relative to the top-left corner of the window.
prev_position: Vec2
The position of the mouse cursor before the last movement.
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 WindowMouseMoveEvent
impl Clone for WindowMouseMoveEvent
source§fn clone(&self) -> WindowMouseMoveEvent
fn clone(&self) -> WindowMouseMoveEvent
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 WindowMouseMoveEvent
impl Debug for WindowMouseMoveEvent
source§impl From<WindowMouseMoveEvent> for WindowEvent
impl From<WindowMouseMoveEvent> for WindowEvent
source§fn from(other: WindowMouseMoveEvent) -> Self
fn from(other: WindowMouseMoveEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WindowMouseMoveEvent
impl RefUnwindSafe for WindowMouseMoveEvent
impl Send for WindowMouseMoveEvent
impl Sync for WindowMouseMoveEvent
impl Unpin for WindowMouseMoveEvent
impl UnwindSafe for WindowMouseMoveEvent
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