public static void AddDropTarget(EvasObject obj, DragDropContentType contentType, Interop.DragStateCallback enterCallback, Interop.DragStateCallback leaveCallback, Interop.DragPositionCallback positionCallback, Interop.DropCallback dropCallback) { Interop.elm_drop_target_add(obj.RealHandle, contentType, enterCallback, IntPtr.Zero, leaveCallback, IntPtr.Zero, positionCallback, IntPtr.Zero, dropCallback, IntPtr.Zero); }
public static void StartDrag(EvasObject obj, DragDropContentType contentType, string data, DragDropActionType actionType, Interop.DragIconCreateCallback iconCallback, Interop.DragPositionCallback positionCallback, Interop.DragAcceptCallback acceptCallback, Interop.DragStateCallback statCallback) { var strData = Marshal.StringToHGlobalAnsi(data); Interop.elm_drag_start(obj.RealHandle, contentType, strData, actionType, iconCallback, IntPtr.Zero, positionCallback, IntPtr.Zero, acceptCallback, IntPtr.Zero, statCallback, IntPtr.Zero); }