|
Urho3D
|
#include </home/runner/work/Dviglo/Dviglo/DvigloRepository/Source/Urho3D/Core/Object.h>
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. | |
| EventHandler * | Clone () const override |
| Return a unique copy of the event handler. | |
Public Member Functions inherited from Dviglo::EventHandler | |
| 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. | |
| 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 Dviglo::LinkedListNode | |
| LinkedListNode () | |
| Construct. | |
Private Attributes | |
| std::function< void(StringHash, VariantMap &)> | function_ |
| Class-specific pointer to handler function. | |
Additional Inherited Members | |
Public Attributes inherited from Dviglo::LinkedListNode | |
| LinkedListNode * | next_ |
| Pointer to next node. | |
Protected Attributes inherited from Dviglo::EventHandler | |
| Object * | receiver_ |
| Event receiver. | |
| Object * | sender_ |
| Event sender. | |
| StringHash | eventType_ |
| Event type. | |
| void * | userData_ |
| Userdata. | |
Template implementation of the event handler invoke helper (std::function instance).
1.8.17