ReactOS  0.4.14-dev-323-g6fe6a88
dropzone.h
Go to the documentation of this file.
1 #ifndef DROPZONE_INCLUDED
2 #define DROPZONE_INCLUDED
3 
4 //
5 // define a drop-zone, which can be used to over-ride
6 // drop-behaviour for any card stacks which fall under it
7 //
8 
9 class CardStack;
10 
11 class DropZone
12 {
13  friend class CardWindow;
14 
17 
18 public:
19 
20  void SetZone(RECT *rect) { CopyRect(&zone, rect); }
21  void GetZone(RECT *rect) { CopyRect(rect, &zone); }
23 
24  int DropCards(CardStack &cardstack)
25  {
27  return DropZoneCallback(id, cardstack);
28  else
29  return -1;
30  }
31 
32 private:
33 
34  int id;
37 };
38 
39 #endif /* DROPZONE_INCLUDED */
int(CARDLIBPROC * pDropZoneProc)(int dzid, const CardStack &cards)
Definition: cardlib.h:92
static HANDLE proc()
Definition: pdb.c:32
pDropZoneProc DropZoneCallback
Definition: dropzone.h:36
void SetZone(RECT *rect)
Definition: dropzone.h:20
& rect
Definition: startmenu.cpp:1413
DWORD Id
DropZone(int Id, RECT *rect, pDropZoneProc proc)
Definition: dropzone.h:15
MmuTrapHandler callback[0x30]
Definition: mmuobject.c:44
int id
Definition: dropzone.h:34
void GetZone(RECT *rect)
Definition: dropzone.h:21
int DropCards(CardStack &cardstack)
Definition: dropzone.h:24
BOOL WINAPI CopyRect(_Out_ LPRECT, _In_ LPCRECT)
GLenum GLuint id
Definition: glext.h:5579
RECT zone
Definition: dropzone.h:35
void SetCallback(pDropZoneProc callback)
Definition: dropzone.h:22