Template implementation of the event handler invoke helper (stores a function pointer of specific class).
More...
#include </home/runner/work/urho3d-doxygen.github.io/urho3d-doxygen.github.io/urho3d_repo/Source/Urho3D/Core/Object.h>
|
|
| EventHandlerImpl (T *receiver, HandlerFunctionPtr function, void *userData=nullptr) |
| | Construct with receiver and function pointers and userdata.
|
| |
| void | Invoke (VariantMap &eventData) override |
| | Invoke event handler function. More...
|
| |
| EventHandler * | Clone () const override |
| | Return a unique copy of the event handler. More...
|
| |
Public Member Functions inherited from Urho3D::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.
|
| |
| 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.
|
| |
|
| LinkedListNode () |
| | Construct.
|
| |
|
|
HandlerFunctionPtr | function_ |
| | Class-specific pointer to handler function.
|
| |
template<class T>
class Urho3D::EventHandlerImpl< T >
Template implementation of the event handler invoke helper (stores a function pointer of specific class).
◆ Clone()
◆ Invoke()
The documentation for this class was generated from the following file:
- /home/runner/work/urho3d-doxygen.github.io/urho3d-doxygen.github.io/urho3d_repo/Source/Urho3D/Core/Object.h