/*
- * 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.
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)
{
GetImplementation(*this).SetMaximumTouchesRequired(maximum);
}
+void PanGestureDetector::SetMaximumMotionEventAge(uint32_t maximumAge)
+{
+ GetImplementation(*this).SetMaximumMotionEventAge(maximumAge);
+}
+
uint32_t PanGestureDetector::GetMinimumTouchesRequired() const
{
return GetImplementation(*this).GetMinimumTouchesRequired();
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);