Version 3.3.0.1

DragAndDropManager class

Namespace: Sirenix.Utilities.Editor
Assembly: Sirenix.Utilities.Editor
public static class DragAndDropManager

This class is due to undergo refactoring. Use the new DragAndDropUtilities instead.

Inheritance
  • System.Object
  • DragAndDropManager

Fields

AllowDrop
public static bool AllowDrop

Properties

CurrentDraggingHandle
public static DragHandle CurrentDraggingHandle { get; }
CurrentHoveringDropZone
public static DropZoneHandle CurrentHoveringDropZone { get; }
IsDragInProgress
public static bool IsDragInProgress { get; }
IsHoveringDropZone
public static bool IsHoveringDropZone { get; }

Methods

BeginDragHandle(Object, Object, DragAndDropMethods)
public static DragHandle BeginDragHandle(object key, object obj, DragAndDropMethods defaultMethod = DragAndDropMethods.Move)
Parameters
System.Object key

System.Object obj

DragAndDropMethods defaultMethod

Returns
DragHandle

BeginDragHandle(Object, Object, Boolean, DragAndDropMethods)
public static DragHandle BeginDragHandle(object key, object obj, bool isVirtualDragHandle, DragAndDropMethods defaultMethod = DragAndDropMethods.Move)
Parameters
System.Object key

System.Object obj

System.Boolean isVirtualDragHandle

DragAndDropMethods defaultMethod

Returns
DragHandle

BeginDropZone(Object, Type, Boolean)
public static DropZoneHandle BeginDropZone(object key, Type type, bool canAcceptMove)
Parameters
System.Object key

System.Type type

System.Boolean canAcceptMove

Returns
DropZoneHandle

BeginDropZone<T>(Object)
public static DropZoneHandle BeginDropZone<T>(object key)
    where T : struct
Parameters
System.Object key

Returns
DropZoneHandle

Type Parameters
T

BeginDropZone<T>(Object, Boolean)
public static DropZoneHandle BeginDropZone<T>(object key, bool canAcceptMove)
    where T : class
Parameters
System.Object key

System.Boolean canAcceptMove

Returns
DropZoneHandle

Type Parameters
T

EndDragHandle()
public static DragHandle EndDragHandle()
Returns
DragHandle

EndDropZone()
public static DropZoneHandle EndDropZone()
Returns
DropZoneHandle