#define DALI_LONG_PRESS_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 LongPressGestureDetector : public GestureDetector
{
-public: // Typedefs
- using DetectedSignalType = Signal<void( Actor, const LongPressGesture& )>; ///< Gesture detected signal type @SINCE_1_0.0
+public: // Typedefs
+ using DetectedSignalType = Signal<void(Actor, const LongPressGesture&)>; ///< Gesture detected signal type @SINCE_1_0.0
public: // Creation & Destruction
-
/**
* @brief Creates an uninitialized LongPressGestureDetector; this can be initialized with LongPressGestureDetector::New().
*
* @param[in] handle Handle to an object
* @return Handle to a LongPressGestureDetector object or an uninitialized handle
*/
- static LongPressGestureDetector DownCast( BaseHandle handle );
+ static LongPressGestureDetector DownCast(BaseHandle handle);
/**
* @brief Destructor.
*/
LongPressGestureDetector& operator=(const LongPressGestureDetector& rhs);
-public: // Setters
+ /**
+ * @brief This move constructor is required for (smart) pointer semantics.
+ *
+ * @SINCE_2_2.4
+ * @param[in] handle A reference to the moved handle
+ */
+ LongPressGestureDetector(LongPressGestureDetector&& 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
+ */
+ LongPressGestureDetector& operator=(LongPressGestureDetector&& rhs) noexcept;
+
+public: // Setters
+ /**
* @brief Sets the number of touches required.
*
* The number of touches corresponds to the number of fingers a user
void SetTouchesRequired(uint32_t minTouches, uint32_t maxTouches);
public: // Getters
-
/**
* @brief Retrieves the minimum number of touches required.
*
uint32_t GetMaximumTouchesRequired() const;
public: // Signals
-
/**
* @brief This signal is emitted when the specified long press is detected on the attached actor.
*
DetectedSignalType& DetectedSignal();
public: // Not intended for Application developers
-
/// @cond internal
/**
* @brief This constructor is used by LongPressGestureDetector::New() methods.
*/
explicit DALI_INTERNAL LongPressGestureDetector(Internal::LongPressGestureDetector* internal);
/// @endcond
-
};
/**