Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:15

0001 /* @(#)root/base:$Id$ */
0002 
0003 /*************************************************************************
0004  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0005  * All rights reserved.                                                  *
0006  *                                                                       *
0007  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0008  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0009  *************************************************************************/
0010 
0011 #ifndef ROOT_KeySymbols
0012 #define ROOT_KeySymbols
0013 
0014 
0015 //////////////////////////////////////////////////////////////////////////
0016 //                                                                      //
0017 // KeySymbols                                                           //
0018 //                                                                      //
0019 // Key symbols used by the GUI classes.                                 //
0020 //                                                                      //
0021 //////////////////////////////////////////////////////////////////////////
0022 
0023 #include "GuiTypes.h"
0024 
0025 enum EKeySym {
0026    kKey_Escape              = 0x1000,          // misc keys
0027    kKey_Tab                 = 0x1001,
0028    kKey_Backtab             = 0x1002,
0029    kKey_Backspace           = 0x1003,
0030    kKey_Return              = 0x1004,
0031    kKey_Enter               = 0x1005,
0032    kKey_Insert              = 0x1006,
0033    kKey_Delete              = 0x1007,
0034    kKey_Pause               = 0x1008,
0035    kKey_Print               = 0x1009,
0036    kKey_SysReq              = 0x100a,
0037 
0038    kKey_Home                = 0x1010,          // cursor movement
0039    kKey_End                 = 0x1011,
0040    kKey_Left                = 0x1012,
0041    kKey_Up                  = 0x1013,
0042    kKey_Right               = 0x1014,
0043    kKey_Down                = 0x1015,
0044    kKey_Prior               = 0x1016,
0045    kKey_PageUp              = kKey_Prior,
0046    kKey_Next                = 0x1017,
0047    kKey_PageDown            = kKey_Next,
0048 
0049    kKey_Shift               = 0x1020,          // modifiers
0050    kKey_Control             = 0x1021,
0051    kKey_Meta                = 0x1022,
0052    kKey_Alt                 = 0x1023,
0053    kKey_CapsLock            = 0x1024,
0054    kKey_NumLock             = 0x1025,
0055    kKey_ScrollLock          = 0x1026,
0056 
0057    kKey_F1                  = 0x1030,          // function keys
0058    kKey_F2                  = 0x1031,
0059    kKey_F3                  = 0x1032,
0060    kKey_F4                  = 0x1033,
0061    kKey_F5                  = 0x1034,
0062    kKey_F6                  = 0x1035,
0063    kKey_F7                  = 0x1036,
0064    kKey_F8                  = 0x1037,
0065    kKey_F9                  = 0x1038,
0066    kKey_F10                 = 0x1039,
0067    kKey_F11                 = 0x103a,
0068    kKey_F12                 = 0x103b,
0069    kKey_F13                 = 0x103c,
0070    kKey_F14                 = 0x103d,
0071    kKey_F15                 = 0x103e,
0072    kKey_F16                 = 0x103f,
0073    kKey_F17                 = 0x1040,
0074    kKey_F18                 = 0x1041,
0075    kKey_F19                 = 0x1042,
0076    kKey_F20                 = 0x1043,
0077    kKey_F21                 = 0x1044,
0078    kKey_F22                 = 0x1045,
0079    kKey_F23                 = 0x1046,
0080    kKey_F24                 = 0x1047,
0081    kKey_F25                 = 0x1048,          // F25 .. F35 only on X11
0082    kKey_F26                 = 0x1049,
0083    kKey_F27                 = 0x104a,
0084    kKey_F28                 = 0x104b,
0085    kKey_F29                 = 0x104c,
0086    kKey_F30                 = 0x104d,
0087    kKey_F31                 = 0x104e,
0088    kKey_F32                 = 0x104f,
0089    kKey_F33                 = 0x1050,
0090    kKey_F34                 = 0x1051,
0091    kKey_F35                 = 0x1052,
0092 
0093    kKey_Space               = 0x20,   // 7 bit printable ASCII, for convenience
0094    kKey_Exclam              = 0x21,   // they map straight to ASCII
0095    kKey_QuoteDbl            = 0x22,
0096    kKey_NumberSign          = 0x23,
0097    kKey_Dollar              = 0x24,
0098    kKey_Percent             = 0x25,
0099    kKey_Ampersand           = 0x26,
0100    kKey_Apostrophe          = 0x27,
0101    kKey_ParenLeft           = 0x28,
0102    kKey_ParenRight          = 0x29,
0103    kKey_Asterisk            = 0x2a,
0104    kKey_Plus                = 0x2b,
0105    kKey_Comma               = 0x2c,
0106    kKey_Minus               = 0x2d,
0107    kKey_Period              = 0x2e,
0108    kKey_Slash               = 0x2f,
0109    kKey_0                   = 0x30,
0110    kKey_1                   = 0x31,
0111    kKey_2                   = 0x32,
0112    kKey_3                   = 0x33,
0113    kKey_4                   = 0x34,
0114    kKey_5                   = 0x35,
0115    kKey_6                   = 0x36,
0116    kKey_7                   = 0x37,
0117    kKey_8                   = 0x38,
0118    kKey_9                   = 0x39,
0119    kKey_Colon               = 0x3a,
0120    kKey_Semicolon           = 0x3b,
0121    kKey_Less                = 0x3c,
0122    kKey_Equal               = 0x3d,
0123    kKey_Greater             = 0x3e,
0124    kKey_Question            = 0x3f,
0125    kKey_At                  = 0x40,
0126    kKey_A                   = 0x41,
0127    kKey_B                   = 0x42,
0128    kKey_C                   = 0x43,
0129    kKey_D                   = 0x44,
0130    kKey_E                   = 0x45,
0131    kKey_F                   = 0x46,
0132    kKey_G                   = 0x47,
0133    kKey_H                   = 0x48,
0134    kKey_I                   = 0x49,
0135    kKey_J                   = 0x4a,
0136    kKey_K                   = 0x4b,
0137    kKey_L                   = 0x4c,
0138    kKey_M                   = 0x4d,
0139    kKey_N                   = 0x4e,
0140    kKey_O                   = 0x4f,
0141    kKey_P                   = 0x50,
0142    kKey_Q                   = 0x51,
0143    kKey_R                   = 0x52,
0144    kKey_S                   = 0x53,
0145    kKey_T                   = 0x54,
0146    kKey_U                   = 0x55,
0147    kKey_V                   = 0x56,
0148    kKey_W                   = 0x57,
0149    kKey_X                   = 0x58,
0150    kKey_Y                   = 0x59,
0151    kKey_Z                   = 0x5a,
0152    kKey_BracketLeft         = 0x5b,
0153    kKey_Backslash           = 0x5c,
0154    kKey_BracketRight        = 0x5d,
0155    kKey_AsciiCircum         = 0x5e,
0156    kKey_Underscore          = 0x5f,
0157    kKey_QuoteLeft           = 0x60,
0158    kKey_a                   = 0x61,
0159    kKey_b                   = 0x62,
0160    kKey_c                   = 0x63,
0161    kKey_d                   = 0x64,
0162    kKey_e                   = 0x65,
0163    kKey_f                   = 0x66,
0164    kKey_g                   = 0x67,
0165    kKey_h                   = 0x68,
0166    kKey_i                   = 0x69,
0167    kKey_j                   = 0x6a,
0168    kKey_k                   = 0x6b,
0169    kKey_l                   = 0x6c,
0170    kKey_m                   = 0x6d,
0171    kKey_n                   = 0x6e,
0172    kKey_o                   = 0x6f,
0173    kKey_p                   = 0x70,
0174    kKey_q                   = 0x71,
0175    kKey_r                   = 0x72,
0176    kKey_s                   = 0x73,
0177    kKey_t                   = 0x74,
0178    kKey_u                   = 0x75,
0179    kKey_v                   = 0x76,
0180    kKey_w                   = 0x77,
0181    kKey_x                   = 0x78,
0182    kKey_y                   = 0x79,
0183    kKey_z                   = 0x7a,
0184    kKey_BraceLeft           = 0x7b,
0185    kKey_Bar                 = 0x7c,
0186    kKey_BraceRight          = 0x7d,
0187    kKey_AsciiTilde          = 0x7e,
0188 
0189    kKey_Unknown             = 0xffff,
0190 
0191    kAnyKey                  = 0           // maps to any key, used by GrabKey()
0192 };
0193 
0194 #endif