Tizen Native API  6.5
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 ()
 Creates 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 ()
 Creates an initialized PinchGestureDetector.
static PinchGestureDetector DownCast (BaseHandle handle)
 Downcasts 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, DALi version 1.0.0
See also:
PinchGesture

Signals | Signal Name | Method | |----------------|-----------------------| | pinchDetected | DetectedSignal() |


Member Typedef Documentation

Signal type.

Since:
2.4, DALi version 1.0.0

Constructor & Destructor Documentation

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

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

Since:
2.4, DALi version 1.0.0

Destructor.

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

Since:
2.4, DALi version 1.0.0

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

Since:
2.4, DALi version 1.0.0
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, DALi version 1.0.0
Returns:
The signal to connect to
Precondition:
The gesture detector has been initialized.

Downcasts 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, DALi version 1.0.0
Parameters:
[in]handleHandle to an object
Returns:
Handle to a PinchGestureDetector object or an uninitialized handle

Reimplemented from Dali::GestureDetector.

Creates an initialized PinchGestureDetector.

Since:
2.4, DALi version 1.0.0
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, DALi version 1.0.0
Parameters:
[in]rhsA reference to the copied handle
Returns:
A reference to this