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::SendData()
67 void SendData(void* event) override;
70 * @copydoc Dali::DragAndDrop::ReceiveData()
72 void ReceiveData(void* event) override;
75 * @copydoc Dali::DragAndDrop::CalculateDragEvent()
77 bool CalculateDragEvent(void* event) override;
80 * @copydoc Dali::DragAndDrop::CalculateViewRegion()
82 bool CalculateViewRegion(void* event) override;
85 DragAndDropGeneric(const DragAndDropGeneric&) = delete;
86 DragAndDropGeneric& operator=(DragAndDropGeneric&) = delete;
87 DragAndDropGeneric(DragAndDropGeneric&&) = delete;
88 DragAndDropGeneric& operator=(DragAndDropGeneric&&) = delete;
91 }; // class DragAndDropGeneric
93 } // namespace Adaptor
95 } // namespace Internal
99 #endif // DALI_INTERNAL_DRAG_AND_DROP_GENERIC_H