Tizen Native API
5.0
|
This class looks for pinching gestures involving two touches. More...
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. | |
PinchGestureDetector & | operator= (const PinchGestureDetector &rhs) |
This assignment operator is required for (smart) pointer semantics. | |
DetectedSignalType & | DetectedSignal () |
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. |
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);
Signals | Signal Name | Method | |----------------|-----------------------| | pinchDetected | DetectedSignal() |
typedef Signal< void ( Actor, const PinchGesture& ) > Dali::PinchGestureDetector::DetectedSignalType |
Signal type.
Creates an uninitialized PinchGestureDetector; this can be initialized with PinchGestureDetector::New().
Calling member functions with an uninitialized PinchGestureDetector handle is not allowed.
Destructor.
This is non-virtual since derived Handle types must not contain data or virtual methods.
Dali::PinchGestureDetector::PinchGestureDetector | ( | const PinchGestureDetector & | handle | ) |
This copy constructor is required for (smart) pointer semantics.
[in] | handle | A reference to the copied handle |
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 );
static PinchGestureDetector Dali::PinchGestureDetector::DownCast | ( | BaseHandle | handle | ) | [static] |
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.
[in] | handle | Handle to an object |
Reimplemented from Dali::GestureDetector.
static PinchGestureDetector Dali::PinchGestureDetector::New | ( | ) | [static] |
Creates an initialized PinchGestureDetector.
Reimplemented from Dali::Handle.
PinchGestureDetector& Dali::PinchGestureDetector::operator= | ( | const PinchGestureDetector & | rhs | ) |
This assignment operator is required for (smart) pointer semantics.
[in] | rhs | A reference to the copied handle |