Struct kernel::common::event::MouseEvent
[−]
[src]
pub struct MouseEvent { pub x: isize, pub y: isize, pub left_button: bool, pub middle_button: bool, pub right_button: bool, }
A event related to the mouse
Fields
x | The x coordinate |
y | The y coordinate |
left_button | Is the left button pressed? |
middle_button | Is the midle button pressed? |
right_button | Is the right button pressed? |
Methods
impl MouseEvent
fn to_event(&self) -> Event
Convert to an Event
fn from_event(event: Event) -> MouseEvent
Convert an Event
to a MouseEvent
fn trigger(&self)
Mouse event trigger