1 #ifndef DROPZONE_INCLUDED
2 #define DROPZONE_INCLUDED
5 // define a drop-zone, which can be used to over-ride
6 // drop-behaviour for any card stacks which fall under it
13 friend class CardWindow
;
15 DropZone(int Id
, RECT
*rect
, pDropZoneProc proc
) :
16 id(Id
), DropZoneCallback(proc
) { CopyRect(&zone
, rect
); }
20 void SetZone(RECT
*rect
) { CopyRect(&zone
, rect
); }
21 void GetZone(RECT
*rect
) { CopyRect(rect
, &zone
); }
22 void SetCallback(pDropZoneProc callback
) { DropZoneCallback
= callback
; }
24 int DropCards(CardStack
&cardstack
)
27 return DropZoneCallback(id
, cardstack
);
36 pDropZoneProc DropZoneCallback
;