#[repr(u32)]pub enum KeyEventKind {
KeyDown = 0,
KeyUp = 1,
SystemKeyDown = 2,
SystemKeyUp = 3,
}
Expand description
Specifies the key event type that triggered an AcceleratorKeyPressed
event.
Variants§
KeyDown = 0
Specifies that the key event type corresponds to window message
WM_KEYDOWN
.
KeyUp = 1
Specifies that the key event type corresponds to window message
WM_KEYUP
.
SystemKeyDown = 2
Specifies that the key event type corresponds to window message
WM_SYSKEYDOWN
.
SystemKeyUp = 3
Specifies that the key event type corresponds to window message
WM_SYSKEYUP
.
Trait Implementations§
Source§impl Clone for KeyEventKind
impl Clone for KeyEventKind
Source§fn clone(&self) -> KeyEventKind
fn clone(&self) -> KeyEventKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for KeyEventKind
impl Debug for KeyEventKind
Source§impl PartialEq for KeyEventKind
impl PartialEq for KeyEventKind
impl Copy for KeyEventKind
impl Eq for KeyEventKind
impl StructuralPartialEq for KeyEventKind
Auto Trait Implementations§
impl Freeze for KeyEventKind
impl RefUnwindSafe for KeyEventKind
impl Send for KeyEventKind
impl Sync for KeyEventKind
impl Unpin for KeyEventKind
impl UnwindSafe for KeyEventKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more