Tizen Native API
|
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 () | |
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. | |
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 () |
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
typedef Signal< void ( Actor, const PinchGesture& ) > Dali::PinchGestureDetector::DetectedSignalType |
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
Dali::PinchGestureDetector::PinchGestureDetector | ( | const PinchGestureDetector & | handle | ) |
This copy constructor is required for (smart) pointer semantics.
- Since :
- 2.4
- 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
- Returns:
- The signal to connect to.
- Precondition:
- The gesture detector has been initialized.
static PinchGestureDetector Dali::PinchGestureDetector::DownCast | ( | BaseHandle | handle | ) | [static] |
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] 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] |
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] rhs A reference to the copied handle
- Returns:
- A reference to this