Urho3D
|
Template implementation of the event handler invoke helper (stores a function pointer of specific class.) More...
#include <Object.h>
Public Types | |
typedef void(T::* | HandlerFunctionPtr )(StringHash, VariantMap &) |
Public Member Functions | |
EventHandlerImpl (T *receiver, HandlerFunctionPtr function) | |
Construct with receiver and function pointers. | |
EventHandlerImpl (T *receiver, HandlerFunctionPtr function, void *userData) | |
Construct with receiver and function pointers and userdata. | |
virtual void | Invoke (VariantMap &eventData) |
Invoke event handler function. | |
![]() | |
EventHandler (Object *receiver) | |
Construct with specified receiver. | |
EventHandler (Object *receiver, void *userData) | |
Construct with specified receiver and userdata. | |
virtual | ~EventHandler () |
Destruct. | |
void | SetSenderAndEventType (Object *sender, StringHash eventType) |
Set sender and event type. | |
Object * | GetReceiver () const |
Return event receiver. | |
Object * | GetSender () const |
Return event sender. Null if the handler is non-specific. | |
const StringHash & | GetEventType () const |
Return event type. | |
void * | GetUserData () const |
Return userdata. | |
![]() | |
LinkedListNode () | |
Construct. |
Private Attributes | |
HandlerFunctionPtr | function_ |
Class-specific pointer to handler function. |
Additional Inherited Members | |
![]() | |
Object * | receiver_ |
Event receiver. | |
Object * | sender_ |
Event sender. | |
StringHash | eventType_ |
Event type. | |
void * | userData_ |
Userdata. |
Template implementation of the event handler invoke helper (stores a function pointer of specific class.)