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 XEvent *xevent) | |
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 () |
uint | modXModeSwitch () |
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.
Constructor & Destructor Documentation
|
Creates a new null KKey.
Definition at line 55 of file kkeynative_x11.cpp. References clear(). |
|
Extracts a new native key from the given xevent.
Definition at line 59 of file kkeynative_x11.cpp. References init(). |
|
Creates a new native key for the given KKey code.
Definition at line 56 of file kkeynative_x11.cpp. References init(). |
|
Copy constructor.
Definition at line 57 of file kkeynative_x11.cpp. References init(). |
Member Function Documentation
|
Clears the key. The key is null after calling this function.
Definition at line 72 of file kkeynative_x11.cpp. Referenced by KKeyNative(), and null(). |
|
Initializes the native key by extracting the information from the given xevent.
Definition at line 80 of file kkeynative_x11.cpp. References init(). Referenced by init(), and KKeyNative(). |
|
Creates a new native key for the given KKey code.
Definition at line 91 of file kkeynative_x11.cpp. References KKeyServer::codeXToSym(), endl(), init(), and KKeyServer::modToModX(). |
|
Copies the given key into this key.
Definition at line 130 of file kkeynative_x11.cpp. References init(). |
|
Copies the given key into this key.
Definition at line 108 of file kkeynative.h. |
|
Returns the qt key code.
Definition at line 177 of file kkeynative_x11.cpp. References KKeyServer::modXToModQt(). |
|
Returns the KKey representation of this key.
Definition at line 164 of file kkeynative_x11.cpp. References KKeyServer::modXToMod(). Referenced by KShortcut::contains(). |
|
Converts this key to its KKey representation.
Definition at line 130 of file kkeynative.h. |
|
The native keycode of the key.
Definition at line 138 of file kkeynative_x11.cpp. |
|
The native modifier flags of the key.
Definition at line 139 of file kkeynative_x11.cpp. |
|
The native symbol (KeySym) of the key.
Definition at line 140 of file kkeynative_x11.cpp. |
|
Returns true if the key is null (after clear() or empty constructor).
Definition at line 142 of file kkeynative_x11.cpp. Referenced by null(). |
|
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.
Definition at line 147 of file kkeynative_x11.cpp. References compare(). Referenced by compare(). |
|
Compares the symbol, modifiers and code of both keys.
Definition at line 176 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. |
|
Returns a null key.
Definition at line 155 of file kkeynative_x11.cpp. |
|
Checks whether the keyboard has a Win key.
Definition at line 187 of file kkeynative_x11.cpp. References KKeyServer::keyboardHasWinKey(). |
|
Returns the equivalent X modifier mask of the given modifier flag.
Definition at line 190 of file kkeynative_x11.cpp. References KKeyServer::modX(), and modX(). Referenced by modX(). |
|
Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and Win (if available).
Definition at line 191 of file kkeynative_x11.cpp. References KKeyServer::accelModMaskX(). |
|
Returns the X11 NumLock modifier mask/flag.
Definition at line 192 of file kkeynative_x11.cpp. References KKeyServer::modXNumLock(). |
|
Returns the X11 Lock modifier mask/flag.
Definition at line 193 of file kkeynative_x11.cpp. References KKeyServer::modXLock(). |
|
Returns the X11 ScrollLock modifier mask/flag.
Definition at line 194 of file kkeynative_x11.cpp. References KKeyServer::modXScrollLock(). |
|
Returns the X11 Mode_switch modifier mask/flag.
Definition at line 195 of file kkeynative_x11.cpp. References KKeyServer::modXModeSwitch(). |
The documentation for this class was generated from the following files: