scripting
Class IEventTarget
in DOMEvent.h
in DOMEvent.cpp
- Direct Known Subclasses:
- CGameEvents, CEntity, CEntityTemplate, CProjectile
- class IEventTarget
after
private IEventTarget* after;
before
private IEventTarget* before;
m_Handlers_id
private IEventTarget::HandlerList m_Handlers_id[ EVENT_LAST ];
m_Handlers_name
private IEventTarget::HandlerMap m_Handlers_name;
IEventTarget
public IEventTarget();
~IEventTarget
public virtual ~IEventTarget();
_DispatchEvent
private bool _DispatchEvent( CScriptEvent* evt, IEventTarget* target );
AddHandler
public bool AddHandler( int TypeCode, DOMEventHandler handler );
AddHandler
public bool AddHandler( const CStrW& TypeString, DOMEventHandler handler );
AddHandlerJS
public bool AddHandlerJS( JSContext* UNUSED( cx ), uintN argc, jsval* argv );
DispatchEvent
public bool DispatchEvent( CScriptEvent* evt );
GetScriptExecContext
public virtual JSObject* GetScriptExecContext( IEventTarget* target )= 0;
RemoveHandler
public bool RemoveHandler( int TypeCode, DOMEventHandler handler );
RemoveHandler
public bool RemoveHandler( const CStrW& TypeString, DOMEventHandler handler );
RemoveHandlerJS
public bool RemoveHandlerJS( JSContext* UNUSED( cx ), uintN argc, jsval* argv );
SetNextObject
public inline void SetNextObject( IEventTarget* obj );
SetPriorObject
public inline void SetPriorObject( IEventTarget* obj );