KKeyServer::Key Struct Reference
Represents a key press. More...
#include <kkeyserver_x11.h>
Public Types | |
enum | |
Code for native Keys in Qt. More... | |
Public Methods | |
bool | init (const KKey &key, bool bQt) |
Initializes the key with a KKey. | |
bool | isNative () const |
Checks whether the key code is a native code. | |
uint | code () const |
Returns the code of the key. | |
uint | mod () const |
Returns the modifiers of the key. | |
uint | sym () const |
Returns the symbol of the key. | |
int | keyCodeQt () const |
Returns the qt key code. | |
void | setKeycodeQt (int keyQt) |
Sets the qt key code. | |
Key & | operator= (const KKeyNative &key) |
Initializes this key with a KKeyNative. | |
int | compare (const Key &key) const |
Compares this key with the given Key object. | |
bool | operator== (const Key &b) const |
Compares the symbol, modifiers and code of both keys. | |
bool | operator< (const Key &b) const |
Compares the symbol, modifiers and code of both keys. | |
KKey | key () const |
Converts this Key to a KKey. | |
Public Attributes | |
uint | m_code |
The code of the key. | |
uint | m_mod |
The modifiers of the key. | |
uint | m_sym |
The symbol of the key. |
Detailed Description
Represents a key press.
- See also:
- KKey
Definition at line 117 of file kkeyserver_x11.h.
Member Enumeration Documentation
|
Code for native Keys in Qt.
Definition at line 120 of file kkeyserver_x11.h. |
Member Function Documentation
|
Initializes the key with a KKey.
|
|
Checks whether the key code is a native code.
Definition at line 148 of file kkeyserver_x11.h. References m_code. |
|
Returns the code of the key.
Definition at line 154 of file kkeyserver_x11.h. References m_code. |
|
Returns the modifiers of the key.
Definition at line 160 of file kkeyserver_x11.h. References m_mod. |
|
Returns the symbol of the key.
Definition at line 166 of file kkeyserver_x11.h. References m_sym. |
|
Returns the qt key code.
Definition at line 172 of file kkeyserver_x11.h. References m_sym. |
|
Sets the qt key code.
Definition at line 178 of file kkeyserver_x11.h. |
|
Initializes this key with a KKeyNative.
|
|
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.
Referenced by operator<(), and operator==(). |
|
Compares the symbol, modifiers and code of both keys.
Definition at line 204 of file kkeyserver_x11.h. References compare(). |
|
Compares the symbol, modifiers and code of both keys.
Definition at line 211 of file kkeyserver_x11.h. References compare(). |
|
Converts this Key to a KKey.
|
Member Data Documentation
|
The code of the key.
Definition at line 123 of file kkeyserver_x11.h. Referenced by code(), isNative(), and setKeycodeQt(). |
|
The modifiers of the key.
Definition at line 126 of file kkeyserver_x11.h. Referenced by mod(). |
|
The symbol of the key.
Definition at line 129 of file kkeyserver_x11.h. Referenced by keyCodeQt(), setKeycodeQt(), and sym(). |
The documentation for this struct was generated from the following file: