Esempio n. 1
0
        unsafe internal static void OnStartDrag(DDContainer widget, DragEventArg arg)
        {
            DDItemInfo item_info = new DDItemInfo();

            SetItemInfo(widget, ref arg, ref item_info);
            widget.mHandleStartDrag(widget.Name, item_info, ref *((bool *)arg.result.ToPointer()));
        }
Esempio n. 2
0
        internal static void SetItemInfo(DDContainer sender, ref DragEventArg arg, ref DDItemInfo item_info)
        {
            _DDItemInfo _info = (_DDItemInfo)Util.PtrToStruct <_DDItemInfo>(arg.DDItemInfo);

            item_info.receiver_index = _info.receiver_index;
            item_info.sender_index   = _info.sender_index;

            item_info.sender = sender.Name;

            if (_info.receiver == IntPtr.Zero)
            {
                item_info.receiver = null;
            }
            item_info.receiver = Widget.GetName(_info.receiver);
        }
Esempio n. 3
0
        internal static void SetItemInfo(DDContainer sender, ref DragEventArg arg, ref DDItemInfo item_info)
        {
            _DDItemInfo _info = (_DDItemInfo)Util.PtrToStruct<_DDItemInfo>(arg.DDItemInfo);

            item_info.receiver_index = _info.receiver_index;
            item_info.sender_index = _info.sender_index;

            item_info.sender = sender.Name;

            if (_info.receiver == IntPtr.Zero)
            {
                item_info.receiver = null;
            }
            item_info.receiver = Widget.GetName(_info.receiver);
        }
Esempio n. 4
0
 internal static unsafe void OnStartDrag(DDContainer widget, DragEventArg arg)
 {
     DDItemInfo item_info = new DDItemInfo();
     SetItemInfo(widget, ref arg, ref item_info);
     widget.mHandleStartDrag(widget.Name, item_info, ref *((bool*)arg.result.ToPointer()));
 }