KeyCodeVBoard

Enum KeyCodeVBoard 

Source
#[repr(i32)]
pub enum KeyCodeVBoard {
Show 178 variants Back = 8, Tab = 9, Backtab = 10, Clear = 12, Return = 13, Shift = 16, Control = 17, Menu = 18, Pause = 19, Capital = 20, Kana = 21, Junja = 23, Final = 24, Hanja = 25, Escape = 27, Convert = 28, NonConvert = 29, Accept = 30, ModeChange = 31, Space = 32, Prior = 33, Next = 34, End = 35, Home = 36, Left = 37, Up = 38, Right = 39, Down = 40, Select = 41, Print = 42, Execute = 43, Snapshot = 44, Insert = 45, Delete = 46, Help = 47, Key0 = 48, Key1 = 49, Key2 = 50, Key3 = 51, Key4 = 52, Key5 = 53, Key6 = 54, Key7 = 55, Key8 = 56, Key9 = 57, A = 65, B = 66, C = 67, D = 68, E = 69, F = 70, G = 71, H = 72, I = 73, J = 74, K = 75, L = 76, M = 77, N = 78, O = 79, P = 80, Q = 81, R = 82, S = 83, T = 84, U = 85, V = 86, W = 87, X = 88, Y = 89, Z = 90, LWin = 91, RWin = 92, Apps = 93, Sleep = 95, Numpad0 = 96, Numpad1 = 97, Numpad2 = 98, Numpad3 = 99, Numpad4 = 100, Numpad5 = 101, Numpad6 = 102, Numpad7 = 103, Numpad8 = 104, Numpad9 = 105, Multiply = 106, Add = 107, Separator = 108, Subtract = 109, Decimal = 110, Divide = 111, F1 = 112, F2 = 113, F3 = 114, F4 = 115, F5 = 116, F6 = 117, F7 = 118, F8 = 119, F9 = 120, F10 = 121, F11 = 122, F12 = 123, F13 = 124, F14 = 125, F15 = 126, F16 = 127, F17 = 128, F18 = 129, F19 = 130, F20 = 131, F21 = 132, F22 = 133, F23 = 134, F24 = 135, NumLock = 144, Scroll = 145, LShift = 160, RShift = 161, LControl = 162, RControl = 163, LMenu = 164, RMenu = 165, BrowserBack = 166, BrowserForward = 167, BrowserRefresh = 168, BrowserStop = 169, BrowserSearch = 170, BrowserFavorites = 171, BrowserHome = 172, VolumeMute = 173, VolumeDown = 174, VolumeUp = 175, MediaNextTrack = 176, MediaPrevTrack = 177, MediaStop = 178, MediaPlayPause = 179, MediaLaunchMail = 180, MediaLaunchMediaSelect = 181, MediaLaunchApp1 = 182, MediaLaunchApp2 = 183, Oem1 = 186, OemPlus = 187, OemComma = 188, OemMinus = 189, OemPeriod = 190, Oem2 = 191, Oem3 = 192, Oem4 = 219, Oem5 = 220, Oem6 = 221, Oem7 = 222, Oem8 = 223, Oem102 = 226, Oem103 = 227, Oem104 = 228, ProcessKey = 229, Packet = 231, DbeSbcsChar = 243, DbeDbcsChar = 244, Attn = 246, CrSel = 247, ExSel = 248, ErEof = 249, Play = 250, Zoom = 251, NoName = 252, Pa1 = 253, OemClear = 254, Wlan = 151, Power = 152, BrightnessDown = 216, BrightnessUp = 217, KbdBrightnessDown = 218, KbdBrightnessUp = 232, AltGr = 225, Compose = 230, Unknown = 0,
}
Expand description

Window Virtual keyboard codes

Variants§

§

Back = 8

§

Tab = 9

§

Backtab = 10

§

Clear = 12

§

Return = 13

§

Shift = 16

§

Control = 17

§

Menu = 18

§

Pause = 19

§

Capital = 20

§

Kana = 21

§

Junja = 23

§

Final = 24

§

Hanja = 25

§

Escape = 27

§

Convert = 28

§

NonConvert = 29

§

Accept = 30

§

ModeChange = 31

§

Space = 32

§

Prior = 33

§

Next = 34

§

End = 35

§

Home = 36

§

Left = 37

§

Up = 38

§

Right = 39

§

Down = 40

§

Select = 41

§

Print = 42

§

Execute = 43

§

Snapshot = 44

§

Insert = 45

§

Delete = 46

§

Help = 47

§

Key0 = 48

§

Key1 = 49

§

Key2 = 50

§

Key3 = 51

§

Key4 = 52

§

Key5 = 53

§

Key6 = 54

§

Key7 = 55

§

Key8 = 56

§

Key9 = 57

§

A = 65

§

B = 66

§

C = 67

§

D = 68

§

E = 69

§

F = 70

§

G = 71

§

H = 72

§

I = 73

