Enum sixtyfps_corelib::input::MouseEvent [−][src]
#[repr(C)]
pub enum MouseEvent {
MousePressed {
pos: Point,
button: PointerEventButton,
},
MouseReleased {
pos: Point,
button: PointerEventButton,
},
MouseMoved {
pos: Point,
},
MouseWheel {
pos: Point,
delta: Point,
},
MouseExit,
}
Expand description
A Mouse event
Variants
The mouse was pressed
Fields of MousePressed
pos: Point
The mouse was released
Fields of MouseReleased
pos: Point
The mouse position has changed
Fields of MouseMoved
pos: Point
Wheel was operated.
pos
is the position of the mouse when the event happens.
delta
is the amount of pixel to scroll.
The mouse exited the item or component
Implementations
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
Mutably borrows from an owned value. Read more