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

The x coordinate of the mouse

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]

Convert to an Event

Convert an Event to a MouseEvent

Trait Implementations

impl Copy for MouseEvent
[src]

impl Clone for MouseEvent
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for MouseEvent
[src]

Formats the value using the given formatter.