Struct keyboard_types::KeyboardEvent [−][src]
pub struct KeyboardEvent { pub state: KeyState, pub key: Key, pub code: Code, pub location: Location, pub modifiers: Modifiers, pub repeat: bool, pub is_composing: bool, }
Keyboard events are issued for all pressed and released keys.
Fields
state: KeyState
Whether the key is pressed or released.
key: Key
Logical key value.
code: Code
Physical key position.
location: Location
Location for keys with multiple instances on common keyboards.
modifiers: Modifiers
Flags for pressed modifier keys.
repeat: bool
True if the key is currently auto-repeated.
is_composing: bool
Events with this flag should be ignored in a text editor and instead composition events should be used.
Trait Implementations
impl Clone for KeyboardEvent
[src]
impl Clone for KeyboardEvent
fn clone(&self) -> KeyboardEvent
[src]
fn clone(&self) -> KeyboardEvent
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 KeyboardEvent
[src]
impl Debug for KeyboardEvent
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for KeyboardEvent
[src]
impl Default for KeyboardEvent
fn default() -> KeyboardEvent
[src]
fn default() -> KeyboardEvent
Returns the "default value" for a type. Read more
impl Eq for KeyboardEvent
[src]
impl Eq for KeyboardEvent
impl PartialEq for KeyboardEvent
[src]
impl PartialEq for KeyboardEvent
fn eq(&self, other: &KeyboardEvent) -> bool
[src]
fn eq(&self, other: &KeyboardEvent) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &KeyboardEvent) -> bool
[src]
fn ne(&self, other: &KeyboardEvent) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for KeyboardEvent
impl Send for KeyboardEvent
impl Sync for KeyboardEvent
impl Sync for KeyboardEvent