#[repr(u32)]pub enum VirtualKeyCode {
Show 152 variants
Key1 = 0,
Key2 = 1,
Key3 = 2,
Key4 = 3,
Key5 = 4,
Key6 = 5,
Key7 = 6,
Key8 = 7,
Key9 = 8,
Key0 = 9,
A = 10,
B = 11,
C = 12,
D = 13,
E = 14,
F = 15,
G = 16,
H = 17,
I = 18,
J = 19,
K = 20,
L = 21,
M = 22,
N = 23,
O = 24,
P = 25,
Q = 26,
R = 27,
S = 28,
T = 29,
U = 30,
V = 31,
W = 32,
X = 33,
Y = 34,
Z = 35,
Escape = 36,
F1 = 37,
F2 = 38,
F3 = 39,
F4 = 40,
F5 = 41,
F6 = 42,
F7 = 43,
F8 = 44,
F9 = 45,
F10 = 46,
F11 = 47,
F12 = 48,
F13 = 49,
F14 = 50,
F15 = 51,
Snapshot = 52,
Scroll = 53,
Pause = 54,
Insert = 55,
Home = 56,
Delete = 57,
End = 58,
PageDown = 59,
PageUp = 60,
Left = 61,
Up = 62,
Right = 63,
Down = 64,
Back = 65,
Return = 66,
Space = 67,
Compose = 68,
Caret = 69,
Numlock = 70,
Numpad0 = 71,
Numpad1 = 72,
Numpad2 = 73,
Numpad3 = 74,
Numpad4 = 75,
Numpad5 = 76,
Numpad6 = 77,
Numpad7 = 78,
Numpad8 = 79,
Numpad9 = 80,
AbntC1 = 81,
AbntC2 = 82,
Add = 83,
Apostrophe = 84,
Apps = 85,
At = 86,
Ax = 87,
Backslash = 88,
Calculator = 89,
Capital = 90,
Colon = 91,
Comma = 92,
Convert = 93,
Decimal = 94,
Divide = 95,
Equals = 96,
Grave = 97,
Kana = 98,
Kanji = 99,
LAlt = 100,
LBracket = 101,
LControl = 102,
LShift = 103,
LWin = 104,
Mail = 105,
MediaSelect = 106,
MediaStop = 107,
Minus = 108,
Multiply = 109,
Mute = 110,
MyComputer = 111,
NavigateForward = 112,
NavigateBackward = 113,
NextTrack = 114,
NoConvert = 115,
NumpadComma = 116,
NumpadEnter = 117,
NumpadEquals = 118,
OEM102 = 119,
Period = 120,
PlayPause = 121,
Power = 122,
PrevTrack = 123,
RAlt = 124,
RBracket = 125,
RControl = 126,
RShift = 127,
RWin = 128,
Semicolon = 129,
Slash = 130,
Sleep = 131,
Stop = 132,
Subtract = 133,
Sysrq = 134,
Tab = 135,
Underline = 136,
Unlabeled = 137,
VolumeDown = 138,
VolumeUp = 139,
Wake = 140,
WebBack = 141,
WebFavorites = 142,
WebForward = 143,
WebHome = 144,
WebRefresh = 145,
WebSearch = 146,
WebStop = 147,
Yen = 148,
Copy = 149,
Paste = 150,
Cut = 151,
}
Expand description
Symbolic name for a keyboard key.
Variants§
Key1 = 0
The ‘1’ key over the letters.
Key2 = 1
The ‘2’ key over the letters.
Key3 = 2
The ‘3’ key over the letters.
Key4 = 3
The ‘4’ key over the letters.
Key5 = 4
The ‘5’ key over the letters.
Key6 = 5
The ‘6’ key over the letters.
Key7 = 6
The ‘7’ key over the letters.
Key8 = 7
The ‘8’ key over the letters.
Key9 = 8
The ‘9’ key over the letters.
Key0 = 9
The ‘0’ key over the ‘O’ and ‘P’ keys.
A = 10
B = 11
C = 12
D = 13
E = 14
F = 15
G = 16
H = 17
I = 18
J = 19
K = 20
L = 21
M = 22
N = 23
O = 24
P = 25
Q = 26
R = 27
S = 28
T = 29
U = 30
V = 31
W = 32
X = 33
Y = 34
Z = 35
Escape = 36
The Escape key, next to F1.
F1 = 37
F2 = 38
F3 = 39
F4 = 40
F5 = 41
F6 = 42
F7 = 43
F8 = 44
F9 = 45
F10 = 46
F11 = 47
F12 = 48
F13 = 49
F14 = 50
F15 = 51
Snapshot = 52
Print Screen/SysRq.
Scroll = 53
Scroll Lock.
Pause = 54
Pause/Break key, next to Scroll lock.
Insert = 55
Insert
, next to Backspace.
Home = 56
Delete = 57
End = 58
PageDown = 59
PageUp = 60
Left = 61
Up = 62
Right = 63
Down = 64
Back = 65
The Backspace key, right over Enter.
Return = 66
The Enter key.
Space = 67
The space bar.
Compose = 68
The “Compose” key on Linux.
Caret = 69
Numlock = 70
Numpad0 = 71
Numpad1 = 72
Numpad2 = 73
Numpad3 = 74
Numpad4 = 75
Numpad5 = 76
Numpad6 = 77
Numpad7 = 78
Numpad8 = 79
Numpad9 = 80
AbntC1 = 81
AbntC2 = 82
Add = 83
Apostrophe = 84
Apps = 85
At = 86
Ax = 87
Backslash = 88
Calculator = 89
Capital = 90
Colon = 91
Comma = 92
Convert = 93
Decimal = 94
Divide = 95
Equals = 96
Grave = 97
Kana = 98
Kanji = 99
LAlt = 100
LBracket = 101
LControl = 102
LShift = 103
LWin = 104
Mail = 105
MediaSelect = 106
MediaStop = 107
Minus = 108
Multiply = 109
Mute = 110
MyComputer = 111
NextTrack = 114
NoConvert = 115
NumpadComma = 116
NumpadEnter = 117
NumpadEquals = 118
OEM102 = 119
Period = 120
PlayPause = 121
Power = 122
PrevTrack = 123
RAlt = 124
RBracket = 125
RControl = 126
RShift = 127
RWin = 128
Semicolon = 129
Slash = 130
Sleep = 131
Stop = 132
Subtract = 133
Sysrq = 134
Tab = 135
Underline = 136
Unlabeled = 137
VolumeDown = 138
VolumeUp = 139
Wake = 140
WebBack = 141
WebFavorites = 142
WebForward = 143
WebHome = 144
WebRefresh = 145
WebSearch = 146
WebStop = 147
Yen = 148
Copy = 149
Paste = 150
Cut = 151
Trait Implementations§
Source§impl Clone for VirtualKeyCode
impl Clone for VirtualKeyCode
Source§fn clone(&self) -> VirtualKeyCode
fn clone(&self) -> VirtualKeyCode
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 VirtualKeyCode
impl Debug for VirtualKeyCode
Source§impl Hash for VirtualKeyCode
impl Hash for VirtualKeyCode
Source§impl PartialEq for VirtualKeyCode
impl PartialEq for VirtualKeyCode
impl Copy for VirtualKeyCode
impl Eq for VirtualKeyCode
impl StructuralPartialEq for VirtualKeyCode
Auto Trait Implementations§
impl Freeze for VirtualKeyCode
impl RefUnwindSafe for VirtualKeyCode
impl Send for VirtualKeyCode
impl Sync for VirtualKeyCode
impl Unpin for VirtualKeyCode
impl UnwindSafe for VirtualKeyCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Content for Twhere
T: Copy,
impl<T> Content for Twhere
T: Copy,
Source§fn read<F, E>(size: usize, f: F) -> Result<T, E>
fn read<F, E>(size: usize, f: F) -> Result<T, E>
Prepares an output buffer, then turns this buffer into an
Owned
.Source§fn get_elements_size() -> usize
fn get_elements_size() -> usize
Returns the size of each element.
Source§fn to_void_ptr(&self) -> *const ()
fn to_void_ptr(&self) -> *const ()
Produces a pointer to the data.
Source§fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
Source§fn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.