KDEUI
kkeyserver_x11.h
Go to the documentation of this file.
00001 /* 00002 Copyright (C) 2001 Ellis Whitehead <ellis@kde.org> 00003 00004 Win32 port: 00005 Copyright (C) 2004 Jarosław Staniek <staniek@kde.org> 00006 00007 This library is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU Library General Public 00009 License as published by the Free Software Foundation; either 00010 version 2 of the License, or (at your option) any later version. 00011 00012 This library is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 Library General Public License for more details. 00016 00017 You should have received a copy of the GNU Library General Public License 00018 along with this library; see the file COPYING.LIB. If not, write to 00019 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00020 Boston, MA 02110-1301, USA. 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 modXNumLock(); 00090 00096 KDEUI_EXPORT uint modXScrollLock(); 00097 00103 KDEUI_EXPORT uint modXModeSwitch(); 00104 00116 KDEUI_EXPORT uint accelModMaskX(); 00117 00125 KDEUI_EXPORT bool keyQtToSymX( int keyQt, int* sym ); 00126 00133 KDEUI_EXPORT bool keyQtToCodeX( int keyQt, int* keyCode ); 00134 00142 KDEUI_EXPORT bool keyQtToModX( int keyQt, uint* mod ); 00143 00150 KDEUI_EXPORT bool symXToKeyQt( uint sym, int* keyQt ); 00151 00160 KDEUI_EXPORT bool modXToQt( uint modX, int* modQt ); 00161 00169 KDEUI_EXPORT bool xEventToQt( XEvent* e, int* keyModQt ); 00170 } 00171 00172 #endif // !_KKEYSERVER_X11_H
KDE 4.6 API Reference