Struct nannou::ui::input::state::mouse::Mouse[][src]

pub struct Mouse {
    pub buttons: ButtonMap,
    pub xy: [f64; 2],
}

The state of the Mouse, including it's position and button states.

Fields

A map that stores the up/down state of each button.

If the button is down, then it stores the position of the mouse when the button was first pressed.

The current position of the mouse.

Methods

impl Mouse
[src]

Construct a new default Mouse.

Trait Implementations

impl Clone for Mouse
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Mouse
[src]

Formats the value using the given formatter. Read more

impl Copy for Mouse
[src]

impl PartialEq<Mouse> for Mouse
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Mouse

impl Sync for Mouse