KKeyNative Class Reference
#include <kkeynative.h>
Detailed Description
Representation of a key in the format native of the windowing system (eg.X11).
- See also:
- KKey
Definition at line 37 of file 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 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 | |
static KKeyNative & | null () |
static bool | keyboardHasWinKey () |
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.
|
|
The native keycode of the key.
|
|
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.
|
|
Copies the given key into this key.
|
|
Creates a new native key for the given KKey code.
|
|
Returns true if the key is null (after clear() or empty constructor).
|
|
Returns the KKey representation of this key.
|
|
Checks whether the keyboard has a Win key.
|
|
Returns the qt key code.
|
|
The native modifier flags of the key.
|
|
Returns a null key.
|
|
Converts this key to its KKey representation.
Definition at line 130 of file kkeynative.h. |
|
Compares the symbol, modifiers and code of both keys.
Definition at line 183 of file kkeynative.h. |
|
Compares the symbol, modifiers and code of both keys.
Definition at line 190 of file kkeynative.h. |
|
Copies the given key into this key.
Definition at line 108 of file kkeynative.h. |
|
Compares the symbol, modifiers and code of both keys.
Definition at line 176 of file kkeynative.h. |
|
The native symbol (KeySym) of the key.
|
The documentation for this class was generated from the following file: