KKeyNative Class Reference
Representation of a key in the format native of the windowing system (eg. More...
#include <kkeynative.h>
| Public Member Functions | |
| KKeyNative () | |
| KKeyNative (const KKey &key) | |
| KKeyNative (const KKeyNative &) | |
| KKeyNative (uint code, uint mod, uint sym) | |
| void | clear () | 
| bool | init (const XEvent *xevent) | 
| bool | init (const KKey &key) | 
| bool | init (const KKeyNative &key) | 
| KKeyNative & | operator= (const KKeyNative &key) | 
| int | keyCodeQt () const | 
| KKey | key () const | 
| operator KKey () const | |
| uint | code () const | 
| uint | mod () const | 
| uint | sym () const | 
| bool | isNull () const | 
| int | compare (const KKeyNative &key) const | 
| bool | operator== (const KKeyNative &key) const | 
| bool | operator!= (const KKeyNative &key) const | 
| bool | operator< (const KKeyNative &key) const | 
| Static Public Member Functions | |
| KKeyNative & | null () | 
| bool | keyboardHasWinKey () | 
| uint | modX (KKey::ModFlag modFlag) | 
| uint | accelModMaskX () | 
| uint | modXNumLock () | 
| uint | modXLock () | 
| uint | modXScrollLock () | 
Detailed Description
Representation of a key in the format native of the windowing system (eg.X11).
- See also:
- KKey
Definition at line 34 of file kkeynative.h.
Constructor & Destructor Documentation
| 
 | 
| Creates a new null KKey. 
 | 
| 
 | 
| Creates a new native key for the given KKey code. 
 
 | 
| 
 | 
| Copy constructor. 
 | 
Member Function Documentation
| 
 | 
| Clears the key. The key is null after calling this function. 
 | 
| 
 | 
| Initializes the native key by extracting the information from the given xevent. 
 
 
 Referenced by operator=(). | 
| 
 | 
| Creates a new native key for the given KKey code. 
 
 
 | 
| 
 | 
| Copies the given key into this key. 
 
 
 | 
| 
 | 
| Copies the given key into this key. 
 
 
 Definition at line 103 of file kkeynative.h. References init(). | 
| 
 | 
| Returns the qt key code. 
 
 
 | 
| 
 | 
| Returns the KKey representation of this key. 
 
 Referenced by KShortcut::contains(), and operator KKey(). | 
| 
 | 
| Converts this key to its KKey representation. 
 
 
 Definition at line 125 of file kkeynative.h. References key(). | 
| 
 | 
| The native keycode of the key. 
 
 | 
| 
 | 
| The native modifier flags of the key. 
 
 | 
| 
 | 
| The native symbol (KeySym) of the key. 
 
 | 
| 
 | 
| Returns true if the key is null (after clear() or empty constructor). 
 
 | 
| 
 | 
| Compares this key with the given KKeyNative object. Returns a negative number if the given KKeyNative is larger, 0 if they are equal and a positive number this KKeyNative is larger. The returned value is the difference between the symbol, modifier or code, whatever is non-zero first. 
 
 
 Referenced by operator!=(), operator<(), and operator==(). | 
| 
 | 
| Compares the symbol, modifiers and code of both keys. 
 
 Definition at line 171 of file kkeynative.h. References compare(). | 
| 
 | 
| Compares the symbol, modifiers and code of both keys. 
 
 Definition at line 178 of file kkeynative.h. References compare(). | 
| 
 | 
| Compares the symbol, modifiers and code of both keys. 
 
 Definition at line 185 of file kkeynative.h. References compare(). | 
| 
 | 
| Returns a null key. 
 
 | 
| 
 | 
| Checks whether the keyboard has a Win key. 
 
 | 
| 
 | 
| Returns the equivalent X modifier mask of the given modifier flag. 
 
 
 | 
| 
 | 
| Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and Win (if available). 
 
 | 
| 
 | 
| Returns the X11 NumLock modifier mask/flag. 
 
 
 | 
| 
 | 
| Returns the X11 Lock modifier mask/flag. 
 
 
 | 
| 
 | 
| Returns the X11 ScrollLock modifier mask/flag. 
 
 
 | 
The documentation for this class was generated from the following file:

