X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Fevents%2Ftap-gesture-detector.cpp;h=557e138f8482a3146ed34257e4ca4cf10c46344c;hb=adae31cf70bdeed19789edc694d4baaf2fc67f21;hp=1f2d93015aeade55abeb860a8f38496e7c95183d;hpb=0566b362eab7867ad0ea83f52053c6fef214e7f7;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 1f2d930..557e138 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) 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. @@ -19,7 +19,7 @@ #include // INTERNAL INCLUDES -#include +#include namespace Dali { @@ -28,9 +28,7 @@ TapGestureDetector::TapGestureDetector(Internal::TapGestureDetector* internal) { } -TapGestureDetector::TapGestureDetector() -{ -} +TapGestureDetector::TapGestureDetector() = default; TapGestureDetector TapGestureDetector::New() { @@ -39,53 +37,53 @@ TapGestureDetector TapGestureDetector::New() return TapGestureDetector(internal.Get()); } -TapGestureDetector TapGestureDetector::New(unsigned int tapsRequired ) +TapGestureDetector TapGestureDetector::New(uint32_t tapsRequired) { - Internal::TapGestureDetectorPtr internal = Internal::TapGestureDetector::New( tapsRequired ); + 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(handle.GetObjectPtr()) ); + return TapGestureDetector(dynamic_cast(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) -{ - BaseHandle::operator=(rhs); - return *this; -} +TapGestureDetector& TapGestureDetector::operator=(const TapGestureDetector& rhs) = default; + +TapGestureDetector::TapGestureDetector(TapGestureDetector&& handle) noexcept = default; + +TapGestureDetector& TapGestureDetector::operator=(TapGestureDetector&& rhs) noexcept = default; -void TapGestureDetector::SetMinimumTapsRequired(unsigned int taps) +void TapGestureDetector::SetMinimumTapsRequired(uint32_t taps) { GetImplementation(*this).SetMinimumTapsRequired(taps); } -void TapGestureDetector::SetMaximumTapsRequired(unsigned int taps) +void TapGestureDetector::SetMaximumTapsRequired(uint32_t taps) { GetImplementation(*this).SetMaximumTapsRequired(taps); } -unsigned int TapGestureDetector::GetMinimumTapsRequired() const +uint32_t TapGestureDetector::GetMinimumTapsRequired() const { return GetImplementation(*this).GetMinimumTapsRequired(); } -unsigned int TapGestureDetector::GetMaximumTapsRequired() const +uint32_t TapGestureDetector::GetMaximumTapsRequired() const { return GetImplementation(*this).GetMaximumTapsRequired(); } +void TapGestureDetector::ReceiveAllTapEvents(bool receive) +{ + return GetImplementation(*this).ReceiveAllTapEvents(receive); +} + TapGestureDetector::DetectedSignalType& TapGestureDetector::DetectedSignal() { return GetImplementation(*this).DetectedSignal();