Enum conrod::event::Button [] [src]

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

The different kinds of Buttons that may be Pressed or Released.

Variants

Keyboard(Key)

A keyboard button.

Mouse(MouseButtonPoint)

A mouse button along with the location at which it was Pressed/Released.

Controller(ControllerButton)

A controller button.

Methods

impl Button
[src]

fn relative_to(&self, xy: Point) -> Button

Returns a copy of the Button relative to the given xy

Trait Implementations

impl Debug for Button
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl PartialEq for Button
[src]

fn eq(&self, __arg_0: &Button) -> bool

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

fn ne(&self, __arg_0: &Button) -> bool

This method tests for !=.

impl Clone for Button
[src]

fn clone(&self) -> Button

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Button
[src]