Struct conrod::event::Press
[−]
[src]
pub struct Press {
pub button: Button,
pub modifiers: ModifierKey,
}Contains all relevant information for a Press event.
Fields
The Button that was pressed.
modifiers: ModifierKey
The modifier keys that were down at the time.
Methods
impl Press[src]
pub fn relative_to(&self, xy: Point) -> Press[src]
Returns a copy of the Press relative to the given xy
pub fn mouse(self) -> Option<MousePress>[src]
If the Press event represents the pressing of a mouse button, return Some.
pub fn key(self) -> Option<KeyPress>[src]
If the Press event represents the pressing of keyboard button, return Some.
Trait Implementations
impl Copy for Press[src]
impl Clone for Press[src]
fn clone(&self) -> Press[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 Press[src]
fn eq(&self, __arg_0: &Press) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Press) -> bool[src]
This method tests for !=.
impl Debug for Press[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more