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. 
 
 
 | 
| 
 | 
| 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. | 
| 
 | 
| Sets the qt key code. 
 
 Definition at line 176 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 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(). | 
| 
 | 
| 
 
 | 
Member Data Documentation
| 
 | 
| The code of the key. 
 Definition at line 121 of file kkeyserver_x11.h. Referenced by code(), isNative(), and setKeycodeQt(). | 
| 
 | 
| The modifiers of the key. 
 Definition at line 124 of file kkeyserver_x11.h. Referenced by mod(). | 
| 
 | 
| The symbol of the key. 
 Definition at line 127 of file kkeyserver_x11.h. Referenced by keyCodeQt(), setKeycodeQt(), and sym(). | 
The documentation for this struct was generated from the following file:

