Struct conrod::event::KeyPress [−][src]
pub struct KeyPress { pub key: Key, pub modifiers: ModifierKey, }
Contains all relevant information for the event where a keyboard button was pressed.
Fields
key: Key
The key that was pressed.
modifiers: ModifierKey
The modifier keys that were down at the time.
Trait Implementations
impl Copy for KeyPress
[src]
impl Copy for KeyPress
impl Clone for KeyPress
[src]
impl Clone for KeyPress
fn clone(&self) -> KeyPress
[src]
fn clone(&self) -> KeyPress
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 KeyPress
[src]
impl PartialEq for KeyPress
fn eq(&self, other: &KeyPress) -> bool
[src]
fn eq(&self, other: &KeyPress) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &KeyPress) -> bool
[src]
fn ne(&self, other: &KeyPress) -> bool
This method tests for !=
.
impl Debug for KeyPress
[src]
impl Debug for KeyPress