Urho3D::EventHandler Class Referenceabstract

Internal helper class for invoking event handler functions. More...

#include <Urho3D/Core/Object.h>

Inheritance diagram for Urho3D::EventHandler:
Collaboration diagram for Urho3D::EventHandler:

Public Member Functions

 EventHandler (Object *receiver, void *userData=0)
 Construct with specified receiver and userdata.
virtual ~EventHandler ()
void SetSenderAndEventType (Object *sender, StringHash eventType)
 Set sender and event type.
virtual void Invoke (VariantMap &eventData)=0
 Invoke event handler function.
virtual EventHandlerClone () const =0
 Return a unique copy of the event handler.
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 ()

Protected Attributes

 Event receiver.
 Event sender.
StringHash eventType_
 Event type.
void * userData_

Additional Inherited Members

- Public Attributes inherited from Urho3D::LinkedListNode
 Pointer to next node.

Detailed Description

Internal helper class for invoking event handler functions.

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