Urho3D::EventHandlerImpl< T > Class Template Reference

Template implementation of the event handler invoke helper (stores a function pointer of specific class.) More...

#include <Urho3D/Core/Object.h>

Inheritance diagram for Urho3D::EventHandlerImpl< T >:
[legend]
Collaboration diagram for Urho3D::EventHandlerImpl< T >:
[legend]

Public Types

typedef void(T::* HandlerFunctionPtr )(StringHash, VariantMap &)
 

Public Member Functions

 EventHandlerImpl (T *receiver, HandlerFunctionPtr function, void *userData=0)
 Construct with receiver and function pointers and userdata.
 
virtual void Invoke (VariantMap &eventData)
 Invoke event handler function.
 
virtual EventHandlerClone () const
 Return a unique copy of the event handler.
 
- Public Member Functions inherited from Urho3D::EventHandler
 EventHandler (Object *receiver, void *userData=0)
 Construct with specified receiver and userdata.
 
virtual ~EventHandler ()
 Destruct.
 
void SetSenderAndEventType (Object *sender, StringHash eventType)
 Set sender and event type.
 
ObjectGetReceiver () const
 Return event receiver.
 
ObjectGetSender () const
 Return event sender. Null if the handler is non-specific.
 
const StringHashGetEventType () const
 Return event type.
 
void * GetUserData () const
 Return userdata.
 
- Public Member Functions inherited from Urho3D::LinkedListNode
 LinkedListNode ()
 Construct.
 

Private Attributes

HandlerFunctionPtr function_
 Class-specific pointer to handler function.
 

Additional Inherited Members

- Public Attributes inherited from Urho3D::LinkedListNode
LinkedListNodenext_
 Pointer to next node.
 
- Protected Attributes inherited from Urho3D::EventHandler
Objectreceiver_
 Event receiver.
 
Objectsender_
 Event sender.
 
StringHash eventType_
 Event type.
 
void * userData_
 Userdata.
 

Detailed Description

template<class T>
class Urho3D::EventHandlerImpl< T >

Template implementation of the event handler invoke helper (stores a function pointer of specific class.)


The documentation for this class was generated from the following file:
  • Source/Urho3D/Core/Object.h