Change-Id: Ied26dfde72b9124c40489f67230235938db634ec
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
* @code
* LongPressGestureDetector detector = LongPressGestureDetector::New();
* detector.Attach(myActor);
* @code
* LongPressGestureDetector detector = LongPressGestureDetector::New();
* detector.Attach(myActor);
- * detector.SignalDetected().Connect(this, &MyApplication::OnLongPress);
+ * detector.DetectedSignal().Connect(this, &MyApplication::OnLongPress);
* @endcode
*
* @see LongPressGesture
* @endcode
*
* @see LongPressGesture
* @code
* PanGestureDetector detector = PanGestureDetector::New();
* detector.Attach(myActor);
* @code
* PanGestureDetector detector = PanGestureDetector::New();
* detector.Attach(myActor);
- * detector.SignalDetected().Connect(this, &MyApplication::OnPan);
+ * detector.DetectedSignal().Connect(this, &MyApplication::OnPan);
*
* // Detect pan gesture for single and double touch.
* detector.SetMaximumTouchesRequired(2);
*
* // Detect pan gesture for single and double touch.
* detector.SetMaximumTouchesRequired(2);
* @code
* PinchGestureDetector detector = PinchGestureDetector::New();
* detector.Attach(myActor);
* @code
* PinchGestureDetector detector = PinchGestureDetector::New();
* detector.Attach(myActor);
- * detector.SignalDetected().Connect(this, &MyApplication::OnPinch);
+ * detector.DetectedSignal().Connect(this, &MyApplication::OnPinch);
* @endcode
*
* @see PinchGesture
* @endcode
*
* @see PinchGesture
* @code
* TapGestureDetector detector = TapGestureDetector::New();
* detector.Attach(myActor);
* @code
* TapGestureDetector detector = TapGestureDetector::New();
* detector.Attach(myActor);
- * detector.SignalDetected().Connect(this, &MyApplication::OnTap);
+ * detector.DetectedSignal().Connect(this, &MyApplication::OnTap);
* @endcode
*
* @see TapGesture
* @endcode
*
* @see TapGesture
* Long Press Gesture Event Processing:
*
* When we receive a long press gesture event, we do the following:
* Long Press Gesture Event Processing:
*
* When we receive a long press gesture event, we do the following:
- * - Determine the hit actor underneath the long press gesture event.
- * - Determine whether this actor is attached to any of the detectors or is a child of an actor
- * attached to one of the detectors.
- * - Ensure the touches in the long press event match the requirements of the detector.
- * - Emit the gesture when all the above conditions are met.
+ * - Find the actor that requires a long-press at the long press position.
+ * - Emit the gesture if the event satisfies the detector conditions.
*/
class LongPressGestureProcessor : public GestureProcessor
{
*/
class LongPressGestureProcessor : public GestureProcessor
{
/**
* Pan Gesture Event Processing:
*
/**
* Pan Gesture Event Processing:
*
- * When we receive a pinch gesture event, we do the following:
- * - Determine the hot actor underneath the current position of the pan gesture event.
- * - Determine whether this actor is, or is a child of, the actor(s) attached to any of the
- * detectors.
- * - Emit the gesture when all the above conditions are met.
+ * When we receive a pan gesture event, we do the following:
+ * - Find the actor that requires a pan where the pan started from (i.e. the down position).
+ * - Emit the gesture if the event satisfies the detector conditions.
*
* The above is only checked when our gesture starts. We continue sending the pan gesture to the
* same actor and detector until the pan ends or is cancelled.
*
* The above is only checked when our gesture starts. We continue sending the pan gesture to the
* same actor and detector until the pan ends or is cancelled.
public: // To be called by GestureEventProcessor
/**
public: // To be called by GestureEventProcessor
/**
- * This method is called whenever a pinch gesture event occurs.
+ * This method is called whenever a pan gesture event occurs.
* @param[in] panEvent The event that has occurred.
*/
void Process( const Integration::PanGestureEvent& panEvent );
* @param[in] panEvent The event that has occurred.
*/
void Process( const Integration::PanGestureEvent& panEvent );
// Record the current render-task for Screen->Actor coordinate conversions
mCurrentRenderTask = hitTestResults.renderTask;
// Record the current render-task for Screen->Actor coordinate conversions
mCurrentRenderTask = hitTestResults.renderTask;
- // Set mCurrentPanEvent to use inside overridden methods called from ProcessAndEmit()
+ // Set mCurrentPinchEvent to use inside overridden methods called from ProcessAndEmit()
mCurrentPinchEvent = &pinchEvent;
ProcessAndEmit( hitTestResults );
mCurrentPinchEvent = NULL;
mCurrentPinchEvent = &pinchEvent;
ProcessAndEmit( hitTestResults );
mCurrentPinchEvent = NULL;
* Pinch Gesture Event Processing:
*
* When we receive a pinch gesture event, we do the following:
* Pinch Gesture Event Processing:
*
* When we receive a pinch gesture event, we do the following:
- * - Determine the hit actor underneath the center of the pinch gesture event.
- * - Determine whether this actor is, or is a child of, the actor attached to any of the detectors.
- * - Emit the gesture when all the above conditions are met.
+ * - Find the hit actor that requires a pinch underneath the center-point of the pinch.
+ * - Emit the gesture if the event satisfies the detector conditions.
*
* The above is only checked when our gesture starts. We continue sending the pinch gesture to this
* detector until the pinch ends or is cancelled.
*
* The above is only checked when our gesture starts. We continue sending the pinch gesture to this
* detector until the pinch ends or is cancelled.
* Tap Gesture Event Processing:
*
* When we receive a tap gesture event, we do the following:
* Tap Gesture Event Processing:
*
* When we receive a tap gesture event, we do the following:
- * - Determine the hit actor underneath the tap gesture event.
- * - Determine whether this actor is attached to any of the detectors or is a child of an actor
- * attached to one of the detectors.
- * - Ensure the taps and the touches in the tap event match the requirements of the detector.
- * - Emit the gesture when all the above conditions are met.
+ * - Find the actor that requires a tap where the tap occurred.
+ * - Emit the gesture if the tap gesture event satisfies the detector conditions.
*/
class TapGestureProcessor : public GestureProcessor
{
*/
class TapGestureProcessor : public GestureProcessor
{
-#endif // __DALI_INTERNAL_PINCH_GESTURE_EVENT_PROCESSOR_H__
+#endif // __DALI_INTERNAL_TAP_GESTURE_EVENT_PROCESSOR_H__