Focus events represent when a view receives or loses focus.
Focus events are available in all event phases. Event handlers interested in the capture or bubble phases of focus events can use the focus target and related target to see how the focus is changing: interesting cases may be between descendants and between a descendant and an unrelated target.
#include <event/YiFocusEvent.h>

Public Attributes | |
| std::shared_ptr< CYISceneNodeProxy > | m_pFocusTarget |
| std::shared_ptr< CYISceneNodeProxy > | m_pRelatedFocusTarget |
Public Attributes inherited from CYIEvent | |
| CYIEventTarget * | m_pTarget |
| CYIEventTarget * | m_pCurrentTarget |
| YI_EVENT_PHASE | m_ePhase |
| bool | m_bCanCancel |
| bool | m_bCanBubble |
| bool | m_bCanCapture |
| bool | m_bStopPropagation |
| bool | m_bHandled |
| uint64_t | m_uEventTimeMs |
| CYIFocusEvent::CYIFocusEvent | ( | YI_EVENT_TYPE | eventType | ) |
Constructs a focus event from eventType. Will assert if the type is not a focus event.
|
default |
|
virtual |
|
overridevirtual |
Reimplemented from CYIEvent.
| std::shared_ptr<CYISceneNodeProxy> CYIFocusEvent::m_pFocusTarget |
For focus in events, the focus target is the node receiving focus, and for focus out events, it is the node losing focus.
| std::shared_ptr<CYISceneNodeProxy> CYIFocusEvent::m_pRelatedFocusTarget |
For focus in events, the related target is the node losing focus, and for focus out events, it is the node receiving focus.