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]
pub fn relative_to(&self, xy: Point) -> DoubleClick[src]
Returns a copy of the DoubleClick relative to the given xy
Trait Implementations
impl Copy for DoubleClick[src]
impl Clone for DoubleClick[src]
fn clone(&self) -> DoubleClick[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 DoubleClick[src]
fn eq(&self, __arg_0: &DoubleClick) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &DoubleClick) -> bool[src]
This method tests for !=.
impl Debug for DoubleClick[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl From<DoubleClick> for Widget[src]
fn from(double_click: DoubleClick) -> Self[src]
Performs the conversion.