§

J = 74

§

K = 75

§

L = 76

§

M = 77

§

N = 78

§

O = 79

§

P = 80

§

Q = 81

§

R = 82

§

S = 83

§

T = 84

§

U = 85

§

V = 86

§

W = 87

§

X = 88

§

Y = 89

§

Z = 90

§

LWin = 91

§

RWin = 92

§

Apps = 93

§

Sleep = 95

§

Numpad0 = 96

§

Numpad1 = 97

§

Numpad2 = 98

§

Numpad3 = 99

§

Numpad4 = 100

§

Numpad5 = 101

§

Numpad6 = 102

§

Numpad7 = 103

§

Numpad8 = 104

§

Numpad9 = 105

§

Multiply = 106

§

Add = 107

§

Separator = 108

§

Subtract = 109

§

Decimal = 110

§

Divide = 111

§

F1 = 112

§

F2 = 113

§

F3 = 114

§

F4 = 115

§

F5 = 116

§

F6 = 117

§

F7 = 118

§

F8 = 119

§

F9 = 120

§

F10 = 121

§

F11 = 122

§

F12 = 123

§

F13 = 124

§

F14 = 125

§

F15 = 126

§

F16 = 127

§

F17 = 128

§

F18 = 129

§

F19 = 130

§

F20 = 131

§

F21 = 132

§

F22 = 133

§

F23 = 134

§

F24 = 135

§

NumLock = 144

§

Scroll = 145

§

LShift = 160

§

RShift = 161

§

LControl = 162

§

RControl = 163

§

LMenu = 164

§

RMenu = 165

§

BrowserBack = 166

§

BrowserForward = 167

§

BrowserRefresh = 168

§

BrowserStop = 169

§

BrowserSearch = 170

§

BrowserFavorites = 171

§

BrowserHome = 172

§

VolumeMute = 173

§

VolumeDown = 174

§

VolumeUp = 175

§

MediaNextTrack = 176

§

MediaPrevTrack = 177

§

MediaStop = 178

§

MediaPlayPause = 179

§

MediaLaunchMail = 180

§

MediaLaunchMediaSelect = 181

§

MediaLaunchApp1 = 182

§

MediaLaunchApp2 = 183

§

Oem1 = 186

§

OemPlus = 187

§

OemComma = 188

§

OemMinus = 189

§

OemPeriod = 190

§

Oem2 = 191

§

Oem3 = 192

§

Oem4 = 219

§

Oem5 = 220

§

Oem6 = 221

§

Oem7 = 222

§

Oem8 = 223

§

Oem102 = 226

§

Oem103 = 227

§

Oem104 = 228

§

ProcessKey = 229

§

Packet = 231

§

DbeSbcsChar = 243

§

DbeDbcsChar = 244

§

Attn = 246

§

CrSel = 247

§

ExSel = 248

§

ErEof = 249

§

Play = 250

§

Zoom = 251

§

NoName = 252

§

Pa1 = 253

§

OemClear = 254

§

Wlan = 151

§

Power = 152

§

BrightnessDown = 216

§

BrightnessUp = 217

§

KbdBrightnessDown = 218

§

KbdBrightnessUp = 232

§

AltGr = 225

§

Compose = 230

§

Unknown = 0

Implementations§

Source§

impl KeyCodeVBoard

Source

pub const HANGUL: Self = Self::Kana

Source

pub const KANJI: Self = Self::Hanja

Source

pub const COMMAND: Self = Self::LWin

Source

pub fn from_raw(code: u32) -> Self

Convert from a raw key code

Source

pub fn to_raw(self) -> u32

Convert to a raw key code

Source

pub fn is_modifier(self) -> bool

Check if this is a modifier key

Source

pub fn is_function_key(self) -> bool

Check if this is a function key

Source

pub fn is_letter(self) -> bool

Check if this is a letter key

Source

pub fn is_number(self) -> bool

Check if this is a number key

Source

pub fn is_keypad(self) -> bool

Check if this is a keypad key

Source

pub fn is_arrow(self) -> bool

Check if this is an arrow key

Source

pub fn to_char(self) -> Option<char>

Get the character representation of the key (if applicable)

Trait Implementations§

Source§

impl Clone for KeyCodeVBoard

Source§

fn clone(&self) -> KeyCodeVBoard

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for KeyCodeVBoard

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for KeyCodeVBoard

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for KeyCodeVBoard

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for KeyCodeVBoard

Source§

fn eq(&self, other: &KeyCodeVBoard) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for KeyCodeVBoard

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for KeyCodeVBoard

Source§

impl Eq for KeyCodeVBoard

Source§

impl StructuralPartialEq for KeyCodeVBoard

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T, U> ConvertParam<U> for T
where T: Into<U>,

Source§

fn into_raw(self) -> U

Source§

impl<T, U> ConvertReturnValue<U> for T
where T: Into<U>,

Source§

fn wrap_result(self) -> U

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,