Dali 3D User Interface Engine
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
Dali::Internal::Adaptor::GestureDetector Class Referenceabstract

Abstract Base class for all adaptor gesture detectors. More...

#include <gesture-detector.h>

Inheritance diagram for Dali::Internal::Adaptor::GestureDetector:
Inheritance graph
[legend]
Collaboration diagram for Dali::Internal::Adaptor::GestureDetector:
Collaboration graph
[legend]

Public Member Functions

virtual void SendEvent (const Integration::TouchEvent &event)=0
 Called by the gesture manager when it gets a touch event. More...
 
virtual void Update (const Integration::GestureRequest &request)=0
 Called by the gesture manager when Core updates the gesture's detection requirements. More...
 
Gesture::Type GetType () const
 Returns the type of gesture detector. More...
 
- Public Member Functions inherited from Dali::RefObject
void Reference ()
 Increment the object's reference count. More...
 
void Unreference ()
 Decrement the object's reference count. More...
 
int ReferenceCount ()
 Retrieve the object's reference count. More...
 

Protected Member Functions

 GestureDetector (Vector2 screenSize, Gesture::Type detectorType)
 Protected Constructor. More...
 
virtual ~GestureDetector ()
 Virtual destructor. More...
 
- Protected Member Functions inherited from Dali::RefObject
 RefObject ()
 Default constructor. More...
 
virtual ~RefObject ()
 RefObject is intended as a base class. More...
 
 RefObject (const RefObject &rhs)
 Copy constructor. More...
 
RefObjectoperator= (const RefObject &rhs)
 Assignment operator. More...
 

Protected Attributes

Vector2 mScreenSize
 
Gesture::Type mType
 

Detailed Description

Abstract Base class for all adaptor gesture detectors.

Note
this may be replaced by gesture events sent directly from X.

Definition at line 48 of file gesture-detector.h.

Constructor & Destructor Documentation

Dali::Internal::Adaptor::GestureDetector::GestureDetector ( Vector2  screenSize,
Gesture::Type  detectorType 
)
inlineprotected

Protected Constructor.

Should only be able to create derived class objects.

Parameters
[in]screenSizeThe size of the screen.
[in]detectorTypeThe type of gesture detector.

Definition at line 79 of file gesture-detector.h.

virtual Dali::Internal::Adaptor::GestureDetector::~GestureDetector ( )
inlineprotectedvirtual

Virtual destructor.

Definition at line 85 of file gesture-detector.h.

Member Function Documentation

Gesture::Type Dali::Internal::Adaptor::GestureDetector::GetType ( ) const
inline

Returns the type of gesture detector.

Returns
Type of gesture detector.

Definition at line 70 of file gesture-detector.h.

References mType.

virtual void Dali::Internal::Adaptor::GestureDetector::SendEvent ( const Integration::TouchEvent &  event)
pure virtual

Called by the gesture manager when it gets a touch event.

The gesture detector should evaluate this event along with previously received events to determine whether the gesture they require has taken place.

Parameters
[in]eventThe latest touch event.

Implemented in Dali::Internal::Adaptor::PinchGestureDetector, Dali::Internal::Adaptor::LongPressGestureDetector, Dali::Internal::Adaptor::TapGestureDetector, and Dali::Internal::Adaptor::PanGestureDetectorBase.

virtual void Dali::Internal::Adaptor::GestureDetector::Update ( const Integration::GestureRequest &  request)
pure virtual

Called by the gesture manager when Core updates the gesture's detection requirements.

Parameters
[in]requestThe updated detection requirements.

Implemented in Dali::Internal::Adaptor::PinchGestureDetector, Dali::Internal::Adaptor::LongPressGestureDetector, Dali::Internal::Adaptor::TapGestureDetector, and Dali::Internal::Adaptor::PanGestureDetectorBase.

Member Data Documentation

Vector2 Dali::Internal::Adaptor::GestureDetector::mScreenSize
protected

Definition at line 89 of file gesture-detector.h.

Gesture::Type Dali::Internal::Adaptor::GestureDetector::mType
protected

Definition at line 90 of file gesture-detector.h.

Referenced by GetType().


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