CMGDK r49-rc2
|
#include <hgl/object/_Object.H>
组合类型 | |
struct | hgl::EventFunc< Func > |
名字空间 | |
namespace | hgl |
__MAKE_HGL__&&!__MAKE_PLUGIN__ | |
宏定义 | |
#define | SetEventCall(event_obj, obj_this, class_name, event_func) |
#define | SetEventThis(event_obj, obj_this) event_obj.vp_this=obj_this; |
#define | CallEvent(event_obj, intro) ((event_obj.this_pointer->*(event_obj.func_pointer))intro) |
#define | SafeCallEvent(event_obj, intro) {if(event_obj.vp_func)CallEvent(event_obj,intro);} |
#define | DefEvent(result, name, intro) EventFunc<result (_Object:: *)intro> name; |
#define CallEvent | ( | event_obj, | |
intro | |||
) | ((event_obj.this_pointer->*(event_obj.func_pointer))intro) |
#define SafeCallEvent | ( | event_obj, | |
intro | |||
) | {if(event_obj.vp_func)CallEvent(event_obj,intro);} |
#define SetEventCall | ( | event_obj, | |
obj_this, | |||
class_name, | |||
event_func | |||
) |
{ \ event_obj.vp_this=obj_this; \ event_obj.vp_func=GetMemberFuncPointer(class_name,event_func); \ }
#define SetEventThis | ( | event_obj, | |
obj_this | |||
) | event_obj.vp_this=obj_this; |