You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1007 B
32 lines
1007 B
using UnityEngine.EventSystems; |
|
|
|
namespace UIWidgets { |
|
/// <summary> |
|
/// IDropSupport. |
|
/// Receive drops from DragSupport<T>. |
|
/// </summary> |
|
public interface IDropSupport<T> { |
|
|
|
/// <summary> |
|
/// Determines whether this instance can receive drop with the specified data and eventData. |
|
/// </summary> |
|
/// <returns><c>true</c> if this instance can receive drop with the specified data and eventData; otherwise, <c>false</c>.</returns> |
|
/// <param name="data">Data.</param> |
|
/// <param name="eventData">Event data.</param> |
|
bool CanReceiveDrop(T data, PointerEventData eventData); |
|
|
|
/// <summary> |
|
/// Process dropped data. |
|
/// </summary> |
|
/// <param name="data">Data.</param> |
|
/// <param name="eventData">Event data.</param> |
|
void Drop(T data, PointerEventData eventData); |
|
|
|
/// <summary> |
|
/// Process canceled drop. |
|
/// </summary> |
|
/// <param name="data">Data.</param> |
|
/// <param name="eventData">Event data.</param> |
|
void DropCanceled(T data, PointerEventData eventData); |
|
} |
|
} |