121 |
@param id |
@param id |
122 |
@param data message specific data value |
@param data message specific data value |
123 |
*/ |
*/ |
124 |
bool SendMessage(PG_MessageObject* target, PG_MSG_TYPE type, MSG_ID id, MSG_DATA data); |
//bool SendMessage(PG_MessageObject* target, PG_MSG_TYPE type, MSG_ID id, MSG_DATA data); |
125 |
|
|
126 |
/** |
/** |
127 |
Set a callback function for an event |
Set a callback function for an event |
129 |
@param cbfunc the function to call when the defined event is triggerd |
@param cbfunc the function to call when the defined event is triggerd |
130 |
@param clientdata client specific message data |
@param clientdata client specific message data |
131 |
*/ |
*/ |
132 |
void SetEventCallback(PG_MSG_TYPE type, MSG_CALLBACK cbfunc, void *clientdata = NULL); |
//void SetEventCallback(PG_MSG_TYPE type, MSG_CALLBACK cbfunc, void *clientdata = NULL); |
133 |
|
|
134 |
/** |
/** |
135 |
Set an object member function for an event |
Set an object member function for an event |
138 |
@param cbfunc member function to call |
@param cbfunc member function to call |
139 |
@param clientdata client specific message data |
@param clientdata client specific message data |
140 |
*/ |
*/ |
141 |
void SetEventObject(PG_MSG_TYPE type, PG_EventObject* calledobj, MSG_CALLBACK_OBJ cbfunc, void *clientdata = NULL); |
//void SetEventObject(PG_MSG_TYPE type, PG_EventObject* calledobj, MSG_CALLBACK_OBJ cbfunc, void *clientdata = NULL); |
142 |
|
|
143 |
/** |
/** |
144 |
Sends an event to the global message queue. |
Sends an event to the global message queue. |