按键按下事件 更多...
#include <KeyPressEvent.h>
Public 成员函数 | |
| KeyPressEvent (Key key, bool shift, bool ctrl) | |
Public 成员函数 继承自 KeyEvent | |
| KeyEvent (Key key, KeyState state, bool shift, bool ctrl) | |
| Key | key () const |
| 获取按键 | |
| bool | hasShift () const |
| Shift键是否被同时按下 | |
| bool | hasCtrl () const |
| Ctrl键是否被同时按下 | |
| KeyState | state () const |
| 获取按键状态 | |
Public 成员函数 继承自 Event | |
| void | accept () const |
| 接受事件 | |
| void | reset () const |
| 重置事件状态 | |
| bool | isAccepted () const |
| 事件是否已被接受 | |
Public 成员函数 继承自 Object | |
| Object () noexcept | |
| 构造函数 | |
| virtual | ~Object () noexcept |
| 析构函数 | |
按键按下事件