EVENGINE_API_FOUNDATION public API. 更多...
#include <PlatformEventSink.h>
Public 类型 | |
| enum | Priority { kObserver = 0 , kSurface = 10 , kInput = 20 } |
| Priority public API. 更多... | |
Public 成员函数 | |
| virtual | ~IPlatformEventSink ()=default |
| virtual bool | shouldConsumePlatformEvent (const void *nativeEvent) |
| virtual Message * | translatePlatformEvent (const void *nativeEvent) |
| virtual void | onPumpFinished () |
静态 Public 属性 | |
| static constexpr const char * | capabilityName = "eve.event.IPlatformEventSink" |
详细描述
EVENGINE_API_FOUNDATION public API.
在文件 PlatformEventSink.h 第 31 行定义.
成员枚举类型说明
◆ Priority
Priority public API.
Dispatch order; lower runs first.
| 枚举值 | |
|---|---|
| kObserver | |
| kSurface | |
| kInput | |
在文件 PlatformEventSink.h 第 35 行定义.
构造及析构函数说明
◆ ~IPlatformEventSink()
|
virtualdefault |
成员函数说明
◆ onPumpFinished()
|
inlinevirtual |
Called once per pump() after the platform queue drains.
在文件 PlatformEventSink.h 第 62 行定义.
◆ shouldConsumePlatformEvent()
|
inlinevirtual |
Inspect an event before translation. Return true to consume it, so no later sink sees it and no Message is queued. @ownership nativeEvent is borrowed from the platform pump; the sink never owns it. @lifetime nativeEvent is valid only for this synchronous call.
在文件 PlatformEventSink.h 第 50 行定义.
◆ translatePlatformEvent()
|
inlinevirtual |
Translate an event into a queued Message, updating any module state it implies. Return nullptr to leave the event to the next sink. Ownership of a returned Message passes to the caller. @ownership nativeEvent is an immediate borrow; a returned Message transfers ownership. @lifetime nativeEvent is valid only for this call; the returned Message remains valid until deleted.
在文件 PlatformEventSink.h 第 59 行定义.
类成员变量说明
◆ capabilityName
|
staticconstexpr |
在文件 PlatformEventSink.h 第 41 行定义.
该类的文档由以下文件生成:
- src/modules/platform_event/PlatformEventSink.h