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

pub struct ButtonMap<S = DefaultScalar> { /* fields omitted */ }

Stores the state of all mouse buttons.

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

Methods

impl<S> ButtonMap<S> where
    S: BaseFloat
[src]

Returns a new button map with all states set to None

Returns a copy of the ButtonMap relative to the given Point

The state of the left mouse button.

The state of the middle mouse button.

The state of the right mouse button.

Sets the Button in the Down position.

Set's the Button in the Up position.

Important traits for PressedButtons<'a, S>

An iterator yielding all pressed mouse buttons along with the location at which they were originally pressed.

Trait Implementations

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

impl<S: PartialEq> PartialEq for ButtonMap<S>
[src]

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

This method tests for !=.

impl<S> Index<Button> for ButtonMap<S>
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

Auto Trait Implementations

impl<S> Send for ButtonMap<S> where
    S: Send

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