Enum sixtyfps_corelib::input::MouseEvent
source · [−]#[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
MousePressed
The mouse was pressed
MouseReleased
The mouse was released
MouseMoved
Fields
pos: Point
The mouse position has changed
MouseWheel
Wheel was operated.
pos
is the position of the mouse when the event happens.
delta
is the amount of pixel to scroll.
MouseExit
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