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]
fn relative_to(&self, xy: Point) -> Press
Returns a copy of the Press relative to the given xy
fn mouse(self) -> Option<MousePress>
If the Press
event represents the pressing of a mouse button, return Some
.
fn key(self) -> Option<KeyPress>
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
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Press
[src]
fn eq(&self, __arg_0: &Press) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Press) -> bool
This method tests for !=
.