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

pub struct Mouse<S = DefaultScalar> {
    pub window: Option<Id>,
    pub x: S,
    pub y: S,
    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<S> Mouse<S> where
    S: BaseFloat
[src]

Construct a new default Mouse.

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

Trait Implementations

impl<S: Copy> Copy for Mouse<S>
[src]

impl<S: Clone> Clone for Mouse<S>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<S: Debug> Debug for Mouse<S>
[src]

Formats the value using the given formatter. Read more

impl<S: PartialEq> PartialEq for Mouse<S>
[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<S> Send for Mouse<S> where
    S: Send

impl<S> Sync for Mouse<S> where
    S: Sync