Formatting API
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / drag-drop-detector / drag-and-drop-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-toolkit/devel-api/drag-drop-detector/drag-and-drop-detector.h>
20
21 // INTERNAL INCLUDES
22 #include <dali-toolkit/internal/drag-drop-detector/drag-and-drop-detector-impl.h>
23
24 namespace Dali
25 {
26 namespace Toolkit
27 {
28 DragAndDropDetector::DragAndDropDetector()
29 {
30 }
31
32 DragAndDropDetector::~DragAndDropDetector()
33 {
34 }
35
36 DragAndDropDetector DragAndDropDetector::New()
37 {
38   return Internal::DragAndDropDetector::New();
39 }
40
41 void DragAndDropDetector::Attach(Control control)
42 {
43   GetImplementation(*this).Attach(control);
44 }
45
46 void DragAndDropDetector::Detach(Control control)
47 {
48   GetImplementation(*this).Detach(control);
49 }
50
51 void DragAndDropDetector::DetachAll()
52 {
53   GetImplementation(*this).DetachAll();
54 }
55
56 uint32_t DragAndDropDetector::GetAttachedControlCount() const
57 {
58   return GetImplementation(*this).GetAttachedControlCount();
59 }
60
61 Control DragAndDropDetector::GetAttachedControl(uint32_t index) const
62 {
63   return GetImplementation(*this).GetAttachedControl(index);
64 }
65
66 const std::string& DragAndDropDetector::GetContent() const
67 {
68   return GetImplementation(*this).GetContent();
69 }
70
71 const Vector2& DragAndDropDetector::GetCurrentScreenPosition() const
72 {
73   return GetImplementation(*this).GetCurrentScreenPosition();
74 }
75
76 DragAndDropDetector::DragAndDropSignal& DragAndDropDetector::StartedSignal()
77 {
78   return GetImplementation(*this).StartedSignal();
79 }
80
81 DragAndDropDetector::DragAndDropSignal& DragAndDropDetector::EnteredSignal()
82 {
83   return GetImplementation(*this).EnteredSignal();
84 }
85
86 DragAndDropDetector::DragAndDropSignal& DragAndDropDetector::ExitedSignal()
87 {
88   return GetImplementation(*this).ExitedSignal();
89 }
90
91 DragAndDropDetector::DragAndDropSignal& DragAndDropDetector::MovedSignal()
92 {
93   return GetImplementation(*this).MovedSignal();
94 }
95
96 DragAndDropDetector::DragAndDropSignal& DragAndDropDetector::DroppedSignal()
97 {
98   return GetImplementation(*this).DroppedSignal();
99 }
100
101 DragAndDropDetector::DragAndDropSignal& DragAndDropDetector::EndedSignal()
102 {
103   return GetImplementation(*this).EndedSignal();
104 }
105
106 DragAndDropDetector::DragAndDropDetector(Internal::DragAndDropDetector* detector)
107 : BaseHandle(detector)
108 {
109 }
110
111 } //namespace Toolkit
112
113 } // namespace Dali