/*
- * Copyright (c) 2015 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 HEADER
#include <dali/public-api/events/tap-gesture.h>
+// INTERNAL INCLUDES
+#include <dali/internal/event/events/tap-gesture/tap-gesture-impl.h>
+#include <dali/public-api/common/dali-common.h>
+
namespace Dali
{
-
-TapGesture::TapGesture()
-: Gesture(Gesture::Tap, Gesture::Clear),
- numberOfTaps(1),
- numberOfTouches(1)
+TapGesture::TapGesture(Internal::TapGesture* internal)
+: Gesture(internal)
{
}
-TapGesture::TapGesture( const TapGesture& rhs )
-: Gesture( rhs ),
- numberOfTaps( rhs.numberOfTaps ),
- numberOfTouches( rhs.numberOfTouches ),
- screenPoint( rhs.screenPoint ),
- localPoint( rhs.localPoint )
+TapGesture::TapGesture() = default;
+
+TapGesture::TapGesture(const TapGesture& rhs) = default;
+
+TapGesture::TapGesture(TapGesture&& rhs) noexcept = default;
+
+TapGesture& TapGesture::operator=(const TapGesture& rhs) = default;
+
+TapGesture& TapGesture::operator=(TapGesture&& rhs) noexcept = default;
+
+TapGesture::~TapGesture() = default;
+
+uint32_t TapGesture::GetNumberOfTaps() const
{
+ return GetImplementation(*this).GetNumberOfTaps();
}
-TapGesture& TapGesture::operator=( const TapGesture& rhs )
+uint32_t TapGesture::GetNumberOfTouches() const
{
- Gesture::operator=(rhs);
- numberOfTaps = rhs.numberOfTaps;
- numberOfTouches = rhs.numberOfTouches;
- screenPoint = rhs.screenPoint;
- localPoint = rhs.localPoint;
+ return GetImplementation(*this).GetNumberOfTouches();
+}
- return *this;
+const Vector2& TapGesture::GetScreenPoint() const
+{
+ return GetImplementation(*this).GetScreenPoint();
}
-TapGesture::~TapGesture()
+const Vector2& TapGesture::GetLocalPoint() const
{
+ return GetImplementation(*this).GetLocalPoint();
}
} // namespace Dali