示例#1
0
文件: Dnd.cs 项目: nlhepler/mono
		public DragDropEffects StartDrag (IntPtr handle, object data, DragDropEffects allowed_effects) {
			IntPtr dragref = IntPtr.Zero;
			EventRecord eventrecord = new EventRecord ();

			effects = DragDropEffects.None;

			NewDrag (ref dragref);
			XplatUICarbon.GetGlobalMouse (ref eventrecord.mouse);
			StoreObjectInDrag (handle, dragref, data);

			TrackDrag (dragref, ref eventrecord, IntPtr.Zero);

			DisposeDrag (dragref);

			return effects;
		}
示例#2
0
文件: Dnd.cs 项目: nlhepler/mono
		extern static int TrackDrag (IntPtr dragref, ref EventRecord eventrecord, IntPtr region);
示例#3
0
 extern static int TrackDrag(IntPtr dragref, ref EventRecord eventrecord, IntPtr region);