1 #ifndef DALI_INTERNAL_DRAG_AND_DROP_GENERIC_H
2 #define DALI_INTERNAL_DRAG_AND_DROP_GENERIC_H
5 * Copyright (c) 2022 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali/internal/drag-and-drop/common/drag-and-drop-impl.h>
34 * DragAndDrop Implementation
36 class DragAndDropGeneric : public Dali::Internal::Adaptor::DragAndDrop
47 ~DragAndDropGeneric() override;
50 * @copydoc Dali::DragAndDrop::StartDragAndDrop()
52 bool StartDragAndDrop(Dali::Actor source, Dali::Window shadowWindow, const Dali::DragAndDrop::DragData& data, Dali::DragAndDrop::SourceFunction callback) override;
55 * @copydoc Dali::DragAndDrop::AddListener()
57 bool AddListener(Dali::Actor target, Dali::DragAndDrop::DragAndDropFunction callback) override;
60 * @copydoc Dali::DragAndDrop::RemoveListener()
62 bool RemoveListener(Dali::Actor target) override;
65 * @copydoc Dali::DragAndDrop::AddListener()
67 bool AddListener(Dali::Window target, Dali::DragAndDrop::DragAndDropFunction callback) override;
70 * @copydoc Dali::DragAndDrop::RemoveListener()
72 bool RemoveListener(Dali::Window target) override;
75 * @copydoc Dali::DragAndDrop::SendData()
77 void SendData(void* event) override;
80 * @copydoc Dali::DragAndDrop::ReceiveData()
82 void ReceiveData(void* event) override;
85 * @copydoc Dali::DragAndDrop::CalculateDragEvent()
87 bool CalculateDragEvent(void* event) override;
90 * @copydoc Dali::DragAndDrop::CalculateViewRegion()
92 bool CalculateViewRegion(void* event) override;
95 DragAndDropGeneric(const DragAndDropGeneric&) = delete;
96 DragAndDropGeneric& operator=(DragAndDropGeneric&) = delete;
97 DragAndDropGeneric(DragAndDropGeneric&&) = delete;
98 DragAndDropGeneric& operator=(DragAndDropGeneric&&) = delete;
101 }; // class DragAndDropGeneric
103 } // namespace Adaptor
105 } // namespace Internal
109 #endif // DALI_INTERNAL_DRAG_AND_DROP_GENERIC_H