• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

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 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

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal