Пример #1
0
		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
		extern static int TrackDrag (IntPtr dragref, ref EventRecord eventrecord, IntPtr region);
Пример #3
0
 extern static int TrackDrag(IntPtr dragref, ref EventRecord eventrecord, IntPtr region);