2 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali/public-api/events/tap-gesture-detector.h>
22 #include <dali/internal/event/events/tap-gesture-detector-impl.h>
26 TapGestureDetector::TapGestureDetector(Internal::TapGestureDetector* internal)
27 : GestureDetector(internal)
31 TapGestureDetector::TapGestureDetector()
35 TapGestureDetector TapGestureDetector::New()
37 Internal::TapGestureDetectorPtr internal = Internal::TapGestureDetector::New();
39 return TapGestureDetector(internal.Get());
42 TapGestureDetector TapGestureDetector::New(unsigned int tapsRequired )
44 Internal::TapGestureDetectorPtr internal = Internal::TapGestureDetector::New( tapsRequired );
46 return TapGestureDetector(internal.Get());
49 TapGestureDetector TapGestureDetector::DownCast( BaseHandle handle )
51 return TapGestureDetector( dynamic_cast<Dali::Internal::TapGestureDetector*>(handle.GetObjectPtr()) );
54 TapGestureDetector::~TapGestureDetector()
58 TapGestureDetector::TapGestureDetector(const TapGestureDetector& handle)
59 : GestureDetector(handle)
63 TapGestureDetector& TapGestureDetector::operator=(const TapGestureDetector& rhs)
65 BaseHandle::operator=(rhs);
69 void TapGestureDetector::SetMinimumTapsRequired(unsigned int taps)
71 GetImplementation(*this).SetMinimumTapsRequired(taps);
74 void TapGestureDetector::SetMaximumTapsRequired(unsigned int taps)
76 GetImplementation(*this).SetMaximumTapsRequired(taps);
79 unsigned int TapGestureDetector::GetMinimumTapsRequired() const
81 return GetImplementation(*this).GetMinimumTapsRequired();
84 unsigned int TapGestureDetector::GetMaximumTapsRequired() const
86 return GetImplementation(*this).GetMaximumTapsRequired();
89 TapGestureDetector::DetectedSignalType& TapGestureDetector::DetectedSignal()
91 return GetImplementation(*this).DetectedSignal();