Giveda® Embedded Midware  1.2.0
本文档受《版权法》、《版权公约》保护。深圳技达®版权所有
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
Public 类型 | Public 成员函数 | Protected 属性 | 所有成员列表
GEvent类 参考

GEvent 是所有事件的基类 更多...

#include <gEvent.h>

GGestureScrollEvent, GKeyEvent, GMouseEvent, GPaintEvent, GSwipeEvent , 以及 GTapEvent 继承.

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 成员函数

 GEvent (uint32_t type)
 使用指定的事件类型构造一个事件对象 更多...
 
virtual ~GEvent ()
 
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
 

详细描述

GEvent 是所有事件的基类

成员枚举类型说明

枚举值
KEYPRESS_EVT 
KEYRELEASE_EVT 
PAINT_EVT 
TIMER_EVT 
BACKEND_NOTIFY_IO_EVT 
MOUSEPRESS_EVT 
SWIPE_EVT 
GESTURE_SCROLL_EVT 
TAP_EVT 
USR_EVT_START 

构造及析构函数说明

GEvent::GEvent ( uint32_t  type)

使用指定的事件类型构造一个事件对象

参数
type...
virtual GEvent::~GEvent ( )
virtual

成员函数说明

virtual bool GEvent::canComposite ( )
virtual

是否支持合并事件

返回
bool

GPaintEvent , 以及 GKeyEvent 重载.

virtual void GEvent::composite ( GEvent )
virtual

合并事件

参数
...
返回
void

GPaintEvent 重载.

bool GEvent::dispatchAgain ( )

获取是否需要再次分发

返回
bool
virtual bool GEvent::isEqual2 ( GEvent evt)
virtual

判断本事件与 evt 是否是相同事件

参数
evt...
返回
bool

GKeyEvent 重载.

void GEvent::resetDispatchAgain ( )

不再分发此事件

返回
void
void GEvent::setDispatchAgain ( )

再次分发此事件

返回
void
uint32_t GEvent::type ( ) const

返回事件的类型

返回
uint32_t

类成员变量说明

bool GEvent::m_dispatchAgain
protected
uint32_t GEvent::m_type
protected

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