Struct conrod::event::Click [−][src]
pub struct Click { pub button: MouseButton, pub xy: Point, pub modifiers: ModifierKey, }
Contains all the relevant information for a mouse click.
Fields
Which mouse button was clicked
xy: Point
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]
impl Click
pub fn relative_to(&self, xy: Point) -> Click
[src]
pub fn relative_to(&self, xy: Point) -> Click
Returns a copy of the Click relative to the given xy
Trait Implementations
impl Copy for Click
[src]
impl Copy for Click
impl Clone for Click
[src]
impl Clone for Click
fn clone(&self) -> Click
[src]
fn clone(&self) -> Click
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 PartialEq for Click
[src]
impl PartialEq for Click
fn eq(&self, other: &Click) -> bool
[src]
fn eq(&self, other: &Click) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Click) -> bool
[src]
fn ne(&self, other: &Click) -> bool
This method tests for !=
.
impl Debug for Click
[src]
impl Debug for Click
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<Click> for Widget
[src]
impl From<Click> for Widget