Dali 3D User Interface Engine
List of all members | Public Member Functions | Private Member Functions | Private Attributes
Dali::Internal::EventProcessor Class Reference

The EventProcessor processes any events that are received by Dali. More...

#include <event-processor.h>

Collaboration diagram for Dali::Internal::EventProcessor:
Collaboration graph
[legend]

Public Member Functions

 EventProcessor (Stage &stage, NotificationManager &notificationManager, GestureEventProcessor &gestureEventProcessor)
 Constructor. More...
 
virtual ~EventProcessor ()
 Destructor. More...
 
void QueueEvent (const Integration::Event &event)
 This function is called by Core when an event is queued. More...
 
void ProcessEvents ()
 This function is called by Core when events are processed. More...
 

Private Member Functions

void QueueGestureEvent (const Integration::GestureEvent &event)
 Helper for QueueEvent() More...
 

Private Attributes

TouchEventProcessor mTouchEventProcessor
 Processes touch events. More...
 
HoverEventProcessor mHoverEventProcessor
 Processes hover events. More...
 
GestureEventProcessormGestureEventProcessor
 Processes gesture events. More...
 
KeyEventProcessor mKeyEventProcessor
 Processes key events. More...
 
WheelEventProcessor mWheelEventProcessor
 Processes wheel events. More...
 
MessageBuffer mEventQueue0
 An event queue. More...
 
MessageBuffer mEventQueue1
 Another event queue. More...
 
MessageBuffermCurrentEventQueue
 QueueEvent() will queue here. More...
 

Detailed Description

The EventProcessor processes any events that are received by Dali.

Such events include touch events, key events, wheel events, and notification events.

When the EventProcessor receives an event, it determines its type and passes it on to the appropriate processor.

Definition at line 51 of file event-processor.h.

Constructor & Destructor Documentation

Dali::Internal::EventProcessor::EventProcessor ( Stage stage,
NotificationManager notificationManager,
GestureEventProcessor gestureEventProcessor 
)

Constructor.

Parameters
[in]stageThe stage.
[in]notificationManagerThe Notification Manager.
[in]gestureEventProcessorThe gesture event processor.

Definition at line 58 of file event-processor.cpp.

Dali::Internal::EventProcessor::~EventProcessor ( )
virtual

Destructor.

Definition at line 70 of file event-processor.cpp.

References Dali::Internal::MessageBuffer::Begin(), Dali::Internal::MessageBuffer::Iterator::IsValid(), mEventQueue0, and mEventQueue1.

Here is the call graph for this function:

Member Function Documentation

void Dali::Internal::EventProcessor::ProcessEvents ( )
void Dali::Internal::EventProcessor::QueueEvent ( const Integration::Event &  event)

This function is called by Core when an event is queued.

Parameters
[in]eventA event to queue.

Definition at line 87 of file event-processor.cpp.

References mCurrentEventQueue, QueueGestureEvent(), and Dali::Internal::MessageBuffer::ReserveMessageSlot().

Here is the call graph for this function:

void Dali::Internal::EventProcessor::QueueGestureEvent ( const Integration::GestureEvent &  event)
private

Helper for QueueEvent()

Definition at line 152 of file event-processor.cpp.

References Dali::Gesture::LongPress, mCurrentEventQueue, Dali::Gesture::Pan, Dali::Gesture::Pinch, Dali::Internal::MessageBuffer::ReserveMessageSlot(), and Dali::Gesture::Tap.

Referenced by QueueEvent().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

MessageBuffer* Dali::Internal::EventProcessor::mCurrentEventQueue
private

QueueEvent() will queue here.

Definition at line 99 of file event-processor.h.

Referenced by ProcessEvents(), QueueEvent(), and QueueGestureEvent().

MessageBuffer Dali::Internal::EventProcessor::mEventQueue0
private

An event queue.

Definition at line 97 of file event-processor.h.

Referenced by ProcessEvents(), and ~EventProcessor().

MessageBuffer Dali::Internal::EventProcessor::mEventQueue1
private

Another event queue.

Definition at line 98 of file event-processor.h.

Referenced by ProcessEvents(), and ~EventProcessor().

GestureEventProcessor& Dali::Internal::EventProcessor::mGestureEventProcessor
private

Processes gesture events.

Definition at line 92 of file event-processor.h.

Referenced by ProcessEvents().

HoverEventProcessor Dali::Internal::EventProcessor::mHoverEventProcessor
private

Processes hover events.

Definition at line 91 of file event-processor.h.

Referenced by ProcessEvents().

KeyEventProcessor Dali::Internal::EventProcessor::mKeyEventProcessor
private

Processes key events.

Definition at line 93 of file event-processor.h.

Referenced by ProcessEvents().

TouchEventProcessor Dali::Internal::EventProcessor::mTouchEventProcessor
private

Processes touch events.

Definition at line 90 of file event-processor.h.

Referenced by ProcessEvents().

WheelEventProcessor Dali::Internal::EventProcessor::mWheelEventProcessor
private

Processes wheel events.

Definition at line 94 of file event-processor.h.

Referenced by ProcessEvents().


The documentation for this class was generated from the following files:
Dali Docs Home
Read more about Dali