Urho3D
Public Member Functions | Protected Attributes
Urho3D::EventHandler Class Reference

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

#include <Object.h>

Inheritance diagram for Urho3D::EventHandler:
Urho3D::LinkedListNode Urho3D::EventHandlerImpl< T >

List of all members.

Public Member Functions

 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.
virtual void Invoke (VariantMap &eventData)=0
 Invoke event handler function.
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.

Protected Attributes

Objectreceiver_
 Event receiver.
Objectsender_
 Event sender.
StringHash eventType_
 Event type.
void * userData_
 Userdata.

Additional Inherited Members

- Public Attributes inherited from Urho3D::LinkedListNode
LinkedListNodenext_
 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: