KKeyServer::Key Struct Reference
Represents a key press. More...
#include <kkeyserver_x11.h>
Public Types | |
enum | { CODE_FOR_QT = 256 } |
Public Member Functions | |
bool | init (const KKey &key, bool bQt) |
bool | isNative () const |
uint | code () const |
uint | mod () const |
uint | sym () const |
int | keyCodeQt () const |
void | setKeycodeQt (int keyQt) |
Key & | operator= (const KKeyNative &key) |
int | compare (const Key &key) const |
bool | operator== (const Key &b) const |
bool | operator< (const Key &b) const |
KKey | key () const |
Public Attributes | |
uint | m_code |
uint | m_mod |
uint | m_sym |
Detailed Description
Represents a key press.
- See also:
- KKey
Definition at line 115 of file kkeyserver_x11.h.
Member Enumeration Documentation
|
Code for native Keys in Qt.
Definition at line 118 of file kkeyserver_x11.h. |
Member Function Documentation
|
Initializes the key with a KKey.
Definition at line 793 of file kkeyserver_x11.cpp. References KKey::keyCodeQt(), m_code, and m_sym. |
|
Checks whether the key code is a native code.
Definition at line 146 of file kkeyserver_x11.h. References m_code. |
|
Returns the code of the key.
Definition at line 152 of file kkeyserver_x11.h. References m_code. |
|
Returns the modifiers of the key.
Definition at line 158 of file kkeyserver_x11.h. References m_mod. |
|
Returns the symbol of the key.
Definition at line 164 of file kkeyserver_x11.h. References m_sym. |
|
Returns the qt key code.
Definition at line 170 of file kkeyserver_x11.h. References m_sym. Referenced by key(). |
|
Sets the qt key code.
Definition at line 176 of file kkeyserver_x11.h. |
|
Initializes this key with a KKeyNative.
Definition at line 816 of file kkeyserver_x11.cpp. References KKeyNative::code(), m_code, m_mod, m_sym, KKeyNative::mod(), and KKeyNative::sym(). |
|
Compares this key with the given Key object. Returns a negative number if the given Key is larger, 0 if they are equal and a positive number this Key is larger. The returned value is the difference between the symbol, modifier or code, whatever is non-zero first.
Definition at line 822 of file kkeyserver_x11.cpp. References m_code, m_mod, and m_sym. Referenced by operator<(), and operator==(). |
|
Compares the symbol, modifiers and code of both keys.
Definition at line 202 of file kkeyserver_x11.h. References compare(). |
|
Compares the symbol, modifiers and code of both keys.
Definition at line 209 of file kkeyserver_x11.h. References compare(). |
|
Definition at line 805 of file kkeyserver_x11.cpp. References keyCodeQt(), m_code, m_mod, m_sym, and KKeyServer::modXToMod(). |
Member Data Documentation
|
The code of the key.
Definition at line 121 of file kkeyserver_x11.h. Referenced by code(), compare(), init(), isNative(), key(), operator=(), and setKeycodeQt(). |
|
The modifiers of the key.
Definition at line 124 of file kkeyserver_x11.h. Referenced by compare(), key(), mod(), and operator=(). |
|
The symbol of the key.
Definition at line 127 of file kkeyserver_x11.h. Referenced by compare(), init(), key(), keyCodeQt(), operator=(), setKeycodeQt(), and sym(). |
The documentation for this struct was generated from the following files: