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 {
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,
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
313template<> 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
Contains enum_ and enum_ut_ keywords.
long double decimal
Represents a decimal-precision floating-point number.
Definition types.h:98
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
console_key
Specifies the standard keys on a console.
Definition console_key.h:18
@ 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:36