[NUI] Add New NUI DnD Class and Demo
authorTaehyub Kim <taehyub.kim@samsung.com>
Fri, 17 Dec 2021 09:32:16 +0000 (18:32 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Thu, 10 Mar 2022 08:03:31 +0000 (17:03 +0900)
commitbb83449537e56a7d5aa6369013c44318e9d77ade
treecbddea8a73b5709275b73089dad1fb0ec7707a4a
parent67ccfb3adad3bfa95ecb5408de852974c734842c
[NUI] Add New NUI DnD Class and Demo

DragAndDrop Class supports the drag and drop functionality in the single window and sub-windows in an application.
Also It supports the application to application drag and drop functionality for multi-window feature.

Class
   Tizen.NUI.DragAndDrop

Dependency
   dali-adaptor : https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-adaptor/+/263704/
   dali-csharp-binder : https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-csharp-binder/+/268209/

API Changes
 public bool StartDragAndDrop(View sourceView, View shadowView, string data)
 - Start drag and drop to send the data form sourceView to targetView.
 - sourceView means the NUI View to move.
 - shadowView means the half-transparent NUI ImageView of drag object, user should be add this image.
 - data means the data to send to the target view.
 public bool AddListener(View targetView, DragAndDropEventHandler callback)
 - Add listener to receive the drag event.
 - targetView means the NUI View to receive drag event
 - callback will be called when the drag event is emitted.
 public enum DragType
 public struct DragEvent
 public delegate void DragAndDropEventHandler(DragEvent dragEvent)
16 files changed:
src/Tizen.NUI/src/internal/Interop/Interop.DragAndDrop.cs [new file with mode: 0755]
src/Tizen.NUI/src/public/DragAndDrop/DragAndDrop.cs [new file with mode: 0755]
src/Tizen.NUI/src/public/DragAndDrop/DragEvent.cs [new file with mode: 0755]
test/NUIDnDSource/NUIDnDSource.cs [new file with mode: 0644]
test/NUIDnDSource/NUIDnDSource.csproj [new file with mode: 0644]
test/NUIDnDSource/res/dragsource.png [new file with mode: 0644]
test/NUIDnDSource/res/droptarget.png [new file with mode: 0644]
test/NUIDnDSource/shared/res/NUIDnDSource.png [new file with mode: 0644]
test/NUIDnDSource/shared/res/dragsource.png [new file with mode: 0644]
test/NUIDnDSource/shared/res/droptarget.png [new file with mode: 0644]
test/NUIDnDSource/tizen-manifest.xml [new file with mode: 0644]
test/NUIDnDTarget/NUIDnDTarget.cs [new file with mode: 0644]
test/NUIDnDTarget/NUIDnDTarget.csproj [new file with mode: 0644]
test/NUIDnDTarget/res/droptarget.png [new file with mode: 0644]
test/NUIDnDTarget/shared/res/NUIDnDTarget.png [new file with mode: 0644]
test/NUIDnDTarget/tizen-manifest.xml [new file with mode: 0644]