Struct druid::widget::MouseEvent
source · pub struct MouseEvent {
pub x: f32,
pub y: f32,
pub mods: u32,
pub which: MouseButton,
pub count: u32,
}
Fields
x: f32
X coordinate in px units, relative to top left of widget.
y: f32
Y coordinate in px units, relative to top left of widget.
mods: u32
The modifiers, which have the same interpretation as the raw WM message.
TODO: rationalize this with mouse mods.
which: MouseButton
Which mouse button was pressed.
count: u32
Count of multiple clicks, is 0 for mouse up event.
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