Enum nannou::ui::input::Button []

pub enum Button {
    Keyboard(Key),
    Mouse(MouseButton),
    Controller(ControllerButton),
}

Models different kinds of buttons.

Variants

A keyboard button.

A mouse button.

A controller button.

Trait Implementations

impl Copy for Button

impl PartialEq<Button> for Button

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

This method tests for !=.

impl<'de> Deserialize<'de> for Button

Deserialize this value from the given Serde deserializer. Read more

impl Clone for Button

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Serialize for Button

Serialize this value into the given Serde serializer. Read more

impl Eq for Button

impl Hash for Button

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl From<MouseButton> for Button

Performs the conversion.

impl From<ControllerButton> for Button

Performs the conversion.

impl From<Key> for Button

Performs the conversion.

impl Debug for Button

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Button

impl Sync for Button