#include <gUIEvent.h>
继承自 GEvent .
Public 类型 | |
enum | EVT_TYPE { KEYPRESS_EVT =0, KEYRELEASE_EVT, PAINT_EVT, TIMER_EVT, BACKEND_NOTIFY_IO_EVT, MOUSEPRESS_EVT, SWIPE_EVT, GESTURE_SCROLL_EVT, TAP_EVT, USR_EVT_START =0x20001 } |
Public 成员函数 | |
GKeyEvent (GEvent::EVT_TYPE type, Giveda::Key keyCode, bool autorep=false) | |
构造一个键盘事件 更多... | |
Giveda::Key | key () const |
获取键码 更多... | |
int | ascii () const |
获取 ascii 字符 更多... | |
GString | text () const |
获取 string 更多... | |
bool | isAutoRepeat () const |
是否是自动重复的键盘事件 更多... | |
virtual bool | canComposite () |
是否可以合并 更多... | |
virtual bool | isEqual2 (GEvent *evt) |
是否与 evt 事件相同 更多... | |
uint32_t | type () const |
返回事件的类型 更多... | |
bool | dispatchAgain () |
获取是否需要再次分发 更多... | |
void | setDispatchAgain () |
再次分发此事件 更多... | |
void | resetDispatchAgain () |
不再分发此事件 更多... | |
virtual void | composite (GEvent *) |
合并事件 更多... | |
Protected 属性 | |
Giveda::Key | k |
uint16_t | unicode |
bool | repeat |
uint32_t | m_type |
bool | m_dispatchAgain |
GKeyEvent 键盘事件
|
inherited |
GKeyEvent::GKeyEvent | ( | GEvent::EVT_TYPE | type, |
Giveda::Key | keyCode, | ||
bool | autorep = false |
||
) |
构造一个键盘事件
type | 键盘事件的具体类型 |
keyCode | 键码 |
autorep | 是否是自动重复的键盘事件 |
int GKeyEvent::ascii | ( | ) | const |
获取 ascii 字符
|
virtual |
|
virtualinherited |
|
inherited |
获取是否需要再次分发
bool GKeyEvent::isAutoRepeat | ( | ) | const |
是否是自动重复的键盘事件
Giveda::Key GKeyEvent::key | ( | ) | const |
获取键码
|
inherited |
不再分发此事件
|
inherited |
再次分发此事件
|
inherited |
返回事件的类型
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protected |