/*
- * Copyright (c) 2014 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.
#include <dali/public-api/events/tap-gesture-detector.h>
// INTERNAL INCLUDES
-#include <dali/internal/event/events/tap-gesture-detector-impl.h>
+#include <dali/internal/event/events/tap-gesture/tap-gesture-detector-impl.h>
namespace Dali
{
-
-const char* const TapGestureDetector::SIGNAL_TAP_DETECTED = "tap-detected";
-
TapGestureDetector::TapGestureDetector(Internal::TapGestureDetector* internal)
: GestureDetector(internal)
{
}
-TapGestureDetector::TapGestureDetector()
-{
-}
+TapGestureDetector::TapGestureDetector() = default;
TapGestureDetector TapGestureDetector::New()
{
return TapGestureDetector(internal.Get());
}
-TapGestureDetector TapGestureDetector::New(unsigned int tapsRequired, unsigned int touchesRequired)
+TapGestureDetector TapGestureDetector::New(uint32_t tapsRequired)
{
- Internal::TapGestureDetectorPtr internal = Internal::TapGestureDetector::New(tapsRequired, touchesRequired);
+ Internal::TapGestureDetectorPtr internal = Internal::TapGestureDetector::New(tapsRequired);
return TapGestureDetector(internal.Get());
}
-TapGestureDetector TapGestureDetector::DownCast( BaseHandle handle )
+TapGestureDetector TapGestureDetector::DownCast(BaseHandle handle)
{
- return TapGestureDetector( dynamic_cast<Dali::Internal::TapGestureDetector*>(handle.GetObjectPtr()) );
+ return TapGestureDetector(dynamic_cast<Dali::Internal::TapGestureDetector*>(handle.GetObjectPtr()));
}
-TapGestureDetector::~TapGestureDetector()
-{
-}
+TapGestureDetector::~TapGestureDetector() = default;
-TapGestureDetector::TapGestureDetector(const TapGestureDetector& handle)
-: GestureDetector(handle)
-{
-}
+TapGestureDetector::TapGestureDetector(const TapGestureDetector& handle) = default;
+
+TapGestureDetector& TapGestureDetector::operator=(const TapGestureDetector& rhs) = default;
+
+TapGestureDetector::TapGestureDetector(TapGestureDetector&& handle) noexcept = default;
+
+TapGestureDetector& TapGestureDetector::operator=(TapGestureDetector&& rhs) noexcept = default;
-TapGestureDetector& TapGestureDetector::operator=(const TapGestureDetector& rhs)
+void TapGestureDetector::SetMinimumTapsRequired(uint32_t taps)
{
- BaseHandle::operator=(rhs);
- return *this;
+ GetImplementation(*this).SetMinimumTapsRequired(taps);
}
-void TapGestureDetector::SetTapsRequired(unsigned int taps)
+void TapGestureDetector::SetMaximumTapsRequired(uint32_t taps)
{
- GetImplementation(*this).SetTapsRequired(taps);
+ GetImplementation(*this).SetMaximumTapsRequired(taps);
}
-void TapGestureDetector::SetTouchesRequired(unsigned int touches)
+uint32_t TapGestureDetector::GetMinimumTapsRequired() const
{
- GetImplementation(*this).SetTouchesRequired(touches);
+ return GetImplementation(*this).GetMinimumTapsRequired();
}
-unsigned int TapGestureDetector::GetTapsRequired() const
+uint32_t TapGestureDetector::GetMaximumTapsRequired() const
{
- return GetImplementation(*this).GetTapsRequired();
+ return GetImplementation(*this).GetMaximumTapsRequired();
}
-unsigned int TapGestureDetector::GetTouchesRequired() const
+void TapGestureDetector::ReceiveAllTapEvents(bool receive)
{
- return GetImplementation(*this).GetTouchesRequired();
+ return GetImplementation(*this).ReceiveAllTapEvents(receive);
}
-TapGestureDetector::DetectedSignalV2& TapGestureDetector::DetectedSignal()
+TapGestureDetector::DetectedSignalType& TapGestureDetector::DetectedSignal()
{
return GetImplementation(*this).DetectedSignal();
}