Enum nannou::ui::event::Button [−][src]
pub enum Button { Keyboard(Key), Mouse(MouseButton, [f64; 2]), Controller(ControllerButton), }
The different kinds of Button
s that may be Press
ed or Release
d.
Variants
Keyboard(Key)
A keyboard button.
Mouse(MouseButton, [f64; 2])
A mouse button along with the location at which it was Press
ed/Release
d.
Controller(ControllerButton)
A controller button.
Methods
impl Button
[src]
impl Button
pub fn relative_to(&self, xy: [f64; 2]) -> Button
[src]
pub fn relative_to(&self, xy: [f64; 2]) -> Button
Returns a copy of the Button relative to the given xy
Trait Implementations
impl Clone for Button
[src]
impl Clone for Button
fn clone(&self) -> Button
[src]
fn clone(&self) -> Button
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Button
[src]
impl Debug for Button
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Copy for Button
[src]
impl Copy for Button
impl PartialEq<Button> for Button
[src]
impl PartialEq<Button> for Button