X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Fevents%2Ftap-gesture-detector.cpp;h=e979fb7d901d6dddb9e53bf27c09f848c95313e7;hb=646f736e77b085c86e982c0d1d4b895c2a431330;hp=b76e91f61336c8e437c2144513344985ade0ade8;hpb=04d9131ea1ae8dc525f3c6500cf2f566a25a2e46;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/public-api/events/tap-gesture-detector.cpp b/dali/public-api/events/tap-gesture-detector.cpp index b76e91f..e979fb7 100644 --- a/dali/public-api/events/tap-gesture-detector.cpp +++ b/dali/public-api/events/tap-gesture-detector.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 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. @@ -23,9 +23,6 @@ namespace Dali { - -const char* const TapGestureDetector::SIGNAL_TAP_DETECTED = "tap-detected"; - TapGestureDetector::TapGestureDetector(Internal::TapGestureDetector* internal) : GestureDetector(internal) { @@ -42,9 +39,9 @@ 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()); } @@ -69,27 +66,27 @@ TapGestureDetector& TapGestureDetector::operator=(const TapGestureDetector& rhs) return *this; } -void TapGestureDetector::SetTapsRequired(unsigned int taps) +void TapGestureDetector::SetMinimumTapsRequired(uint32_t taps) { - GetImplementation(*this).SetTapsRequired(taps); + GetImplementation(*this).SetMinimumTapsRequired(taps); } -void TapGestureDetector::SetTouchesRequired(unsigned int touches) +void TapGestureDetector::SetMaximumTapsRequired(uint32_t taps) { - GetImplementation(*this).SetTouchesRequired(touches); + GetImplementation(*this).SetMaximumTapsRequired(taps); } -unsigned int TapGestureDetector::GetTapsRequired() const +uint32_t TapGestureDetector::GetMinimumTapsRequired() const { - return GetImplementation(*this).GetTapsRequired(); + return GetImplementation(*this).GetMinimumTapsRequired(); } -unsigned int TapGestureDetector::GetTouchesRequired() const +uint32_t TapGestureDetector::GetMaximumTapsRequired() const { - return GetImplementation(*this).GetTouchesRequired(); + return GetImplementation(*this).GetMaximumTapsRequired(); } -TapGestureDetector::DetectedSignalV2& TapGestureDetector::DetectedSignal() +TapGestureDetector::DetectedSignalType& TapGestureDetector::DetectedSignal() { return GetImplementation(*this).DetectedSignal(); }