![]() |
ManaPlus
|
#include <keyevent.h>
Public Member Functions | |
| KeyEvent (Widget *const source, KeyEventTypeT type, const InputActionT actionId, const Key &key) | |
| KeyEventTypeT | getType () const |
| const Key & | getKey () const |
| InputActionT | getActionId () const |
Public Member Functions inherited from InputGuiEvent | |
| InputGuiEvent (Widget *const source) | |
| void | consume () |
| bool | isConsumed () const |
Public Member Functions inherited from Event | |
| Event (Widget *const source) | |
| virtual | ~Event () |
| Widget * | getSource () const |
Protected Attributes | |
| Key | mKey |
| KeyEventTypeT | mType |
| InputActionT | mActionId |
Protected Attributes inherited from InputGuiEvent | |
| bool | mIsConsumed |
Protected Attributes inherited from Event | |
| Widget * | mSource |
Represents a key event.
Definition at line 85 of file keyevent.h.
|
inline |
Constructor.
| source | The source widget of the event. |
| type | The type of the event. A value from KeyEventType. false otherwise. |
| key | The key of the event. |
Definition at line 96 of file keyevent.h.
|
inline |
Definition at line 127 of file keyevent.h.
References mActionId.
Referenced by InventoryWindow::keyPressed(), ServerDialog::keyPressed(), and InventoryWindow::keyReleased().
|
inline |
Gets the key of the event.
Definition at line 124 of file keyevent.h.
References mKey.
Referenced by IntTextField::keyPressed(), and ChatWindow::keyPressed().
|
inline |
Gets the type of the event.
Definition at line 116 of file keyevent.h.
References mType.
|
protected |
Definition at line 153 of file keyevent.h.
Referenced by getActionId().
|
protected |
|
protected |
Holds the type of the key event.
Definition at line 151 of file keyevent.h.
Referenced by getType().