Egrome
 
载入中...
搜索中...
未找到
KeyPressEvent类 参考

按键按下事件 更多...

#include <KeyPressEvent.h>

类 KeyPressEvent 继承关系图:
KeyEvent Event Object

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
 析构函数
 

详细描述

按键按下事件


该类的文档由以下文件生成: