Tizen Native API

Base structure for different gestures that an application can receive. More...

Inheritance diagram for Dali::Gesture:
Dali::LongPressGesture Dali::PanGesture Dali::PinchGesture Dali::TapGesture

Public Types

enum  Type
 Type of gesture. More...
enum  State
 State of the gesture. More...

Public Member Functions

 Gesture (const Gesture &rhs)
 Copy constructor.
Gestureoperator= (const Gesture &rhs)
 Assignment operator.
virtual ~Gesture ()
 Virtual destructor.

Public Attributes

Type type
 The gesture type.
State state
 The gesture state.
unsigned int time
 The time the gesture took place.

Protected Member Functions

 Gesture (Type gestureType, State gestureState)
 This constructor is only used by derived classes.

Detailed Description

Base structure for different gestures that an application can receive.

A gesture is an event that is produced from a combination of several touch events in a particular order or within a certain time frame (e.g pinch).

To receive a particular gesture, the application has to create and connect to the appropriate GestureDetector.

Since :
2.4
Note:
An instance of this class cannot be created.
See also:
GestureDetector

Member Enumeration Documentation

State of the gesture.

Since :
2.4
Enumerator:
Clear 

There is no state associated with this gesture.

Since :
2.4
Started 

The touched points on the screen have moved enough to be considered a gesture.

Since :
2.4
Continuing 

The gesture is continuing.

Since :
2.4
Finished 

The user has lifted a finger or touched an additional point on the screen.

Since :
2.4
Cancelled 

The gesture has been cancelled.

Since :
2.4
Possible 

A gesture is possible.

Since :
2.4

Type of gesture.

Since :
2.4
Enumerator:
Pinch 

When two touch points move away or towards each other.

Since :
2.4
Pan 

When the user drags their finger(s) in a particular direction.

Since :
2.4
Tap 

When the user taps the screen.

Since :
2.4
LongPress 

When the user continues to touch the same area on the screen for the device configured time.

Since :
2.4

Constructor & Destructor Documentation

Dali::Gesture::Gesture ( const Gesture rhs)

Copy constructor.

Since :
2.4
Parameters:
[in]rhsA reference to the copied handle
virtual Dali::Gesture::~Gesture ( ) [virtual]

Virtual destructor.

Since :
2.4
Dali::Gesture::Gesture ( Type  gestureType,
State  gestureState 
) [protected]

This constructor is only used by derived classes.

Since :
2.4
Parameters:
[in]gestureTypeThe type of gesture event.
[in]gestureStateThe state of the gesture event.

Member Function Documentation

Gesture& Dali::Gesture::operator= ( const Gesture rhs)

Assignment operator.

Since :
2.4
Parameters:
[in]rhsA reference to the copied handle
Returns:
A reference to this

Member Data Documentation

The gesture state.

Please see the description in the sub-classes to see the states used by the actual gesture.