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