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-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>
30 DragAndDropDetector::DragAndDropDetector()
34 DragAndDropDetector::~DragAndDropDetector()
38 DragAndDropDetector DragAndDropDetector::New()
40 return Internal::DragAndDropDetector::New();
43 void DragAndDropDetector::Attach(Control control)
45 GetImplementation(*this).Attach(control);
48 void DragAndDropDetector::Detach(Control control)
50 GetImplementation(*this).Detach(control);
53 void DragAndDropDetector::DetachAll()
55 GetImplementation(*this).DetachAll();
58 uint32_t DragAndDropDetector::GetAttachedControlCount() const
60 return GetImplementation(*this).GetAttachedControlCount();
63 Control DragAndDropDetector::GetAttachedControl(uint32_t index) const
65 return GetImplementation(*this).GetAttachedControl(index);
68 const std::string& DragAndDropDetector::GetContent() const
70 return GetImplementation(*this).GetContent();
73 const Vector2& DragAndDropDetector::GetCurrentScreenPosition() const
75 return GetImplementation(*this).GetCurrentScreenPosition();
78 DragAndDropDetector::DragAndDropSignal& DragAndDropDetector::StartedSignal()
80 return GetImplementation(*this).StartedSignal();
83 DragAndDropDetector::DragAndDropSignal& DragAndDropDetector::EnteredSignal()
85 return GetImplementation(*this).EnteredSignal();
88 DragAndDropDetector::DragAndDropSignal& DragAndDropDetector::ExitedSignal()
90 return GetImplementation(*this).ExitedSignal();
93 DragAndDropDetector::DragAndDropSignal& DragAndDropDetector::MovedSignal()
95 return GetImplementation(*this).MovedSignal();
98 DragAndDropDetector::DragAndDropSignal& DragAndDropDetector::DroppedSignal()
100 return GetImplementation(*this).DroppedSignal();
103 DragAndDropDetector::DragAndDropSignal& DragAndDropDetector::EndedSignal()
105 return GetImplementation(*this).EndedSignal();
108 DragAndDropDetector::DragAndDropDetector( Internal::DragAndDropDetector* detector )
109 : BaseHandle( detector )
113 } //namespace Toolkit