xtd 0.2.0
console_key.h
Go to the documentation of this file.
1 #pragma once
5 #include "enum.h"
6 
8 namespace xtd {
18  enum class console_key {
20  backspace = 8,
22  tab = 9,
24  clear = 12,
26  enter = 13,
28  pause = 19,
30  caps_lock = 20,
32  escape = 27,
34  spacebar = 32,
36  page_up = 33,
38  page_down = 34,
40  end = 35,
42  home = 36,
44  left_arrow = 37,
46  up_arrow = 38,
48  right_arrow = 39,
50  down_arrow = 40,
52  select = 41,
54  print = 42,
56  execute = 43,
58  print_screen = 44,
60  insert = 45,
62  del = 46,
64  help = 47,
66  d0 = 48,
68  d1 = 49,
70  d2 = 50,
72  d3 = 51,
74  d4 = 52,
76  d5 = 53,
78  d6 = 54,
80  d7 = 55,
82  d8 = 56,
84  d9 = 57,
86  a = 65,
88  b = 66,
90  c = 67,
92  d = 68,
94  e = 69,
96  f = 70,
98  g = 71,
100  h = 72,
102  i = 73,
104  j = 74,
106  k = 75,
108  l = 76,
110  m = 77,
112  n = 78,
114  o = 79,
116  p = 80,
118  q = 81,
120  r = 82,
122  s = 83,
124  t = 84,
126  u = 85,
128  v = 86,
130  w = 87,
132  x = 88,
134  y = 89,
136  z = 90,
138  left_windows = 91,
140  right_windows = 92,
142  applications = 93,
144  sleep = 95,
146  num_pad_0 = 96,
148  num_pad_1 = 97,
150  num_pad_2 = 98,
152  num_pad_3 = 99,
154  num_pad_4 = 100,
156  num_pad_5 = 101,
158  num_pad_6 = 102,
160  num_pad_7 = 103,
162  num_pad_8 = 104,
164  num_pad_9 = 105,
166  multiply = 106,
168  add = 107,
170  separator = 108,
172  subtract = 109,
174  decimal = 110,
176  divide = 111,
178  f1 = 112,
180  f2 = 113,
182  f3 = 114,
184  f4 = 115,
186  f5 = 116,
188  f6 = 117,
190  f7 = 118,
192  f8 = 119,
194  f9 = 120,
196  f10 = 121,
198  f11 = 122,
200  f12 = 123,
202  f13 = 124,
204  f14 = 125,
206  f15 = 126,
208  f16 = 127,
210  f17 = 128,
212  f18 = 129,
214  f19 = 130,
216  f20 = 131,
218  f21 = 132,
220  f22 = 133,
222  f23 = 134,
224  f24 = 135,
226  browser_back = 166,
228  browser_forward = 167,
230  browser_refresh = 168,
232  browser_stop = 169,
234  browser_search = 170,
236  browser_favorites = 171,
238  browser_home = 172,
240  volume_mute = 173,
242  volume_down = 174,
244  volume_up = 175,
246  media_next = 176,
248  media_previous = 177,
250  media_stop = 178,
252  media_play = 179,
254  launch_mail = 180,
256  launch_media_select = 181,
258  launch_app1 = 182,
260  launch_app2 = 183,
262  oem1 = 186,
264  oem_plus = 187,
266  oem_comma = 188,
268  oem_minus = 189,
270  oem_period = 190,
272  oem2 = 191,
274  oem3 = 192,
276  oem4 = 219,
278  oem5 = 220,
280  oem6 = 221,
282  oem7 = 222,
284  oem8 = 223,
286  oem102 = 226,
288  process = 229,
290  packet = 231,
292  attention = 246,
294  cr_sel = 247,
296  ex_sel = 248,
298  erase_end_of_file = 249,
300  play = 250,
302  zoom = 251,
304  no_name = 252,
306  pa1 = 253,
308  oem_clear = 254
309  };
310 }
311 
313 template<> struct xtd::enum_register<xtd::console_key> {
314  explicit operator auto() const noexcept {return xtd::enum_collection<xtd::console_key> {{xtd::console_key::backspace, "backspace"}, {xtd::console_key::tab, "tab"}, {xtd::console_key::clear, "clear"}, {xtd::console_key::enter, "enter"}, {xtd::console_key::pause, "pause"}, {xtd::console_key::escape, "escape"}, {xtd::console_key::spacebar, "spacebar"}, {xtd::console_key::page_up, "page_up"}, {xtd::console_key::page_down, "page_down"}, {xtd::console_key::end, "end"}, {xtd::console_key::home, "home"}, {xtd::console_key::left_arrow, "left_arrow"}, {xtd::console_key::up_arrow, "up_arrow"}, {xtd::console_key::right_arrow, "right_arrow"}, {xtd::console_key::down_arrow, "down_arrow"}, {xtd::console_key::select, "select"}, {xtd::console_key::print, "print"}, {xtd::console_key::execute, "execute"}, {xtd::console_key::print_screen, "print_screen"}, {xtd::console_key::insert, "insert"}, {xtd::console_key::del, "del"}, {xtd::console_key::help, "help"}, {xtd::console_key::d0, "d0"}, {xtd::console_key::d1, "d1"}, {xtd::console_key::d2, "d2"}, {xtd::console_key::d3, "d3"}, {xtd::console_key::d4, "d4"}, {xtd::console_key::d5, "d5"}, {xtd::console_key::d6, "d6"}, {xtd::console_key::d7, "d7"}, {xtd::console_key::d8, "d8"}, {xtd::console_key::d9, "d9"}, {xtd::console_key::a, "a"}, {xtd::console_key::b, "b"}, {xtd::console_key::c, "c"}, {xtd::console_key::d, "d"}, {xtd::console_key::e, "e"}, {xtd::console_key::f, "f"}, {xtd::console_key::g, "g"}, {xtd::console_key::h, "h"}, {xtd::console_key::i, "i"}, {xtd::console_key::j, "j"}, {xtd::console_key::k, "k"}, {xtd::console_key::l, "l"}, {xtd::console_key::m, "m"}, {xtd::console_key::n, "n"}, {xtd::console_key::o, "o"}, {xtd::console_key::p, "p"}, {xtd::console_key::q, "q"}, {xtd::console_key::r, "r"}, {xtd::console_key::s, "s"}, {xtd::console_key::t, "t"}, {xtd::console_key::u, "u"}, {xtd::console_key::v, "v"}, {xtd::console_key::w, "w"}, {xtd::console_key::x, "x"}, {xtd::console_key::y, "y"}, {xtd::console_key::z, "z"}, {xtd::console_key::left_windows, "left_windows"}, {xtd::console_key::right_windows, "right_windows"}, {xtd::console_key::applications, "applications"}, {xtd::console_key::sleep, "sleep"}, {xtd::console_key::num_pad_0, "num_pad_0"}, {xtd::console_key::num_pad_1, "num_pad_1"}, {xtd::console_key::num_pad_2, "num_pad_2"}, {xtd::console_key::num_pad_3, "num_pad_3"}, {xtd::console_key::num_pad_4, "num_pad_4"}, {xtd::console_key::num_pad_5, "num_pad_5"}, {xtd::console_key::num_pad_6, "num_pad_6"}, {xtd::console_key::num_pad_7, "num_pad_7"}, {xtd::console_key::num_pad_8, "num_pad_8"}, {xtd::console_key::num_pad_9, "num_pad_9"}, {xtd::console_key::multiply, "multiply"}, {xtd::console_key::add, "add"}, {xtd::console_key::separator, "separator"}, {xtd::console_key::subtract, "subtract"}, {xtd::console_key::decimal, "decimal"}, {xtd::console_key::divide, "divide"}, {xtd::console_key::f1, "f1"}, {xtd::console_key::f2, "f2"}, {xtd::console_key::f3, "f3"}, {xtd::console_key::f4, "f4"}, {xtd::console_key::f5, "f5"}, {xtd::console_key::f6, "f6"}, {xtd::console_key::f7, "f7"}, {xtd::console_key::f8, "f8"}, {xtd::console_key::f9, "f9"}, {xtd::console_key::f10, "f10"}, {xtd::console_key::f11, "f11"}, {xtd::console_key::f12, "f12"}, {xtd::console_key::f13, "f13"}, {xtd::console_key::f14, "f14"}, {xtd::console_key::f15, "f15"}, {xtd::console_key::f16, "f16"}, {xtd::console_key::f17, "f17"}, {xtd::console_key::f18, "f18"}, {xtd::console_key::f19, "f19"}, {xtd::console_key::f20, "f20"}, {xtd::console_key::f21, "f21"}, {xtd::console_key::f22, "f22"}, {xtd::console_key::f23, "f23"}, {xtd::console_key::f24, "f24"}, {xtd::console_key::browser_back, "browser_back"}, {xtd::console_key::browser_forward, "browser_forward"}, {xtd::console_key::browser_refresh, "browser_refresh"}, {xtd::console_key::browser_stop, "browser_stop"}, {xtd::console_key::browser_search, "browser_search"}, {xtd::console_key::browser_favorites, "browser_favorites"}, {xtd::console_key::browser_home, "browser_home"}, {xtd::console_key::volume_mute, "volume_mute"}, {xtd::console_key::volume_down, "volume_down"}, {xtd::console_key::volume_up, "volume_up"}, {xtd::console_key::media_next, "media_next"}, {xtd::console_key::media_previous, "media_previous"}, {xtd::console_key::media_stop, "media_stop"}, {xtd::console_key::media_play, "media_play"}, {xtd::console_key::launch_mail, "launch_mail"}, {xtd::console_key::launch_media_select, "launch_media_select"}, {xtd::console_key::launch_app1, "launch_app1"}, {xtd::console_key::launch_app2, "launch_app2"}, {xtd::console_key::oem1, "oem1"}, {xtd::console_key::oem_plus, "oem_plus"}, {xtd::console_key::oem_comma, "oem_comma"}, {xtd::console_key::oem_minus, "oem_minus"}, {xtd::console_key::oem_period, "oem_period"}, {xtd::console_key::oem2, "oem2"}, {xtd::console_key::oem3, "oem3"}, {xtd::console_key::oem4, "oem4"}, {xtd::console_key::oem5, "oem5"}, {xtd::console_key::oem6, "oem6"}, {xtd::console_key::oem7, "oem7"}, {xtd::console_key::oem8, "oem8"}, {xtd::console_key::oem102, "oem102"}, {xtd::console_key::process, "process"}, {xtd::console_key::packet, "packet"}, {xtd::console_key::attention, "attention"}, {xtd::console_key::cr_sel, "cr_sel"}, {xtd::console_key::ex_sel, "ex_sel"}, {xtd::console_key::erase_end_of_file, "erase_end_of_file"}, {xtd::console_key::play, "play"}, {xtd::console_key::zoom, "zoom"}, {xtd::console_key::no_name, "no_name"}, {xtd::console_key::pa1, "pa1"}, {xtd::console_key::oem_clear, "oem_clear"}};}
315 };
317 
The PAGE DOWN key.
The OEM 1 key (OEM specific).
The Computer Sleep key.
The Divide key.
The SELECT key.
The OEM Comma key on any country/region keyboard (Windows 2000 or later).
The OEM Minus key on any country/region keyboard (Windows 2000 or later).
The Volume Up key (Microsoft Natural Keyboard, Windows 2000 or later).
long double decimal
Represents a decimal-precision floating-point number.
Definition: types.h:96
The Browser Back key (Windows 2000 or later).
The Media Stop key (Microsoft Natural Keyboard, Windows 2000 or later).
The OEM Period key on any country/region keyboard (Windows 2000 or later).
The CLEAR key (OEM specific).
The RIGHT ARROW key.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
The SPACEBAR key.
The Browser Refresh key (Windows 2000 or later).
The Media Next Track key (Microsoft Natural Keyboard, Windows 2000 or later).
The CapsLock key.
The Start Application 2 key (Microsoft Natural Keyboard, Windows 2000 or later).
The PRINT SCREEN key.
The OEM 5 key (OEM specific).
The OEM " key (OEM specific).
std::vector< std::pair< enum_t, xtd::ustring > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition: enum_collection.h:19
A constant reserved for future use.
The 6 key on the numeric keypad.
The Browser Search key (Windows 2000 or later).
Contains enum_ and enum_ut_ keywords.
The OEM 4 key (OEM specific).
The Media Play/Pause key (Microsoft Natural Keyboard, Windows 2000 or later).
The OEM 6 key (OEM specific).
The Volume Mute key (Microsoft Natural Keyboard, Windows 2000 or later).
The Browser Stop key (Windows 2000 or later).
The Start Mail key (Microsoft Natural Keyboard, Windows 2000 or later).
The OEM 102 key (OEM specific).
The BACKSPACE key.
The 4 key on the numeric keypad.
The Browser Favorite key (Windows 2000 or later).
The EXSEL (EXTEND SELECTION) key.
The LEFT ARROW key.
The EXECUTE key.
The Select Media key (Microsoft Natural Keyboard, Windows 2000 or later).
The Volume Down key (Microsoft Natural Keyboard, Windows 2000 or later).
The 9 key on the numeric keypad.
The DEL (DELETE) key.
The 0 key on the numeric keypad.
The 2 key on the numeric keypad.
The Separator key.
The OEM 8 key (OEM specific).
The PAGE UP key.
The ESC (ESCAPE) key.
The right Windows logo key (Microsoft Natural Keyboard).
The 3 key on the numeric keypad.
The INS (INSERT) key.
The DOWN ARROW key.
The 8 key on the numeric keypad.
The OEM 2 key (OEM specific).
The OEM 7 key (OEM specific).
The CRSEL (CURSOR SELECT) key.
The 7 key on the numeric keypad.
The IME PROCESS key.
The Multiply key.
The UP ARROW key.
The 5 key on the numeric keypad.
The Start Application 1 key (Microsoft Natural Keyboard, Windows 2000 or later).
The Decimal key.
The Browser Forward key (Windows 2000 or later).
The 1 key on the numeric keypad.
The Application key (Microsoft Natural Keyboard).
The Media Previous Track key (Microsoft Natural Keyboard, Windows 2000 or later). ...
The left Windows logo key (Microsoft Natural Keyboard).
The Browser Home key (Windows 2000 or later).
The PACKET key (used to pass Unicode characters with keystrokes).
Provides the registration struct for enumerations.
Definition: enum_register.h:36
The Subtract key.
console_key
Specifies the standard keys on a console.
Definition: console_key.h:18
The OEM Plus key on any country/region keyboard (Windows 2000 or later).