Struct nannou::ui::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 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 Debug for KeyPress
[src]
impl Debug for KeyPress
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Copy for KeyPress
[src]
impl Copy for KeyPress
impl PartialEq<KeyPress> for KeyPress
[src]
impl PartialEq<KeyPress> for KeyPress