#define DALI_PINCH_GESTURE_DETECTOR_H
/*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
class DALI_CORE_API PinchGestureDetector : public GestureDetector
{
public: // Typedefs
-
/**
* @brief Signal type.
* @SINCE_1_0.0
*/
- using DetectedSignalType = Signal<void( Actor, const PinchGesture& )>;
+ using DetectedSignalType = Signal<void(Actor, const PinchGesture&)>;
public: // Creation & Destruction
-
/**
* @brief Creates an uninitialized PinchGestureDetector; this can be initialized with PinchGestureDetector::New().
*
* @param[in] handle Handle to an object
* @return Handle to a PinchGestureDetector object or an uninitialized handle
*/
- static PinchGestureDetector DownCast( BaseHandle handle );
+ static PinchGestureDetector DownCast(BaseHandle handle);
/**
* @brief Destructor.
*/
PinchGestureDetector& operator=(const PinchGestureDetector& rhs);
-public: // Signals
+ /**
+ * @brief This move constructor is required for (smart) pointer semantics.
+ *
+ * @SINCE_2_2.4
+ * @param[in] handle A reference to the moved handle
+ */
+ PinchGestureDetector(PinchGestureDetector&& handle) noexcept;
+
+ /**
+ * @brief This move assignment operator is required for (smart) pointer semantics.
+ *
+ * @SINCE_2_2.4
+ * @param[in] rhs A reference to the moved handle
+ * @return A reference to this
+ */
+ PinchGestureDetector& operator=(PinchGestureDetector&& rhs) noexcept;
+public: // Signals
/**
* @brief This signal is emitted when the pinch gesture is detected on the attached actor.
*
DetectedSignalType& DetectedSignal();
public: // Not intended for Application developers
-
/// @cond internal
/**
* @brief This constructor is used by PinchGestureDetector::New() methods.
*/
explicit DALI_INTERNAL PinchGestureDetector(Internal::PinchGestureDetector* internal);
/// @endcond
-
};
/**