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]

[src]

Returns a new button map with all states set to None

[src]

Returns a copy of the ButtonMap relative to the given Point

[src]

The state of the left mouse button.

[src]

The state of the middle mouse button.

[src]

The state of the right mouse button.

[src]

Sets the Button in the Down position.

[src]

Set's the Button in the Up position.

Important traits for PressedButtons<'a, S>
[src]

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter. Read more

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

[src]

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

[src]

This method tests for !=.

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

The returned type after indexing.

[src]

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