Exemplo n.º 1
0
 internal static extern void elm_drop_target_add(IntPtr obj,
                                                 DragDropContentType type,
                                                 DragStateCallback enterCallback,
                                                 IntPtr enterData,
                                                 DragStateCallback leaveCallback,
                                                 IntPtr leaveData,
                                                 DragPositionCallback positionCallback,
                                                 IntPtr positionData,
                                                 DropCallback dropcallback,
                                                 IntPtr dropData);
Exemplo n.º 2
0
 internal static extern void elm_drag_start(IntPtr obj,
                                            DragDropContentType contentType,
                                            IntPtr data,
                                            DragDropActionType actionType,
                                            DragIconCreateCallback iconCreateCallback,
                                            IntPtr iconCreateData,
                                            DragPositionCallback dragPositionCallback,
                                            IntPtr dragPositonData,
                                            DragAcceptCallback dragAcceptCallback,
                                            IntPtr dragAcceptData,
                                            DragStateCallback dragStateCallback,
                                            IntPtr dragStateData);
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
        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);
        }