Struct druid_win_shell::window::MouseEvent
source · pub struct MouseEvent {
pub x: i32,
pub y: i32,
pub mods: u32,
pub which: MouseButton,
pub ty: MouseType,
}
Expand description
A mouse button press or release event.
Fields
x: i32
X coordinate in absolute pixels.
y: i32
Y coordinate in absolute pixels.
mods: u32
Modifiers, as in raw WM message
which: MouseButton
Which button was pressed or released.
ty: MouseType
Type of event.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MouseEvent
impl Send for MouseEvent
impl Sync for MouseEvent
impl Unpin for MouseEvent
impl UnwindSafe for MouseEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more