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]

Returns a copy of the Press relative to the given xy

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

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

Trait Implementations

impl Copy for Press
[src]

impl Clone for Press
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Press
[src]

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

This method tests for !=.

impl Debug for Press
[src]

Formats the value using the given formatter. Read more

impl From<Press> for Widget
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Press

impl Sync for Press