YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
YSLib::Messaging 命名空间参考

class  GAutoTask
 可执行更新操作的任务。 更多...
 
class  Message
 消息。 更多...
 
class  MessageException
 消息异常。 更多...
 
class  MessageSignal
 消息信号:表示单一处理中断的异常。 更多...
 
struct  SMessageMap
 
struct  SMessageMap< YSLib::Messaging::Bound >
 
struct  SMessageMap< YSLib::Messaging::Input >
 
struct  SMessageMap< YSLib::Messaging::Null >
 
struct  SMessageMap< YSLib::Messaging::Quit >
 
struct  SMessageMap< YSLib::Messaging::Set >
 
struct  SMessageMap< YSLib::Messaging::Task >
 

类型定义

using ID = yimpl(u32)
 消息标识。 更多...
 
using Priority = u8
 消息优先级。 更多...
 
using MessageID = enum MessageSpace{Null=0x0000, Set=0x0003, Quit=0x0012, Bound=0x0014, Task=0x0016, Paint=0x00AF, Input=0x00FF}
 

函数

template<typename _fCallable >
void Renew (_fCallable update, Priority prior=Messaging::NormalPriority)
 按更新条件和优先级通过消息队列部署任务。 更多...
 
yconstexpr Priority NormalPriority (0x80)
 默认消息优先级。 更多...
 
template<MessageID _vID>
const SMessageMap< _vID >
::TargetType & 
FetchTarget (const Message &msg)
 
bool operator== (const Message &x, const Message &y)
 

详细描述

自从
build 388

类型定义说明

using YSLib::Messaging::ID = typedef yimpl(u32)

消息标识。

自从
build 175

在文件 ymsg.h46 行定义.

using YSLib::Messaging::MessageID = typedef enum MessageSpace { Null = 0x0000, Set = 0x0003, Quit = 0x0012, Bound = 0x0014, Task = 0x0016, Paint = 0x00AF, Input = 0x00FF }

在文件 ymsgdef.h54 行定义.

using YSLib::Messaging::Priority = typedef u8

消息优先级。

自从
build 175

在文件 ymsg.h52 行定义.

函数说明

template<MessageID _vID>
const SMessageMap<_vID>::TargetType& YSLib::Messaging::FetchTarget ( const Message &  msg)
inline

在文件 ymsgdef.h95 行定义.

yconstexpr Priority YSLib::Messaging::NormalPriority ( 0x80  )

默认消息优先级。

自从
build 449
bool YSLib::Messaging::operator== ( const Message &  x,
const Message &  y 
)
template<typename _fCallable >
void YSLib::Messaging::Renew ( _fCallable  update,
Priority  prior = Messaging::NormalPriority 
)

按更新条件和优先级通过消息队列部署任务。

自从
build 455

在文件 Task.h57 行定义.

参考 YSLib::PostTask().

参考自 YSLib::UI::AnimateTask().

函数调用图:

这是这个函数的调用关系图: