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

The Event Handler class is responsible for setting up receiving of Ecore events and then converts them to TouchEvents when it does receive them. More...

#include <event-handler.h>

Collaboration diagram for Dali::Internal::Adaptor::EventHandler:
Collaboration graph
[legend]

Public Member Functions

 EventHandler (RenderSurface *surface, CoreEventInterface &coreEventInterface, GestureManager &gestureManager, DamageObserver &damageObserver, DragAndDropDetectorPtr dndDetector)
 Constructor. More...
 
 ~EventHandler ()
 Destructor. More...
 
void FeedTouchPoint (TouchPoint &point, int timeStamp)
 Feed (Send) touch event to core and gesture manager. More...
 
void FeedWheelEvent (WheelEvent &wheelEvent)
 Feed (Send) wheel event to core and gesture manager. More...
 
void FeedKeyEvent (KeyEvent &keyEvent)
 Feed (Send) key event to core. More...
 
void FeedEvent (Integration::Event &event)
 Feed (Send) an event to core. More...
 
void Pause ()
 Called when the adaptor is paused. More...
 
void Resume ()
 Called when the adaptor is resumed (from pause). More...
 
void SetDragAndDropDetector (DragAndDropDetectorPtr detector)
 Sets the Drag & Drop detector. More...
 
void SetRotationObserver (RotationObserver *observer)
 Set the rotation observer (note, some adaptors may not have a rotation observer) More...
 

Private Member Functions

void SendEvent (TouchPoint &point, unsigned long timeStamp)
 Send touch event to core. More...
 
void SendEvent (KeyEvent &keyEvent)
 Send key event to core. More...
 
void SendWheelEvent (WheelEvent &wheelEvent)
 Send wheel event to core. More...
 
void SendEvent (StyleChange::Type styleChange)
 Send a style change event to the style monitor. More...
 
void SendEvent (const DamageArea &area)
 Send a window damage event to the observer. More...
 
void SendRotationPrepareEvent (const RotationEvent &rotation)
 Inform rotation observer of rotation prepare event. More...
 
void SendRotationRequestEvent ()
 Inform rotation observer of rotation prepare event. More...
 
void Reset ()
 Resets the event handler. More...
 
 EventHandler (const EventHandler &eventHandler)
 
EventHandleroperator= (const EventHandler &eventHandler)
 

Private Attributes

CoreEventInterfacemCoreEventInterface
 Used to send events to Core. More...
 
Dali::Integration::TouchEventCombiner mCombiner
 Combines multi-touch events. More...
 
GestureManagermGestureManager
 Reference to the GestureManager, set on construction, to send touch events to for analysis. More...
 
Dali::StyleMonitor mStyleMonitor
 Handle to the style monitor, set on construction, to send font size and font change events to. More...
 
DamageObservermDamageObserver
 Reference to the DamageObserver, set on construction, to sent damage events to. More...
 
RotationObservermRotationObserver
 Pointer to rotation observer, if present. More...
 
DragAndDropDetectorPtr mDragAndDropDetector
 Pointer to the drag & drop detector, to send Drag & Drop events to. More...
 
Dali::AccessibilityAdaptor mAccessibilityAdaptor
 Pointer to the accessibility adaptor. More...
 
Dali::ClipboardEventNotifier mClipboardEventNotifier
 Pointer to the clipboard event notifier. More...
 
Dali::Clipboard mClipboard
 Pointer to the clipboard. More...
 
Impl * mImpl
 Implementation. More...
 
bool mPaused
 The paused state of the adaptor. More...
 

Detailed Description

The Event Handler class is responsible for setting up receiving of Ecore events and then converts them to TouchEvents when it does receive them.

These TouchEvents are then passed on to Core.

Definition at line 54 of file event-handler.h.

Constructor & Destructor Documentation

Dali::Internal::Adaptor::EventHandler::EventHandler ( RenderSurface *  surface,
CoreEventInterface coreEventInterface,
GestureManager gestureManager,
DamageObserver damageObserver,
DragAndDropDetectorPtr  dndDetector 
)

Constructor.

Parameters
[in]surfaceThe surface where events will be sent to.
[in]coreEventInterfaceUsed to send events to Core.
[in]gestureManagerThe Gesture Manager.
[in]damageObserverThe damage observer (to pass damage events to).
[in]dndDetectorThe Drag & Drop listener (to pass DnD events to).
Dali::Internal::Adaptor::EventHandler::~EventHandler ( )

Destructor.

Dali::Internal::Adaptor::EventHandler::EventHandler ( const EventHandler eventHandler)
private

Member Function Documentation

void Dali::Internal::Adaptor::EventHandler::FeedEvent ( Integration::Event &  event)

Feed (Send) an event to core.

Parameters
[in]eventThe event information.
void Dali::Internal::Adaptor::EventHandler::FeedKeyEvent ( KeyEvent keyEvent)

Feed (Send) key event to core.

Parameters
[in]keyEventThe key event holding the key information.

Referenced by Dali::Internal::Adaptor::Adaptor::FeedKeyEvent().

Here is the caller graph for this function:

void Dali::Internal::Adaptor::EventHandler::FeedTouchPoint ( TouchPoint point,
int  timeStamp 
)

Feed (Send) touch event to core and gesture manager.

Parameters
[in]touchEventThe touch event holding the touch point information.

Referenced by Dali::Internal::Adaptor::Adaptor::FeedTouchPoint().

Here is the caller graph for this function:

void Dali::Internal::Adaptor::EventHandler::FeedWheelEvent ( WheelEvent wheelEvent)

Feed (Send) wheel event to core and gesture manager.

Parameters
[in]wheelEventThe wheel event

Referenced by Dali::Internal::Adaptor::Adaptor::FeedWheelEvent().

Here is the caller graph for this function:

EventHandler& Dali::Internal::Adaptor::EventHandler::operator= ( const EventHandler eventHandler)
private
void Dali::Internal::Adaptor::EventHandler::Pause ( )

Called when the adaptor is paused.

Referenced by Dali::Internal::Adaptor::Adaptor::Pause().

Here is the caller graph for this function:

void Dali::Internal::Adaptor::EventHandler::Reset ( )
private

Resets the event handler.

Called when the adaptor is paused or resumed.

void Dali::Internal::Adaptor::EventHandler::Resume ( )

Called when the adaptor is resumed (from pause).

Referenced by Dali::Internal::Adaptor::Adaptor::Resume().

Here is the caller graph for this function:

void Dali::Internal::Adaptor::EventHandler::SendEvent ( TouchPoint point,
unsigned long  timeStamp 
)
private

Send touch event to core.

Parameters
[in]pointThe touch point information.
[in]timeStampThe time the touch occurred.
void Dali::Internal::Adaptor::EventHandler::SendEvent ( KeyEvent keyEvent)
private

Send key event to core.

Parameters
[in]keyEventThe KeyEvent to send.
void Dali::Internal::Adaptor::EventHandler::SendEvent ( StyleChange::Type  styleChange)
private

Send a style change event to the style monitor.

Parameters
[in]styleChangeThe style that has changed.
void Dali::Internal::Adaptor::EventHandler::SendEvent ( const DamageArea area)
private

Send a window damage event to the observer.

Parameters
[in]areaDamaged area.
void Dali::Internal::Adaptor::EventHandler::SendRotationPrepareEvent ( const RotationEvent rotation)
private

Inform rotation observer of rotation prepare event.

Parameters
[in]rotationThe rotation event
void Dali::Internal::Adaptor::EventHandler::SendRotationRequestEvent ( )
private

Inform rotation observer of rotation prepare event.

void Dali::Internal::Adaptor::EventHandler::SendWheelEvent ( WheelEvent wheelEvent)
private

Send wheel event to core.

Parameters
[in]wheelEventThe wheel event
void Dali::Internal::Adaptor::EventHandler::SetDragAndDropDetector ( DragAndDropDetectorPtr  detector)

Sets the Drag & Drop detector.

Parameters
[in]detectorAn intrusive pointer to the Drag & Drop listener to set. To unset pass in NULL.

Referenced by Dali::Internal::Adaptor::Adaptor::SetDragAndDropDetector().

Here is the caller graph for this function:

void Dali::Internal::Adaptor::EventHandler::SetRotationObserver ( RotationObserver observer)

Set the rotation observer (note, some adaptors may not have a rotation observer)

Parameters
[in]observerThe rotation observer

Referenced by Dali::Internal::Adaptor::Adaptor::SetRotationObserver(), and Dali::Internal::Adaptor::Adaptor::Start().

Here is the caller graph for this function:

Member Data Documentation

Dali::AccessibilityAdaptor Dali::Internal::Adaptor::EventHandler::mAccessibilityAdaptor
private

Pointer to the accessibility adaptor.

Definition at line 187 of file event-handler.h.

Dali::Clipboard Dali::Internal::Adaptor::EventHandler::mClipboard
private

Pointer to the clipboard.

Definition at line 189 of file event-handler.h.

Dali::ClipboardEventNotifier Dali::Internal::Adaptor::EventHandler::mClipboardEventNotifier
private

Pointer to the clipboard event notifier.

Definition at line 188 of file event-handler.h.

Dali::Integration::TouchEventCombiner Dali::Internal::Adaptor::EventHandler::mCombiner
private

Combines multi-touch events.

Definition at line 180 of file event-handler.h.

CoreEventInterface& Dali::Internal::Adaptor::EventHandler::mCoreEventInterface
private

Used to send events to Core.

Definition at line 179 of file event-handler.h.

DamageObserver& Dali::Internal::Adaptor::EventHandler::mDamageObserver
private

Reference to the DamageObserver, set on construction, to sent damage events to.

Definition at line 183 of file event-handler.h.

DragAndDropDetectorPtr Dali::Internal::Adaptor::EventHandler::mDragAndDropDetector
private

Pointer to the drag & drop detector, to send Drag & Drop events to.

Definition at line 186 of file event-handler.h.

GestureManager& Dali::Internal::Adaptor::EventHandler::mGestureManager
private

Reference to the GestureManager, set on construction, to send touch events to for analysis.

Definition at line 181 of file event-handler.h.

Impl* Dali::Internal::Adaptor::EventHandler::mImpl
private

Implementation.

Created on construction and destroyed on destruction.

Definition at line 191 of file event-handler.h.

bool Dali::Internal::Adaptor::EventHandler::mPaused
private

The paused state of the adaptor.

Definition at line 194 of file event-handler.h.

RotationObserver* Dali::Internal::Adaptor::EventHandler::mRotationObserver
private

Pointer to rotation observer, if present.

Definition at line 184 of file event-handler.h.

Dali::StyleMonitor Dali::Internal::Adaptor::EventHandler::mStyleMonitor
private

Handle to the style monitor, set on construction, to send font size and font change events to.

Definition at line 182 of file event-handler.h.


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