KKeyServer Namespace Reference
A collection of functions for the conversion of key presses and their modifiers from the window system (X11) specific format to the generic format and vice-versa. More...
Classes | |
struct | Sym |
Represents a key symbol. More... | |
struct | Key |
Represents a key press. More... | |
struct | Variations |
TODO: please document this class. More... | |
Enumerations | |
enum | ExtraModFlag { MODE_SWITCH = 0x2000 } |
Supplement enum KKey::ModFlag
| |
Functions | |
bool | initializeMods () |
TODO: please document. | |
uint | modX (KKey::ModFlag modFlag) |
Returns the equivalent X modifier mask of the given modifier flag. | |
bool | keyboardHasWinKey () |
Returns true if the current keyboard layout supports the Win key. | |
uint | modXShift () |
Returns the X11 Shift modifier mask/flag. | |
uint | modXLock () |
Returns the X11 Lock modifier mask/flag. | |
uint | modXCtrl () |
Returns the X11 Ctrl modifier mask/flag. | |
uint | modXAlt () |
Returns the X11 Alt (Mod1) modifier mask/flag. | |
uint | modXNumLock () |
Returns the X11 NumLock modifier mask/flag. | |
uint | modXWin () |
Returns the X11 Win (Mod3) modifier mask/flag. | |
uint | modXScrollLock () |
Returns the X11 ScrollLock modifier mask/flag. | |
uint | accelModMaskX () |
Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and Win (if available). | |
bool | keyQtToSym (int keyQt, uint &sym) |
Extracts the symbol from the given Qt key and converts it to a symbol. | |
bool | keyQtToMod (int keyQt, uint &mod) |
Extracts the modifiers from the given Qt key and converts them in a mask of ORed KKey::ModFlag modifiers. | |
bool | symToKeyQt (uint sym, int &keyQt) |
Converts the given symbol to a Qt key code. | |
bool | modToModQt (uint mod, int &modQt) |
Converts the mask of ORed KKey::ModFlag modifiers to a mask of ORed Qt key code modifiers. | |
bool | modToModX (uint mod, uint &modX) |
Converts the mask of ORed KKey::ModFlag modifiers to a mask of ORed X11 modifiers. | |
bool | modXToModQt (uint modX, int &modQt) |
Converts the mask of ORed X11 modifiers to a mask of ORed Qt key code modifiers. | |
bool | modXToMod (uint modX, uint &mod) |
Converts the mask of ORed X11 modifiers to a mask of ORed KKey::ModFlag modifiers. | |
bool | codeXToSym (uchar codeX, uint modX, uint &symX) |
Converts a X11 key code and a mask of ORed X11 modifiers into a X11 symbol. | |
QString | modToStringInternal (uint mod) |
QString | modToStringUser (uint mod) |
Converts the mask of ORed KKey::ModFlag modifiers to a user-readable string. | |
bool | stringToSymMod (const QString &, uint &sym, uint &mod) |
void | keyQtToKeyX (uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX) |
Detailed Description
A collection of functions for the conversion of key presses and their modifiers from the window system (X11) specific format to the generic format and vice-versa.Enumeration Type Documentation
|
Supplement enum KKey::ModFlag
Definition at line 18 of file kkeyserver_x11.h. |
Function Documentation
|
TODO: please document.
|
|
Returns the equivalent X modifier mask of the given modifier flag.
|
|
Returns true if the current keyboard layout supports the Win key. Specifically, whether the Super or Meta keys are assigned to an X modifier.
|
|
Returns the X11 Shift modifier mask/flag.
|
|
Returns the X11 Lock modifier mask/flag.
|
|
Returns the X11 Ctrl modifier mask/flag.
|
|
Returns the X11 Alt (Mod1) modifier mask/flag.
|
|
Returns the X11 NumLock modifier mask/flag.
|
|
Returns the X11 Win (Mod3) modifier mask/flag.
|
|
Returns the X11 ScrollLock modifier mask/flag.
|
|
Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and Win (if available).
|
|
Extracts the symbol from the given Qt key and converts it to a symbol.
|
|
Extracts the modifiers from the given Qt key and converts them in a mask of ORed KKey::ModFlag modifiers.
|
|
Converts the given symbol to a Qt key code.
|
|
Converts the mask of ORed KKey::ModFlag modifiers to a mask of ORed Qt key code modifiers.
|
|
Converts the mask of ORed KKey::ModFlag modifiers to a mask of ORed X11 modifiers.
|
|
Converts the mask of ORed X11 modifiers to a mask of ORed Qt key code modifiers.
|
|
Converts the mask of ORed X11 modifiers to a mask of ORed KKey::ModFlag modifiers.
|
|
Converts a X11 key code and a mask of ORed X11 modifiers into a X11 symbol. converts it to a symbol.
|
|
Converts the mask of ORed KKey::ModFlag modifiers to a user-readable string.
|