KKeyNative Class Reference
Representation of a key in the format native of the windowing system (eg. More...
#include <kkeynative.h>
Public Member Functions | |
KKeyNative () | |
Creates a new null KKey. | |
KKeyNative (const XEvent *xevent) | |
Extracts a new native key from the given xevent. | |
KKeyNative (const KKey &key) | |
Creates a new native key for the given KKey code. | |
KKeyNative (const KKeyNative &) | |
Copy constructor. | |
KKeyNative (uint code, uint mod, uint sym) | |
void | clear () |
Clears the key. | |
bool | init (const XEvent *xevent) |
Initializes the native key by extracting the information from the given xevent. | |
bool | init (const KKey &key) |
Creates a new native key for the given KKey code. | |
bool | init (const KKeyNative &key) |
Copies the given key into this key. | |
KKeyNative & | operator= (const KKeyNative &key) |
Copies the given key into this key. | |
int | keyCodeQt () const |
Returns the qt key code. | |
KKey | key () const |
Returns the KKey representation of this key. | |
operator KKey () const | |
Converts this key to its KKey representation. | |
uint | code () const |
The native keycode of the key. | |
uint | mod () const |
The native modifier flags of the key. | |
uint | sym () const |
The native symbol (KeySym) of the key. | |
bool | isNull () const |
Returns true if the key is null (after clear() or empty constructor). | |
int | compare (const KKeyNative &key) const |
Compares this key with the given KKeyNative object. | |
bool | operator== (const KKeyNative &key) const |
Compares the symbol, modifiers and code of both keys. | |
bool | operator!= (const KKeyNative &key) const |
Compares the symbol, modifiers and code of both keys. | |
bool | operator< (const KKeyNative &key) const |
Compares the symbol, modifiers and code of both keys. | |
Static Public Member Functions | |
KKeyNative & | null () |
Returns a null key. | |
bool | keyboardHasWinKey () |
Checks whether the keyboard has a Win key. | |
uint | modX (KKey::ModFlag modFlag) |
Returns the equivalent X modifier mask of the given modifier flag. | |
uint | accelModMaskX () |
Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and Win (if available). | |
uint | modXNumLock () |
Returns the X11 NumLock modifier mask/flag. | |
uint | modXLock () |
Returns the X11 Lock modifier mask/flag. | |
uint | modXScrollLock () |
Returns the X11 ScrollLock modifier mask/flag. |
Detailed Description
Representation of a key in the format native of the windowing system (eg.X11).
- See also:
- KKey
Definition at line 32 of file kkeynative.h.
Constructor & Destructor Documentation
|
Creates a new null KKey.
|
|
Extracts a new native key from the given xevent.
|
|
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 99 of file kkeynative.h. References init(), and KStdAccel::key(). |
|
Returns the qt key code.
|
|
Returns the KKey representation of this key.
Referenced by operator KKey(). |
|
Converts this key to its KKey representation.
Definition at line 121 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 167 of file kkeynative.h. References compare(), and KStdAccel::key(). |
|
Compares the symbol, modifiers and code of both keys.
Definition at line 174 of file kkeynative.h. References compare(), and KStdAccel::key(). |
|
Compares the symbol, modifiers and code of both keys.
Definition at line 181 of file kkeynative.h. References compare(), and KStdAccel::key(). |
|
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: