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