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

pub struct Mouse {
    pub window: Option<Id>,
    pub x: f64,
    pub y: f64,
    pub buttons: ButtonMap,
}

The state of the Mouse at a single moment in time.

Fields

The ID of the last window currently in focus.

x position relative to the middle of window.

y position relative to the middle of window.

A map describing the state of each mouse button.

Methods

impl Mouse
[src]

[src]

Construct a new default Mouse.

[src]

The position of the mouse relative to the middle of the window in focus..

Trait Implementations

impl Copy for Mouse
[src]

impl Clone for Mouse
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Mouse
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Mouse
[src]

[src]

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

[src]

This method tests for !=.