Merge "Add BuildPickingRay to devel api" into devel/master
[platform/core/uifw/dali-core.git] / dali / public-api / events / pan-gesture-detector.cpp
index 343cf98..224ae34 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 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.
@@ -36,9 +36,7 @@ PanGestureDetector::PanGestureDetector(Internal::PanGestureDetector* internal)
 {
 }
 
-PanGestureDetector::PanGestureDetector()
-{
-}
+PanGestureDetector::PanGestureDetector() = default;
 
 PanGestureDetector PanGestureDetector::New()
 {
@@ -52,20 +50,15 @@ PanGestureDetector PanGestureDetector::DownCast(BaseHandle handle)
   return PanGestureDetector(dynamic_cast<Dali::Internal::PanGestureDetector*>(handle.GetObjectPtr()));
 }
 
-PanGestureDetector::~PanGestureDetector()
-{
-}
+PanGestureDetector::~PanGestureDetector() = default;
 
-PanGestureDetector::PanGestureDetector(const PanGestureDetector& handle)
-: GestureDetector(handle)
-{
-}
+PanGestureDetector::PanGestureDetector(const PanGestureDetector& handle) = default;
 
-PanGestureDetector& PanGestureDetector::operator=(const PanGestureDetector& rhs)
-{
-  BaseHandle::operator=(rhs);
-  return *this;
-}
+PanGestureDetector& PanGestureDetector::operator=(const PanGestureDetector& rhs) = default;
+
+PanGestureDetector::PanGestureDetector(PanGestureDetector&& handle) noexcept = default;
+
+PanGestureDetector& PanGestureDetector::operator=(PanGestureDetector&& rhs) noexcept = default;
 
 void PanGestureDetector::SetMinimumTouchesRequired(uint32_t minimum)
 {
@@ -77,6 +70,11 @@ void PanGestureDetector::SetMaximumTouchesRequired(uint32_t maximum)
   GetImplementation(*this).SetMaximumTouchesRequired(maximum);
 }
 
+void PanGestureDetector::SetMaximumMotionEventAge(uint32_t maximumAge)
+{
+  GetImplementation(*this).SetMaximumMotionEventAge(maximumAge);
+}
+
 uint32_t PanGestureDetector::GetMinimumTouchesRequired() const
 {
   return GetImplementation(*this).GetMinimumTouchesRequired();
@@ -87,6 +85,11 @@ uint32_t PanGestureDetector::GetMaximumTouchesRequired() const
   return GetImplementation(*this).GetMaximumTouchesRequired();
 }
 
+uint32_t PanGestureDetector::GetMaximumMotionEventAge() const
+{
+  return GetImplementation(*this).GetMaximumMotionEventAge();
+}
+
 void PanGestureDetector::AddAngle(Radian angle, Radian threshold)
 {
   GetImplementation(*this).AddAngle(angle, threshold);