Struct nannou::ui::event::Click
[−]
[src]
pub struct Click { pub button: MouseButton, pub xy: [f64; 2], pub modifiers: ModifierKey, }
Contains all the relevant information for a mouse click.
Fields
Which mouse button was clicked
xy: [f64; 2]
The position at which the mouse was released.
modifiers: ModifierKey
Which modifier keys, if any, that were being held down when the user clicked
Methods
impl Click
[src]
pub fn relative_to(&self, xy: [f64; 2]) -> Click
[src]
Returns a copy of the Click relative to the given xy
Trait Implementations
impl Copy for Click
[src]
impl PartialEq<Click> for Click
[src]
fn eq(&self, __arg_0: &Click) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Click) -> bool
[src]
This method tests for !=
.
impl Clone for Click
[src]
fn clone(&self) -> Click
[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