#define opdraggingmoveinclude


#ifndef opinternalinclude

	#include "opinternal.h"

#endif

#define draggingscrollrate 2 /*max scroll rate is 30 lines per second*/

typedef struct tyhotspot {
	
	Point pt; /*the mouse point that determined the rect*/
	
	short lnum; /*the line number that htarget is displayed on*/
	
	hdlheadrecord htarget; /*where the deposit takes place*/
	
	hdlheadrecord hsource; /*the node that's getting moved*/
	
	tydirection dir; /*deposit to the right or down*/
	
	boolean fldisplayed: 1; /*is the hot spot showing?*/
	
	Handle sourcewindowhandle, destwindowhandle;
	} tyhotspot;


extern void operasehotspot (tyhotspot *hotspot);

extern void opscrollfordrag (tyhotspot *hotspot, tydirection scrolldir);

extern boolean opisdraggingmove (Point, unsigned long);

extern void opdraggingmove (Point, hdlheadrecord);

extern boolean opmovetohotspot (tyhotspot *hotspot);

extern void opgetwindowhandle (Point pt, Handle *windowhandle);

extern void opsetwindowhandlecontext (Handle windowhandle);

