// INTERNAL INCLUDES
#include <dali/public-api/events/gesture-detector.h>
-#include <dali/public-api/signals/dali-signal-v2.h>
+#include <dali/public-api/signals/dali-signal.h>
-namespace Dali DALI_IMPORT_API
+namespace Dali
{
struct Radian;
*
* @see PanGesture
*/
-class PanGestureDetector : public GestureDetector
+class DALI_IMPORT_API PanGestureDetector : public GestureDetector
{
public:
// Typedefs
- typedef SignalV2< void (Actor, PanGesture) > DetectedSignalV2; ///< Pan gesture detected signal type
+ typedef Signal< void ( Actor, const PanGesture& ) > DetectedSignalType; ///< Pan gesture detected signal type
// Directional Pan
typedef std::pair< Radian, Radian > AngleThresholdPair; ///< Range of angles for a direction
~PanGestureDetector();
/**
- * @copydoc Dali::BaseHandle::operator=
+ * @brief This copy constructor is required for (smart) pointer semantics.
+ *
+ * @param [in] handle A reference to the copied handle
+ */
+ PanGestureDetector(const PanGestureDetector& handle);
+
+ /**
+ * @brief This assignment operator is required for (smart) pointer semantics.
+ *
+ * @param [in] rhs A reference to the copied handle
+ * @return A reference to this
*/
- using BaseHandle::operator=;
+ PanGestureDetector& operator=(const PanGestureDetector& rhs);
public: // Setters
*
* A callback of the following type may be connected:
* @code
- * void YourCallbackName(Actor actor, PanGesture gesture);
+ * void YourCallbackName( Actor actor, const PanGesture& gesture );
* @endcode
* @pre The gesture detector has been initialized.
* @return The signal to connect to.
*/
- DetectedSignalV2& DetectedSignal();
+ DetectedSignalType& DetectedSignal();
public: // Pan Properties Setters