Tizen Native API
5.5
|
GestureDetectors analyse a stream of touch events and attempt to determine the intention of the user. More...
Public Member Functions | |
GestureDetector () | |
Creates an uninitialized GestureDetector. | |
~GestureDetector () | |
Dali::GestureDetector is intended as a base class. | |
GestureDetector (const GestureDetector &handle) | |
This copy constructor is required for (smart) pointer semantics. | |
GestureDetector & | operator= (const GestureDetector &rhs) |
This assignment operator is required for (smart) pointer semantics. | |
void | Attach (Actor actor) |
Attaches an actor to the gesture. | |
void | Detach (Actor actor) |
Detaches the attached actor from the gesture detector. | |
void | DetachAll () |
Detaches all the actors that have been attached to the gesture detector. | |
size_t | GetAttachedActorCount () const |
Returns the number of actors attached to the gesture detector. | |
Actor | GetAttachedActor (size_t index) const |
Returns an actor by index. An empty handle if the index is not valid. | |
Static Public Member Functions | |
static GestureDetector | DownCast (BaseHandle handle) |
Downcasts a handle to GestureDetector handle. |
GestureDetectors analyse a stream of touch events and attempt to determine the intention of the user.
An actor is attached to a gesture detector and if the detector recognises a pattern in its analysis, it will emit a detected signal to the application.
This is the base class for different gesture detectors available and provides functionality that is common to all the gesture detectors.
Creates an uninitialized GestureDetector.
This can be initialized with one of the derived gesture detectors' New() methods. For example, PanGestureDetector::New().
Calling member functions with an uninitialized Dali::GestureDetector handle is not allowed.
Dali::GestureDetector is intended as a base class.
This is non-virtual since derived Handle types must not contain data or virtual methods.
Dali::GestureDetector::GestureDetector | ( | const GestureDetector & | handle | ) |
This copy constructor is required for (smart) pointer semantics.
[in] | handle | A reference to the copied handle |
void Dali::GestureDetector::Attach | ( | Actor | actor | ) |
Attaches an actor to the gesture.
The detected signal will be dispatched when the gesture occurs on the attached actor.
[in] | actor | The actor to attach to the gesture detector |
void Dali::GestureDetector::Detach | ( | Actor | actor | ) |
Detaches the attached actor from the gesture detector.
[in] | actor | The actor to detach from the gesture detector |
void Dali::GestureDetector::DetachAll | ( | ) |
Detaches all the actors that have been attached to the gesture detector.
static GestureDetector Dali::GestureDetector::DownCast | ( | BaseHandle | handle | ) | [static] |
Downcasts a handle to GestureDetector handle.
If handle points to a GestureDetector object, the downcast produces valid handle. If not, the returned handle is left uninitialized.
[in] | handle | Handle to an object |
Reimplemented from Dali::Handle.
Reimplemented in Dali::PanGestureDetector, Dali::LongPressGestureDetector, Dali::TapGestureDetector, and Dali::PinchGestureDetector.
Actor Dali::GestureDetector::GetAttachedActor | ( | size_t | index | ) | const |
Returns an actor by index. An empty handle if the index is not valid.
[in] | index | The attached actor's index |
size_t Dali::GestureDetector::GetAttachedActorCount | ( | ) | const |
Returns the number of actors attached to the gesture detector.
GestureDetector& Dali::GestureDetector::operator= | ( | const GestureDetector & | rhs | ) |
This assignment operator is required for (smart) pointer semantics.
[in] | rhs | A reference to the copied handle |