GSwipeEvent 触摸滑动事件 更多...
#include <gUIEvent.h>
继承自 GEvent .
Public 类型 | |
| enum | SWIPE_DIRECTION { SWIPE_LEFT =0, SWIPE_RIGHT, SWIPE_UP, SWIPE_DOWN } |
| 滑动方向 更多... | |
| 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 成员函数 | |
| GSwipeEvent (GSwipeEvent::SWIPE_DIRECTION d, const GPoint &startPos) | |
| 构造一个滑动事件 更多... | |
| GSwipeEvent::SWIPE_DIRECTION | direction () const |
| 获取滑动方向 更多... | |
| GPoint & | pos () |
| 获取滑动的起始位置坐标 更多... | |
| uint32_t | type () const |
| 返回事件的类型 更多... | |
| bool | dispatchAgain () |
| 获取是否需要再次分发 更多... | |
| void | setDispatchAgain () |
| 再次分发此事件 更多... | |
| void | resetDispatchAgain () |
| 不再分发此事件 更多... | |
| virtual bool | canComposite () |
| 是否支持合并事件 更多... | |
| virtual void | composite (GEvent *) |
| 合并事件 更多... | |
| virtual bool | isEqual2 (GEvent *evt) |
| 判断本事件与 evt 是否是相同事件 更多... | |
Protected 属性 | |
| uint32_t | m_type |
| bool | m_dispatchAgain |
GSwipeEvent 触摸滑动事件
|
inherited |
| GSwipeEvent::GSwipeEvent | ( | GSwipeEvent::SWIPE_DIRECTION | d, |
| const GPoint & | startPos | ||
| ) |
构造一个滑动事件
| d | 滑动方向 |
| startPos | 起始位置坐标 |
|
virtualinherited |
|
virtualinherited |
| GSwipeEvent::SWIPE_DIRECTION GSwipeEvent::direction | ( | ) | const |
获取滑动方向
|
inherited |
获取是否需要再次分发
|
virtualinherited |
|
inherited |
不再分发此事件
|
inherited |
再次分发此事件
|
inherited |
返回事件的类型
|
protectedinherited |
|
protectedinherited |
1.8.6