Urho3D::EventHandler11Impl Class Reference

#include <Urho3D/Core/Object.h>

Inheritance diagram for Urho3D::EventHandler11Impl:
Collaboration diagram for Urho3D::EventHandler11Impl:

Public Member Functions

 EventHandler11Impl (std::function< void(StringHash, VariantMap &)> function, void *userData=nullptr)
 Construct with receiver and function pointers and userdata.
void Invoke (VariantMap &eventData) override
 Invoke event handler function.
EventHandlerClone () const override
 Return a unique copy of the event handler.
- Public Member Functions inherited from Urho3D::EventHandler
 EventHandler (Object *receiver, void *userData=nullptr)
 Construct with specified receiver and userdata.
virtual ~EventHandler ()=default
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 ()

Private Attributes

std::function< void(StringHash, VariantMap &)> function_
 Class-specific pointer to handler function.

Additional Inherited Members

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

Detailed Description

Template implementation of the event handler invoke helper (std::function instance).

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