Struct orbclient::event::MouseEvent
[−]
[src]
pub struct MouseEvent { pub x: i32, pub y: i32, pub left_button: bool, pub middle_button: bool, pub right_button: bool, }
A event related to the mouse
Fields
x: i32
The x coordinate of the mouse
y: i32
The y coordinate of the mouse
Was the left button pressed?
Was the middle button pressed?
Was the right button pressed?
Methods
impl MouseEvent
[src]
fn to_event(&self) -> Event
Convert to an Event
fn from_event(event: Event) -> MouseEvent
Convert an Event
to a MouseEvent
Trait Implementations
impl Copy for MouseEvent
[src]
impl Clone for MouseEvent
[src]
fn clone(&self) -> MouseEvent
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more