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