Enum conrod::event::Button
[−]
[src]
pub enum Button {
Keyboard(Key),
Mouse(MouseButton, Point),
Controller(ControllerButton),
}The different kinds of Buttons that may be Pressed or Released.
Variants
Keyboard(Key)A keyboard button.
Mouse(MouseButton, Point)A mouse button along with the location at which it was Pressed/Released.
Controller(ControllerButton)A controller button.
Methods
impl Button[src]
pub fn relative_to(&self, xy: Point) -> Button[src]
Returns a copy of the Button relative to the given xy
Trait Implementations
impl Copy for Button[src]
impl Clone for Button[src]
fn clone(&self) -> Button[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq for Button[src]
fn eq(&self, __arg_0: &Button) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Button) -> bool[src]
This method tests for !=.