xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
shortcut.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/ustring.h>
6 #include "keys.h"
7 
9 namespace xtd {
11  namespace forms {
19  enum class shortcut {
21  alt_0 = 0x00040030,
23  alt_1,
25  alt_2,
27  alt_3,
29  alt_4,
31  alt_5,
33  alt_6,
35  alt_7,
37  alt_8,
39  alt_9,
41  alt_bksp = 0x00040008,
43  alt_down_arrow = 0x00040028,
45  alt_f1 = 0x00040070,
47  alt_f10 = 0x00040079,
49  alt_f11,
51  alt_f12,
53  alt_f2 = 0x00040071,
55  alt_f3,
57  alt_f4,
59  alt_f5,
61  alt_f6,
63  alt_f7,
65  alt_f8,
67  alt_f9,
69  alt_left_arrow = 0x00040025,
71  alt_right_arrow = 0x00040027,
73  alt_up_arrow = 0x00040026,
75  cmd_0 = 0x00080030,
77  cmd_1,
79  cmd_2,
81  cmd_3,
83  cmd_4,
85  cmd_5,
87  cmd_6,
89  cmd_7,
91  cmd_8,
93  cmd_9,
95  cmd_a = 0x00080041,
97  cmd_b,
99  cmd_c,
101  cmd_d,
103  cmd_del = 0x0008002E,
105  cmd_e = 0x00080045,
107  cmd_f,
109  cmd_f1 = 0x00080070,
111  cmd_f10 = 0x00080079,
113  cmd_f11,
115  cmd_f12,
117  cmd_f2 = 0x00080071,
119  cmd_f3,
121  cmd_f4,
123  cmd_f5,
125  cmd_f6,
127  cmd_f7,
129  cmd_f8,
131  cmd_f9,
133  cmd_g = 0x00080047,
135  cmd_h,
137  cmd_i,
139  cmd_ins = 0x0008002D,
141  cmd_j = 0x0008004A,
143  cmd_k,
145  cmd_l,
147  cmd_m,
149  cmd_n,
151  cmd_o,
153  cmd_p,
155  cmd_q,
157  cmd_r,
159  cmd_s,
161  cmd_shift_0 = 0x00090030,
163  cmd_shift_1,
165  cmd_shift_2,
167  cmd_shift_3,
169  cmd_shift_4,
171  cmd_shift_5,
173  cmd_shift_6,
175  cmd_shift_7,
177  cmd_shift_8,
179  cmd_shift_9,
181  cmd_shift_a = 0x00090041,
183  cmd_shift_b,
185  cmd_shift_c,
187  cmd_shift_d,
189  cmd_shift_e,
191  cmd_shift_f,
193  cmd_shift_f1 = 0x00090070,
195  cmd_shift_f10 = 0x00090079,
201  cmd_shift_f2 = 0x00090071,
203  cmd_shift_f3,
205  cmd_shift_f4,
207  cmd_shift_f5,
209  cmd_shift_f6,
211  cmd_shift_f7,
213  cmd_shift_f8,
215  cmd_shift_f9,
217  cmd_shift_g = 0x00090047,
219  cmd_shift_h,
221  cmd_shift_i,
223  cmd_shift_j,
225  cmd_shift_k,
227  cmd_shift_l,
229  cmd_shift_m,
231  cmd_shift_n,
233  cmd_shift_o,
235  cmd_shift_p,
237  cmd_shift_q,
239  cmd_shift_r,
241  cmd_shift_s,
243  cmd_shift_t,
245  cmd_shift_u,
247  cmd_shift_v,
249  cmd_shift_w,
251  cmd_shift_x,
253  cmd_shift_y,
255  cmd_shift_z,
257  cmd_t = 0x00080054,
259  cmd_u,
261  cmd_v,
263  cmd_w,
265  cmd_x,
267  cmd_y,
269  cmd_z,
271  del = 0x0000002D,
273  f1 = 0x00000070,
275  f10 = 0x00000079,
277  f11,
279  f12,
281  f2 = 0x00000071,
283  f3,
285  f4,
287  f5,
289  f6,
291  f7,
293  f8,
295  f9,
297  ins = 0x0000002D,
299  none = 0,
301  shift_del = 0x0001002E,
303  shift_f1 = 0x00010070,
305  shift_f10 = 0x00010079,
307  shift_f11,
309  shift_f12,
311  shift_f2 = 0x00010071,
313  shift_f3,
315  shift_f4,
317  shift_f5,
319  shift_f6,
321  shift_f7,
323  shift_f8,
325  shift_f9,
327  shift_ins = 0x0001002D
328  };
329 
331  inline std::ostream& operator<<(std::ostream& os, shortcut value) {return os << to_string(value, {{shortcut::alt_0, "alt_0"}, {shortcut::none, "alt_1"}, {shortcut::alt_2, "alt_2"}, {shortcut::alt_3, "alt_3"}, {shortcut::alt_4, "alt_4"}, {shortcut::alt_5, "alt_5"}, {shortcut::alt_6, "alt_6"}, {shortcut::alt_7, "alt_7"}, {shortcut::alt_8, "alt_8"}, {shortcut::alt_9, "alt_9"}, {shortcut::alt_bksp, "alt_bksp"}, {shortcut::alt_down_arrow, "alt_down_arrow"}, {shortcut::alt_f1, "alt_f1"}, {shortcut::alt_f2, "alt_f2"}, {shortcut::alt_f3, "alt_f3"}, {shortcut::alt_f4, "alt_f4"}, {shortcut::alt_f5, "alt_f5"}, {shortcut::alt_f6, "alt_f6"}, {shortcut::alt_f7, "alt_f7"}, {shortcut::alt_f8, "alt_f8"}, {shortcut::alt_f9, "alt_f9"}, {shortcut::alt_left_arrow, "alt_left_arrow"}, {shortcut::alt_right_arrow, "alt_right_arrow"}, {shortcut::alt_up_arrow, "alt_up_arrow"}, {shortcut::cmd_0, "cmd_0"}, {shortcut::cmd_1, "cmd_1"}, {shortcut::cmd_2, "cmd_2"}, {shortcut::cmd_3, "cmd_3"}, {shortcut::cmd_4, "cmd_4"}, {shortcut::cmd_5, "cmd_5"}, {shortcut::cmd_6, "cmd_6"}, {shortcut::cmd_7, "cmd_7"}, {shortcut::cmd_8, "cmd_8"}, {shortcut::cmd_9, "cmd_9"}, {shortcut::cmd_a, "cmd_a"}, {shortcut::cmd_b, "cmd_b"}, {shortcut::cmd_c, "cmd_c"}, {shortcut::cmd_d, "cmd_d"}, {shortcut::cmd_del, "cmd_del"}, {shortcut::cmd_e, "cmd_e"}, {shortcut::cmd_f, "cmd_f"}, {shortcut::cmd_f1, "cmd_f1"}, {shortcut::cmd_f10, "cmd_f10"}, {shortcut::cmd_f11, "cmd_f11"}, {shortcut::cmd_f12, "cmd_f12"}, {shortcut::cmd_f2, "cmd_f2"}, {shortcut::cmd_f3, "cmd_f3"}, {shortcut::cmd_f4, "cmd_f4"}, {shortcut::cmd_f5, "cmd_f5"}, {shortcut::cmd_f6, "cmd_f6"}, {shortcut::cmd_f7, "cmd_f7"}, {shortcut::cmd_f8, "cmd_f8"}, {shortcut::cmd_f9, "cmd_f9"}, {shortcut::cmd_g, "cmd_g"}, {shortcut::cmd_h, "cmd_h"}, {shortcut::cmd_i, "cmd_i"}, {shortcut::cmd_ins, "cmd_ins"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}, {shortcut::none, "none"}});}
332  inline std::wostream& operator<<(std::wostream& os, shortcut value) {return os << to_string(value, {{shortcut::alt_0, L"alt_0"}, {shortcut::none, L"alt_1"}, {shortcut::alt_2, L"alt_2"}, {shortcut::alt_3, L"alt_3"}, {shortcut::alt_4, L"alt_4"}, {shortcut::alt_5, L"alt_5"}, {shortcut::alt_6, L"alt_6"}, {shortcut::alt_7, L"alt_7"}, {shortcut::alt_8, L"alt_8"}, {shortcut::alt_9, L"alt_9"}, {shortcut::alt_bksp, L"alt_bksp"}, {shortcut::alt_down_arrow, L"alt_down_arrow"}, {shortcut::alt_f1, L"alt_f1"}, {shortcut::alt_f2, L"alt_2"}, {shortcut::alt_f3, L"alt_f3"}, {shortcut::alt_f4, L"alt_f4"}, {shortcut::alt_f5, L"alt_f5"}, {shortcut::alt_f6, L"alt_f6"}, {shortcut::alt_f7, L"alt_f7"}, {shortcut::alt_f8, L"alt_f8"}, {shortcut::alt_f9, L"alt_f9"}, {shortcut::alt_left_arrow, L"alt_left_arrow"}, {shortcut::alt_right_arrow, L"alt_right_arrow"}, {shortcut::alt_up_arrow, L"alt_up_arrow"}, {shortcut::cmd_0, L"cmd_0"}, {shortcut::cmd_1, L"cmd_1"}, {shortcut::cmd_2, L"cmd_2"}, {shortcut::cmd_3, L"cmd_3"}, {shortcut::cmd_4, L"cmd_4"}, {shortcut::cmd_5, L"cmd_5"}, {shortcut::cmd_6, L"cmd_6"}, {shortcut::cmd_7, L"cmd_7"}, {shortcut::cmd_8, L"cmd_8"}, {shortcut::cmd_9, L"cmd_9"}, {shortcut::cmd_a, L"cmd_a"}, {shortcut::cmd_b, L"cmd_b"}, {shortcut::cmd_c, L"cmd_c"}, {shortcut::cmd_d, L"cmd_d"}, {shortcut::cmd_del, L"cmd_del"}, {shortcut::cmd_e, L"cmd_e"}, {shortcut::cmd_f, L"cmd_f"}, {shortcut::cmd_f1, L"cmd_f1"}, {shortcut::cmd_f10, L"cmd_f10"}, {shortcut::cmd_f11, L"cmd_f11"}, {shortcut::cmd_f12, L"cmd_f12"}, {shortcut::cmd_f2, L"cmd_f2"}, {shortcut::cmd_f3, L"cmd_f3"}, {shortcut::cmd_f4, L"cmd_f4"}, {shortcut::cmd_f5, L"cmd_f5"}, {shortcut::cmd_f6, L"cmd_f6"}, {shortcut::cmd_f7, L"cmd_f7"}, {shortcut::cmd_f8, L"cmd_f8"}, {shortcut::cmd_f9, L"cmd_f9"}, {shortcut::cmd_g, L"cmd_g"}, {shortcut::cmd_h, L"cmd_h"}, {shortcut::cmd_i, L"cmd_i"}, {shortcut::cmd_ins, L"cmd_ins"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}, {shortcut::none, L"none"}});}
334  }
335 }
The shortcut keys CMD+F4.
The shortcut keys CMD+F7.
The shortcut keys CMD+SHIFT+1.
The shortcut keys CMD+SHIFT+F.
The shortcut keys CMD+SHIFT+H.
The shortcut keys ALT+F6.
The shortcut keys CMD+SHIFT+F6.
The shortcut keys CMD+SHIFT+B.
The shortcut keys ALT+F4.
The shortcut keys CMD+3.
The shortcut keys CMD+9.
The shortcut keys CMD+SHIFT+S.
The shortcut keys CMD+2.
The shortcut keys CMD+D.
The shortcut keys CMD+SHIFT+K.
The shortcut keys ALT+F11.
The shortcut keys CMD+X.
The shortcut keys ALT+F8.
The shortcut keys SHIFT+F1.
The shortcut keys ALT+BACKSPACE.
The shortcut keys CMD+SHIFT+F3.
The shortcut keys ALT+F5.
The shortcut keys SHIFT+F3.
The shortcut keys CMD+F5.
The shortcut keys CMD+F9.
The shortcut keys CMD+F11.
The shortcut keys ALT+F2.
The shortcut keys SHIFT+F8.
The shortcut keys SHIFT+DELETE.
The shortcut keys CMD+SHIFT+X.
The shortcut keys CMD+SHIFT+U.
The shortcut keys CMD+SHIFT+F8.
The shortcut keys CMD+SHIFT+F9.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
The shortcut keys CMD+Z.
The shortcut keys ALT+6.
The shortcut keys SHIFT+INSERT.
The shortcut keys CMD+SHIFT+F1.
The shortcut keys CMD+F3.
The shortcut keys ALT+7.
The shortcut keys CMD+R.
The shortcut keys CMD+J.
The shortcut keys CMD+SHIFT+F4.
The shortcut keys CMD+SHIFT+C.
The shortcut keys CMD+N.
The shortcut keys ALT+F12.
The shortcut keys ALT+3.
The shortcut keys ALT+LEFTARROW.
The shortcut keys CMD+SHIFT+F5.
The shortcut keys CMD+SHIFT+N.
No shortcut key is associated with the menu item.
The shortcut keys CMD+K.
The shortcut keys CMD+SHIFT+Z.
The shortcut keys CMD+4.
The shortcut keys ALT+0.
The shortcut keys CMD+SHIFT+F7.
The shortcut keys CMD+SHIFT+M.
The shortcut keys CMD+SHIFT+Q.
The shortcut keys CMD+F12.
The shortcut keys CMD+SHIFT+4.
The shortcut keys ALT+RIGHTARROW.
The shortcut keys CMD+INSERT.
The shortcut keys ALT+8.
The shortcut keys ALT+F3.
The shortcut keys SHIFT+F5.
The shortcut keys CMD+SHIFT+J.
The shortcut keys CMD+Q.
The shortcut keys CMD+SHIFT+Y.
The shortcut keys CMD+F8.
The shortcut keys CMD+SHIFT+F10.
The shortcut keys CMD+SHIFT+L.
The shortcut keys SHIFT+F6.
The shortcut keys SHIFT+F7.
The shortcut keys CMD+U.
The shortcut keys CMD+M.
The shortcut keys CMD+O.
The shortcut keys ALT+DOWNARROW.
The shortcut keys CMD+SHIFT+D.
The shortcut keys ALT+1.
The shortcut keys ALT+4.
The shortcut keys CMD+5.
The shortcut keys CMD+C.
The shortcut keys CMD+7.
The shortcut keys CMD+SHIFT+I.
The shortcut keys CMD+SHIFT+G.
The shortcut keys INSERT.
The shortcut keys CMD+F10.
The shortcut keys ALT+F9.
The shortcut keys CMD+SHIFT+O.
The shortcut keys ALT+5.
The shortcut keys CMD+SHIFT+E.
The shortcut keys ALT+F10.
The shortcut keys SHIFT+F2.
The shortcut keys CMD+P.
The shortcut keys CMD+F1.
The shortcut keys CMD+H.
The shortcut keys ALT+2.
The shortcut keys CMD+SHIFT+0.
Contains xtd::ustring class.
The shortcut keys CMD+SHIFT+F12.
The shortcut keys SHIFT+11.
The shortcut keys DELETE.
The shortcut keys SHIFT+F12.
The shortcut keys CMD+SHIFT+R.
The shortcut keys CMD+DELETE.
The shortcut keys CMD+SHIFT+6.
The shortcut keys CMD+Y.
The shortcut keys CMD+A.
The shortcut keys CMD+SHIFT+9.
The shortcut keys CMD+F2.
The shortcut keys CMD+SHIFT+P.
The shortcut keys CMD+F.
The shortcut keys ALT+F1.
The shortcut keys CMD+F6.
The shortcut keys CMD+B.
The shortcut keys CMD+SHIFT+7.
The shortcut keys CMD+L.
The shortcut keys CMD+G.
Contains xtd::forms::keys enum class.
The shortcut keys CMD+SHIFT+3.
The shortcut keys CMD+SHIFT+F2.
The shortcut keys CMD+6.
The shortcut keys CMD+T.
The shortcut keys CMD+S.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
The shortcut keys CMD+SHIFT+F11.
The shortcut keys CMD+SHIFT+V.
The shortcut keys CMD+I.
The shortcut keys SHIFT+F10.
The shortcut keys SHIFT+F9.
The shortcut keys CMD+SHIFT+W.
The shortcut keys CMD+SHIFT+5.
The shortcut keys ALT+9.
The shortcut keys ALT+F7.
The shortcut keys CMD+SHIFT+A.
shortcut
Specifies shortcut keys that can be used by menu items.
Definition: shortcut.h:19
The shortcut keys SHIFT+F4.
The shortcut keys CMD+0.
The shortcut keys CMD+8.
The shortcut keys CMD+SHIFT+2.
The shortcut keys CMD+E.
The shortcut keys CMD+SHIFT+T.
The shortcut keys ALT+UPARROW.
The shortcut keys CMD+SHIFT+8.
The shortcut keys CMD+1.
The shortcut keys CMD+W.
std::string to_string(const value_t &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: to_string.h:37
The shortcut keys CMD+V.