2 * Copyright (c) 2020 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-toolkit/devel-api/drag-drop-detector/drag-and-drop-detector.h>
22 #include <dali-toolkit/internal/drag-drop-detector/drag-and-drop-detector-impl.h>
28 DragAndDropDetector::DragAndDropDetector()
32 DragAndDropDetector::~DragAndDropDetector()
36 DragAndDropDetector DragAndDropDetector::New()
38 return Internal::DragAndDropDetector::New();
41 void DragAndDropDetector::Attach(Control control)
43 GetImplementation(*this).Attach(control);
46 void DragAndDropDetector::Detach(Control control)
48 GetImplementation(*this).Detach(control);
51 void DragAndDropDetector::DetachAll()
53 GetImplementation(*this).DetachAll();
56 uint32_t DragAndDropDetector::GetAttachedControlCount() const
58 return GetImplementation(*this).GetAttachedControlCount();
61 Control DragAndDropDetector::GetAttachedControl(uint32_t index) const
63 return GetImplementation(*this).GetAttachedControl(index);
66 const std::string& DragAndDropDetector::GetContent() const
68 return GetImplementation(*this).GetContent();
71 const Vector2& DragAndDropDetector::GetCurrentScreenPosition() const
73 return GetImplementation(*this).GetCurrentScreenPosition();
76 DragAndDropDetector::DragAndDropSignal& DragAndDropDetector::StartedSignal()
78 return GetImplementation(*this).StartedSignal();
81 DragAndDropDetector::DragAndDropSignal& DragAndDropDetector::EnteredSignal()
83 return GetImplementation(*this).EnteredSignal();
86 DragAndDropDetector::DragAndDropSignal& DragAndDropDetector::ExitedSignal()
88 return GetImplementation(*this).ExitedSignal();
91 DragAndDropDetector::DragAndDropSignal& DragAndDropDetector::MovedSignal()
93 return GetImplementation(*this).MovedSignal();
96 DragAndDropDetector::DragAndDropSignal& DragAndDropDetector::DroppedSignal()
98 return GetImplementation(*this).DroppedSignal();
101 DragAndDropDetector::DragAndDropSignal& DragAndDropDetector::EndedSignal()
103 return GetImplementation(*this).EndedSignal();
106 DragAndDropDetector::DragAndDropDetector(Internal::DragAndDropDetector* detector)
107 : BaseHandle(detector)
111 } //namespace Toolkit