Urho3D::ScriptEventListener Class Referenceabstract

Interface class for allowing script objects or functions to subscribe to events. More...

#include <Urho3D/AngelScript/ScriptEventListener.h>

Inheritance diagram for Urho3D::ScriptEventListener:
[legend]

Public Member Functions

virtual ~ScriptEventListener ()
 Destruct.
 
virtual void AddEventHandler (StringHash eventType, const String &handlerName)=0
 Add a scripted event handler.
 
virtual void AddEventHandler (Object *sender, StringHash eventType, const String &handlerName)=0
 Add a scripted event handler for a specific sender.
 
virtual void RemoveEventHandler (StringHash eventType)=0
 Remove a scripted event handler.
 
virtual void RemoveEventHandler (Object *sender, StringHash eventType)=0
 Remove a scripted event handler for a specific sender.
 
virtual void RemoveEventHandlers (Object *sender)=0
 Remove all scripted event handlers for a specific sender.
 
virtual void RemoveEventHandlers ()=0
 Remove all scripted event handlers.
 
virtual void RemoveEventHandlersExcept (const PODVector< StringHash > &exceptions)=0
 Remove all scripted event handlers, except those listed.
 
virtual bool HasEventHandler (StringHash eventType) const =0
 Return whether has subscribed to an event.
 
virtual bool HasEventHandler (Object *sender, StringHash eventType) const =0
 Return whether has subscribed to a specific sender's event.
 

Detailed Description

Interface class for allowing script objects or functions to subscribe to events.


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