Base class for events.
Events are sent to targets via CYIEventDispatcher - targets are CYIEventTarget classes.
#include <event/YiEvent.h>
|
enum | Type : uint8_t {
Type::None = 0,
Type::ActionMove,
Type::ActionDown,
Type::ActionDelayedDown,
Type::ActionUp,
Type::ActionWheel,
Type::ActionWheelHorizontal,
Type::ActionWheelVertical,
Type::ActionClick,
Type::ActionOut,
Type::ActionIn,
Type::ActionEnter,
Type::ActionLeave,
Type::ActionPick,
Type::ActionLongPress,
Type::ActionSuppressedMove,
Type::KeyDown,
Type::KeyUp,
Type::KeyInput,
Type::SignalEmit,
Type::StateMachineWrapped,
Type::StateMachineSignal,
Type::GPUGenerateHandle,
Type::GPULoadBuffer,
Type::GPUUnloadBuffer,
Type::GPUFreeHandle,
Type::GPUInvalidateHandle,
Type::FocusIn,
Type::FocusOut,
Type::TrackpadDown,
Type::TrackpadMove,
Type::TrackpadUp,
Type::DeferredDeletion,
Type::Task,
Type::AccessibilityAnnounce,
Type::AccessibilityFocusIn,
Type::AccessibilityFocusOut,
Type::AccessibilityFocusNext,
Type::AccessibilityFocusPrevious,
Type::TypesCount
} |
| The event type of the CYIEvent class instance. More...
|
|
enum | Phase : uint8_t {
Phase::None = 0,
Phase::Capture,
Phase::AtTarget,
Phase::Bubble,
Phase::Broadcast
} |
| The current processing phase of the event. More...
|
|
enum | Priority {
Priority::Highest = 2,
Priority::High = 1,
Priority::Normal = 0,
Priority::Low = -1,
Priority::Lowest = -2,
Priority::Default = Normal
} |
| Priority of the event in the event queue. More...
|
|
◆ Phase
The current processing phase of the event.
Enumerator |
---|
None | No phase.
|
Capture | The capture phase walks down the scene tree and allows each node from parent to target process the event with this phase set.
|
AtTarget | The target phase allows the target node to process the event with this phase set.
|
Bubble | The bubble phase walks up the scene tree and allows each node from target to parent to process the event with this phase set.
|
Broadcast | This phase broadcasts the event to the scene tree.
|
◆ Priority
Priority of the event in the event queue.
Enumerator |
---|
Highest | |
High | |
Normal | |
Low | |
Lowest | |
Default | |
◆ Type
The event type of the CYIEvent class instance.
Enumerator |
---|
None | |
ActionMove | |
ActionDown | |
ActionDelayedDown | |
ActionUp | |
ActionWheel | |
ActionWheelHorizontal | |
ActionWheelVertical | |
ActionClick | |
ActionOut | |
ActionIn | |
ActionEnter | |
ActionLeave | |
ActionPick | |
ActionLongPress | |
ActionSuppressedMove | |
KeyDown | |
KeyUp | |
KeyInput | |
SignalEmit | |
StateMachineWrapped | |
StateMachineSignal | |
GPUGenerateHandle | |
GPULoadBuffer | |
GPUUnloadBuffer | |
GPUFreeHandle | |
GPUInvalidateHandle | |
FocusIn | |
FocusOut | |
TrackpadDown | |
TrackpadMove | |
TrackpadUp | |
DeferredDeletion | |
Task | |
AccessibilityAnnounce | |
AccessibilityFocusIn | |
AccessibilityFocusOut | |
AccessibilityFocusNext | |
AccessibilityFocusPrevious | |
TypesCount | |
◆ CYIEvent() [1/2]
◆ CYIEvent() [2/2]
CYIEvent::CYIEvent |
( |
const CYIEvent & |
other | ) |
|
◆ ~CYIEvent()
virtual CYIEvent::~CYIEvent |
( |
| ) |
|
|
virtual |
◆ CloneAsAccessibilityEvent()
◆ CloneAsActionEvent()
std::unique_ptr<CYIActionEvent> CYIEvent::CloneAsActionEvent |
( |
| ) |
const |
◆ CloneAsFocusEvent()
std::unique_ptr<CYIFocusEvent> CYIEvent::CloneAsFocusEvent |
( |
| ) |
const |
◆ CloneAsKeyEvent()
std::unique_ptr<CYIKeyEvent> CYIEvent::CloneAsKeyEvent |
( |
| ) |
const |
◆ CloneAsTrackpadEvent()
◆ GetCurrentTarget() [1/2]
◆ GetCurrentTarget() [2/2]
◆ GetCurrentTargetProxy()
◆ GetName()
Returns the name of the event if it exists and UNKNOWN otherwise.
◆ GetTarget()
◆ GetTargetProxy()
◆ GetType()
Returns the type of the event.
◆ IsAccessibilityEvent()
bool CYIEvent::IsAccessibilityEvent |
( |
| ) |
const |
|
inline |
◆ IsActionEvent()
bool CYIEvent::IsActionEvent |
( |
| ) |
const |
|
inline |
Returns true if this event is an action event and false otherwise.
- See also
- CYIActionEvent
◆ IsFocusEvent()
bool CYIEvent::IsFocusEvent |
( |
| ) |
const |
|
inline |
Returns true if this event is a focus event and false otherwise.
- See also
- CYIFocusEvent
◆ IsKeyEvent()
bool CYIEvent::IsKeyEvent |
( |
| ) |
const |
|
inline |
Returns true if this event is a key event and false otherwise.
- See also
- CYIKeyEvent
◆ IsTrackpadEvent()
bool CYIEvent::IsTrackpadEvent |
( |
| ) |
const |
|
inline |
Returns true if this event is a trackpad event and false otherwise.
- See also
- CYITrackpadEvent
◆ operator=()
◆ SetCurrentTarget()
Assigns the event current target. The reference to the current target is automatically cleared when the target is destroyed.
- See also
- CYIEventTargetProxy
◆ SetTarget()
Assigns the event target. The reference to the target is automatically cleared when the target is destroyed.
- See also
- CYIEventTargetProxy
◆ SetType()
Sets the type of the event.
◆ m_canBubble
bool CYIEvent::m_canBubble |
Whether this event can undergo the bubble phase.
◆ m_canCancel
bool CYIEvent::m_canCancel |
Whether this event can be cancelled (propagation stopped).
◆ m_canCapture
bool CYIEvent::m_canCapture |
Whether this event can undergo the capture phase.
◆ m_eventTimeMs
uint64_t CYIEvent::m_eventTimeMs |
system time for the event, in milliseconds.
◆ m_handled
Whether or not than event has been handled by a previous handler.
◆ m_phase
The current event processing phase.
◆ m_stopPropagation
bool CYIEvent::m_stopPropagation |
When set to true the event will not undergo further processing.
The documentation for this class was generated from the following file: