Clean up the code to build successfully on macOS
[platform/core/uifw/dali-core.git] / dali / public-api / events / long-press-gesture-detector.cpp
1 /*
2  * Copyright (c) 2020 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16  */
17
18 // CLASS HEADER
19 #include <dali/public-api/events/long-press-gesture-detector.h>
20
21 // INTERNAL INCLUDES
22 #include <dali/internal/event/events/long-press-gesture/long-press-gesture-detector-impl.h>
23
24 namespace Dali
25 {
26 LongPressGestureDetector::LongPressGestureDetector(Internal::LongPressGestureDetector* internal)
27 : GestureDetector(internal)
28 {
29 }
30
31 LongPressGestureDetector::LongPressGestureDetector()
32 {
33 }
34
35 LongPressGestureDetector LongPressGestureDetector::New()
36 {
37   Internal::LongPressGestureDetectorPtr internal = Internal::LongPressGestureDetector::New();
38
39   return LongPressGestureDetector(internal.Get());
40 }
41
42 LongPressGestureDetector LongPressGestureDetector::New(uint32_t touchesRequired)
43 {
44   Internal::LongPressGestureDetectorPtr internal = Internal::LongPressGestureDetector::New(touchesRequired);
45
46   return LongPressGestureDetector(internal.Get());
47 }
48
49 LongPressGestureDetector LongPressGestureDetector::New(uint32_t minTouches, uint32_t maxTouches)
50 {
51   Internal::LongPressGestureDetectorPtr internal = Internal::LongPressGestureDetector::New(minTouches, maxTouches);
52
53   return LongPressGestureDetector(internal.Get());
54 }
55
56 LongPressGestureDetector LongPressGestureDetector::DownCast(BaseHandle handle)
57 {
58   return LongPressGestureDetector(dynamic_cast<Dali::Internal::LongPressGestureDetector*>(handle.GetObjectPtr()));
59 }
60
61 LongPressGestureDetector::~LongPressGestureDetector()
62 {
63 }
64
65 LongPressGestureDetector::LongPressGestureDetector(const LongPressGestureDetector& handle)
66 : GestureDetector(handle)
67 {
68 }
69
70 LongPressGestureDetector& LongPressGestureDetector::operator=(const LongPressGestureDetector& rhs)
71 {
72   BaseHandle::operator=(rhs);
73   return *this;
74 }
75
76 void LongPressGestureDetector::SetTouchesRequired(uint32_t touches)
77 {
78   GetImplementation(*this).SetTouchesRequired(touches);
79 }
80
81 void LongPressGestureDetector::SetTouchesRequired(uint32_t minTouches, uint32_t maxTouches)
82 {
83   GetImplementation(*this).SetTouchesRequired(minTouches, maxTouches);
84 }
85
86 uint32_t LongPressGestureDetector::GetMinimumTouchesRequired() const
87 {
88   return GetImplementation(*this).GetMinimumTouchesRequired();
89 }
90
91 uint32_t LongPressGestureDetector::GetMaximumTouchesRequired() const
92 {
93   return GetImplementation(*this).GetMaximumTouchesRequired();
94 }
95
96 LongPressGestureDetector::DetectedSignalType& LongPressGestureDetector::DetectedSignal()
97 {
98   return GetImplementation(*this).DetectedSignal();
99 }
100
101 } // namespace Dali