ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
KeySymbols.h
Go to the documentation of this file.
1 /* @(#)root/base:$Id$ */
2 
3 /*************************************************************************
4  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
5  * All rights reserved. *
6  * *
7  * For the licensing terms see $ROOTSYS/LICENSE. *
8  * For the list of contributors see $ROOTSYS/README/CREDITS. *
9  *************************************************************************/
10 
11 #ifndef ROOT_KeySymbols
12 #define ROOT_KeySymbols
13 
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // KeySymbols //
18 // //
19 // Key symbols used by the GUI classes. //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #ifndef ROOT_GuiTypes
24 #include "GuiTypes.h"
25 #endif
26 
27 enum EKeySym {
28  kKey_Escape = 0x1000, // misc keys
29  kKey_Tab = 0x1001,
30  kKey_Backtab = 0x1002,
31  kKey_Backspace = 0x1003,
32  kKey_Return = 0x1004,
33  kKey_Enter = 0x1005,
34  kKey_Insert = 0x1006,
35  kKey_Delete = 0x1007,
36  kKey_Pause = 0x1008,
37  kKey_Print = 0x1009,
38  kKey_SysReq = 0x100a,
39 
40  kKey_Home = 0x1010, // cursor movement
41  kKey_End = 0x1011,
42  kKey_Left = 0x1012,
43  kKey_Up = 0x1013,
44  kKey_Right = 0x1014,
45  kKey_Down = 0x1015,
46  kKey_Prior = 0x1016,
48  kKey_Next = 0x1017,
50 
51  kKey_Shift = 0x1020, // modifiers
52  kKey_Control = 0x1021,
53  kKey_Meta = 0x1022,
54  kKey_Alt = 0x1023,
55  kKey_CapsLock = 0x1024,
56  kKey_NumLock = 0x1025,
57  kKey_ScrollLock = 0x1026,
58 
59  kKey_F1 = 0x1030, // function keys
60  kKey_F2 = 0x1031,
61  kKey_F3 = 0x1032,
62  kKey_F4 = 0x1033,
63  kKey_F5 = 0x1034,
64  kKey_F6 = 0x1035,
65  kKey_F7 = 0x1036,
66  kKey_F8 = 0x1037,
67  kKey_F9 = 0x1038,
68  kKey_F10 = 0x1039,
69  kKey_F11 = 0x103a,
70  kKey_F12 = 0x103b,
71  kKey_F13 = 0x103c,
72  kKey_F14 = 0x103d,
73  kKey_F15 = 0x103e,
74  kKey_F16 = 0x103f,
75  kKey_F17 = 0x1040,
76  kKey_F18 = 0x1041,
77  kKey_F19 = 0x1042,
78  kKey_F20 = 0x1043,
79  kKey_F21 = 0x1044,
80  kKey_F22 = 0x1045,
81  kKey_F23 = 0x1046,
82  kKey_F24 = 0x1047,
83  kKey_F25 = 0x1048, // F25 .. F35 only on X11
84  kKey_F26 = 0x1049,
85  kKey_F27 = 0x104a,
86  kKey_F28 = 0x104b,
87  kKey_F29 = 0x104c,
88  kKey_F30 = 0x104d,
89  kKey_F31 = 0x104e,
90  kKey_F32 = 0x104f,
91  kKey_F33 = 0x1050,
92  kKey_F34 = 0x1051,
93  kKey_F35 = 0x1052,
94 
95  kKey_Space = 0x20, // 7 bit printable ASCII, for convenience
96  kKey_Exclam = 0x21, // they map straight to ASCII
97  kKey_QuoteDbl = 0x22,
99  kKey_Dollar = 0x24,
100  kKey_Percent = 0x25,
106  kKey_Plus = 0x2b,
107  kKey_Comma = 0x2c,
108  kKey_Minus = 0x2d,
109  kKey_Period = 0x2e,
110  kKey_Slash = 0x2f,
111  kKey_0 = 0x30,
112  kKey_1 = 0x31,
113  kKey_2 = 0x32,
114  kKey_3 = 0x33,
115  kKey_4 = 0x34,
116  kKey_5 = 0x35,
117  kKey_6 = 0x36,
118  kKey_7 = 0x37,
119  kKey_8 = 0x38,
120  kKey_9 = 0x39,
121  kKey_Colon = 0x3a,
123  kKey_Less = 0x3c,
124  kKey_Equal = 0x3d,
125  kKey_Greater = 0x3e,
127  kKey_At = 0x40,
128  kKey_A = 0x41,
129  kKey_B = 0x42,
130  kKey_C = 0x43,
131  kKey_D = 0x44,
132  kKey_E = 0x45,
133  kKey_F = 0x46,
134  kKey_G = 0x47,
135  kKey_H = 0x48,
136  kKey_I = 0x49,
137  kKey_J = 0x4a,
138  kKey_K = 0x4b,
139  kKey_L = 0x4c,
140  kKey_M = 0x4d,
141  kKey_N = 0x4e,
142  kKey_O = 0x4f,
143  kKey_P = 0x50,
144  kKey_Q = 0x51,
145  kKey_R = 0x52,
146  kKey_S = 0x53,
147  kKey_T = 0x54,
148  kKey_U = 0x55,
149  kKey_V = 0x56,
150  kKey_W = 0x57,
151  kKey_X = 0x58,
152  kKey_Y = 0x59,
153  kKey_Z = 0x5a,
160  kKey_a = 0x61,
161  kKey_b = 0x62,
162  kKey_c = 0x63,
163  kKey_d = 0x64,
164  kKey_e = 0x65,
165  kKey_f = 0x66,
166  kKey_g = 0x67,
167  kKey_h = 0x68,
168  kKey_i = 0x69,
169  kKey_j = 0x6a,
170  kKey_k = 0x6b,
171  kKey_l = 0x6c,
172  kKey_m = 0x6d,
173  kKey_n = 0x6e,
174  kKey_o = 0x6f,
175  kKey_p = 0x70,
176  kKey_q = 0x71,
177  kKey_r = 0x72,
178  kKey_s = 0x73,
179  kKey_t = 0x74,
180  kKey_u = 0x75,
181  kKey_v = 0x76,
182  kKey_w = 0x77,
183  kKey_x = 0x78,
184  kKey_y = 0x79,
185  kKey_z = 0x7a,
187  kKey_Bar = 0x7c,
190 
191  kKey_Unknown = 0xffff,
192 
193  kAnyKey = 0 // maps to any key, used by GrabKey()
194 };
195 
196 #endif
EKeySym
Definition: KeySymbols.h:27