Urho3D
|
Internal helper class for invoking event handler functions. More...
#include </home/runner/work/urho3d-doxygen.github.io/urho3d-doxygen.github.io/urho3d_repo/Source/Urho3D/Core/Object.h>
Public Member Functions | |
EventHandler (Object *receiver, void *userData=nullptr) | |
Construct with specified receiver and userdata. | |
virtual | ~EventHandler ()=default |
Destruct. | |
void | SetSenderAndEventType (Object *sender, StringHash eventType) |
Set sender and event type. | |
virtual void | Invoke (VariantMap &eventData)=0 |
Invoke event handler function. More... | |
virtual EventHandler * | Clone () const =0 |
Return a unique copy of the event handler. More... | |
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. | |
Public Member Functions inherited from Urho3D::LinkedListNode | |
LinkedListNode () | |
Construct. | |
Protected Attributes | |
Object * | receiver_ |
Event receiver. | |
Object * | sender_ |
Event sender. | |
StringHash | eventType_ |
Event type. | |
void * | userData_ |
Userdata. | |
Additional Inherited Members | |
Public Attributes inherited from Urho3D::LinkedListNode | |
LinkedListNode * | next_ |
Pointer to next node. | |
Internal helper class for invoking event handler functions.
|
pure virtual |
Return a unique copy of the event handler.
Implemented in Urho3D::EventHandlerImpl< T >, and Urho3D::EventHandler11Impl.
|
pure virtual |
Invoke event handler function.
Implemented in Urho3D::EventHandlerImpl< T >, and Urho3D::EventHandler11Impl.