KDEUI
kkeyserver_x11.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _KKEYSERVER_X11_H
00024 #define _KKEYSERVER_X11_H
00025
00026 #include "kshortcut.h"
00027 #include <X11/Xlib.h>
00028 #include <fixx11h.h>
00029
00030 namespace KKeyServer
00031 {
00032 static const int MODE_SWITCH = 0x2000;
00033
00038 KDEUI_EXPORT bool initializeMods();
00039
00046 KDEUI_EXPORT bool keyboardHasMetaKey();
00047
00053 KDEUI_EXPORT uint modXShift();
00054
00060 KDEUI_EXPORT uint modXLock();
00061
00067 KDEUI_EXPORT uint modXCtrl();
00068
00074 KDEUI_EXPORT uint modXAlt();
00075
00082 KDEUI_EXPORT uint modXMeta();
00083
00089 KDEUI_EXPORT uint modXLock();
00090
00096 KDEUI_EXPORT uint modXNumLock();
00097
00103 KDEUI_EXPORT uint modXScrollLock();
00104
00110 KDEUI_EXPORT uint modXModeSwitch();
00111
00123 KDEUI_EXPORT uint accelModMaskX();
00124
00132 KDEUI_EXPORT bool keyQtToSymX( int keyQt, int* sym );
00133
00140 KDEUI_EXPORT bool keyQtToCodeX( int keyQt, int* keyCode );
00141
00149 KDEUI_EXPORT bool keyQtToModX( int keyQt, uint* mod );
00150
00157 KDEUI_EXPORT bool symXToKeyQt( uint sym, int* keyQt );
00158
00167 KDEUI_EXPORT bool modXToQt( uint modX, int* modQt );
00168
00176 KDEUI_EXPORT bool xEventToQt( XEvent* e, int* keyModQt );
00177 }
00178
00179 #endif // !_KKEYSERVER_X11_H