Struct redox::orbital::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 of the mouse |
y | The y coordinate of the mouse |
left_button | Was the left button pressed? |
middle_button | Was the middle button pressed? |
right_button | Was 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