Represents an event target of type CYIEventTarget::SpecialEventTargetType.
- Note
- CYISceneNode is an event target.
#include <event/YiEventTarget.h>
◆ Phase
Enumerator |
---|
Bubble | The bubble phase walks up the scene tree and allows each node from target to parent to process the next event with this phase set.
|
Capture | The capture phase walks down the scene tree and allows each node from parent to target process the next event with this phase set.
|
◆ SpecialEventTargetType
◆ CYIEventTarget()
CYIEventTarget::CYIEventTarget |
( |
| ) |
|
◆ ~CYIEventTarget()
virtual CYIEventTarget::~CYIEventTarget |
( |
| ) |
|
|
virtual |
◆ AddEventListener()
◆ ClearSpecialTypeFlag()
◆ GetProxy()
Returns the event target's proxy tracking object. If the event target is deleted, the proxy's pointer will be set to nullptr.
◆ GetSpecialTypes()
◆ ProcessEvent()
Notifies this event target of an incoming event. Calls all the relevant listeners based on event type and phase. Returns true if any of the listeners' handleEvent() function returned true.
Reimplemented in CYISceneNode, and CYISceneView.
◆ RemoveEventListener()
Unregisters an event listener previously registered through AddEventListener().
Returns true if the listener was successfully removed.
- Warning
- It is unsafe to remove an event listener inside of the following methods:
◆ SetSpecialTypeFlag()
◆ m_listeners
std::vector<EventListenerEntry> CYIEventTarget::m_listeners |
|
protected |
◆ m_pEventTargetProxy
◆ m_specialTypes
The documentation for this class was generated from the following file: