Tizen Native API
Dali::PinchGestureDetector Class Reference

This class looks for pinching gestures involving two touches. More...

Inheritance diagram for Dali::PinchGestureDetector:
Dali::GestureDetector Dali::Handle Dali::BaseHandle

Public Types

typedef Signal< void(Actor,
const PinchGesture &) > 
DetectedSignalType
 Signal type.

Public Member Functions

 PinchGestureDetector ()
 Create an uninitialized PinchGestureDetector; this can be initialized with PinchGestureDetector::New().
 ~PinchGestureDetector ()
 Destructor.
 PinchGestureDetector (const PinchGestureDetector &handle)
 This copy constructor is required for (smart) pointer semantics.
PinchGestureDetectoroperator= (const PinchGestureDetector &rhs)
 This assignment operator is required for (smart) pointer semantics.
DetectedSignalTypeDetectedSignal ()
 This signal is emitted when the pinch gesture is detected on the attached actor.

Static Public Member Functions

static PinchGestureDetector New ()
 Create an initialized PinchGestureDetector.
static PinchGestureDetector DownCast (BaseHandle handle)
 Downcast a handle to PinchGestureDetector handle.

Detailed Description

This class looks for pinching gestures involving two touches.

It tries to detect when the user moves two touch points towards or away from each other. Please see PinchGesture for more information.

The application programmer can use this gesture detector as follows:

 PinchGestureDetector detector = PinchGestureDetector::New();
 detector.Attach(myActor);
 detector.DetectedSignal().Connect(this, &MyApplication::OnPinch);
Since :
2.4
See also:
PinchGesture

Member Typedef Documentation

Signal type.

Since :
2.4

Constructor & Destructor Documentation

Create an uninitialized PinchGestureDetector; this can be initialized with PinchGestureDetector::New().

Calling member functions with an uninitialized PinchGestureDetector handle is not allowed.

Since :
2.4

Destructor.

This is non-virtual since derived Handle types must not contain data or virtual methods.

Since :
2.4

This copy constructor is required for (smart) pointer semantics.

Since :
2.4
Parameters:
[in]handleA reference to the copied handle

Member Function Documentation

This signal is emitted when the pinch gesture is detected on the attached actor.

A callback of the following type may be connected:

   void YourCallbackName( Actor actor, const PinchGesture& gesture );
Since :
2.4
Returns:
The signal to connect to.
Precondition:
The gesture detector has been initialized.

Downcast a handle to PinchGestureDetector handle.

If handle points to a PinchGestureDetector object the downcast produces valid handle. If not the returned handle is left uninitialized.

Since :
2.4
Parameters:
[in]handleHandle to an object
Returns:
Handle to a PinchGestureDetector object or an uninitialized handle

Reimplemented from Dali::GestureDetector.

Create an initialized PinchGestureDetector.

Since :
2.4
Returns:
A handle to a newly allocated Dali resource.

Reimplemented from Dali::Handle.

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

This assignment operator is required for (smart) pointer semantics.

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