Struct conrod::input::state::mouse::ButtonMap [] [src]

pub struct ButtonMap { /* 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 ButtonMap
[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>
[src]

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

Trait Implementations

impl Copy for ButtonMap
[src]

impl Clone for ButtonMap
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ButtonMap
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for ButtonMap
[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 Index<Button> for ButtonMap
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.