Struct conrod::event::Press [] [src]

pub struct Press {
    pub button: Button,
    pub modifiers: ModifierKey,
}

Contains all relevant information for a Press event.

Fields

The Button that was pressed.

The modifier keys that were down at the time.

Methods

impl Press
[src]

[src]

Returns a copy of the Press relative to the given xy

[src]

If the Press event represents the pressing of a mouse button, return Some.

[src]

If the Press event represents the pressing of keyboard button, return Some.

Trait Implementations

impl Copy for Press
[src]

impl Clone for Press
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Press
[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 Debug for Press
[src]

[src]

Formats the value using the given formatter.