コード例 #1
0
ファイル: DragDrop.cs プロジェクト: BearishSun/BansheeEngine
 /// <summary>
 /// Starts a new drag and drop operations. Drag and drop operation ends automatically when the mouse button is
 /// released.
 /// </summary>
 /// <param name="data">Data to drag around. This will be passed to the element that accepts the drop operation.</param>
 public static void StartDrag(DragDropData data)
 {
     if (data is SceneObjectDragDropData)
         Internal_StartSceneObjectDrag(data.GetCachedPtr());
     else if (data is ResourceDragDropData)
         Internal_StartResourceDrag(data.GetCachedPtr());
 }
コード例 #2
0
 /// <summary>
 /// Starts a new drag and drop operations. Drag and drop operation ends automatically when the mouse button is
 /// released.
 /// </summary>
 /// <param name="data">Data to drag around. This will be passed to the element that accepts the drop operation.</param>
 public static void StartDrag(DragDropData data)
 {
     if (data is SceneObjectDragDropData)
     {
         Internal_StartSceneObjectDrag(data.GetCachedPtr());
     }
     else if (data is ResourceDragDropData)
     {
         Internal_StartResourceDrag(data.GetCachedPtr());
     }
 }
コード例 #3
0
 private static extern void Internal_CreateInstance(DragDropData instance);
コード例 #4
0
ファイル: DragDrop.cs プロジェクト: BearishSun/BansheeEngine
 private static extern void Internal_CreateInstance(DragDropData instance);