Struct orbclient::event::MouseEvent
[−]
[src]
pub struct MouseEvent {
pub x: i32,
pub y: i32,
}A event related to the mouse
Fields
x: i32
The x coordinate of the mouse
y: i32
The y coordinate of the mouse
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