Tizen Native API
6.5
|
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. |
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
typedef Signal< void ( Actor, const PinchGesture& ) > Dali::PinchGestureDetector::DetectedSignalType |
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
Dali::PinchGestureDetector::PinchGestureDetector | ( | const PinchGestureDetector & | handle | ) |
This copy constructor is required for (smart) pointer semantics.
- Since:
- 2.4, DALi version 1.0.0
- Parameters:
-
[in] handle A 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.
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.
- Since:
- 2.4, DALi version 1.0.0
- Parameters:
-
[in] handle Handle to an object
- Returns:
- Handle to a PinchGestureDetector object or an uninitialized handle
Reimplemented from Dali::GestureDetector.
static PinchGestureDetector Dali::PinchGestureDetector::New | ( | ) | [static] |
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] rhs A reference to the copied handle
- Returns:
- A reference to this