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 KeyboardEventfn clone(&self) -> KeyboardEvent[src]
fn clone(&self) -> KeyboardEventReturns 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 KeyboardEventfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for KeyboardEvent[src]
impl Eq for KeyboardEventimpl PartialEq for KeyboardEvent[src]
impl PartialEq for KeyboardEventfn eq(&self, other: &KeyboardEvent) -> bool[src]
fn eq(&self, other: &KeyboardEvent) -> boolThis 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) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for KeyboardEvent
impl Send for KeyboardEventimpl Sync for KeyboardEvent
impl Sync for KeyboardEvent