Struct conrod::event::DoubleClick [−][src]
pub struct DoubleClick { pub button: MouseButton, pub xy: Point, pub modifiers: ModifierKey, }
Contains all the relevant information for a double click.
When handling this event, be sure to check that you are handling the intended button
too.
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 DoubleClick
[src]
impl DoubleClick
pub fn relative_to(&self, xy: Point) -> DoubleClick
[src]
pub fn relative_to(&self, xy: Point) -> DoubleClick
Returns a copy of the DoubleClick relative to the given xy
Trait Implementations
impl Copy for DoubleClick
[src]
impl Copy for DoubleClick
impl Clone for DoubleClick
[src]
impl Clone for DoubleClick
fn clone(&self) -> DoubleClick
[src]
fn clone(&self) -> DoubleClick
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 DoubleClick
[src]
impl PartialEq for DoubleClick
fn eq(&self, other: &DoubleClick) -> bool
[src]
fn eq(&self, other: &DoubleClick) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &DoubleClick) -> bool
[src]
fn ne(&self, other: &DoubleClick) -> bool
This method tests for !=
.
impl Debug for DoubleClick
[src]
impl Debug for DoubleClick
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<DoubleClick> for Widget
[src]
impl From<DoubleClick> for Widget
fn from(double_click: DoubleClick) -> Self
[src]
fn from(double_click: DoubleClick) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for DoubleClick
impl Send for DoubleClick
impl Sync for DoubleClick
impl Sync for DoubleClick