ReactOS 0.4.16-dev-340-g0540c21
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
9class CardStack;
10
12{
13 friend class CardWindow;
14
17
18public:
19
23
24 int DropCards(CardStack &cardstack)
25 {
27 return DropZoneCallback(id, cardstack);
28 else
29 return -1;
30 }
31
32private:
33
34 int id;
37};
38
39#endif /* DROPZONE_INCLUDED */
DWORD Id
int(CARDLIBPROC * pDropZoneProc)(int dzid, const CardStack &cards)
Definition: cardlib.h:92
void GetZone(RECT *rect)
Definition: dropzone.h:21
int DropCards(CardStack &cardstack)
Definition: dropzone.h:24
DropZone(int Id, RECT *rect, pDropZoneProc proc)
Definition: dropzone.h:15
pDropZoneProc DropZoneCallback
Definition: dropzone.h:36
int id
Definition: dropzone.h:34
void SetZone(RECT *rect)
Definition: dropzone.h:20
RECT zone
Definition: dropzone.h:35
void SetCallback(pDropZoneProc callback)
Definition: dropzone.h:22
GLuint id
Definition: glext.h:5910
static IPrintDialogCallback callback
Definition: printdlg.c:326
static HANDLE proc()
Definition: pdb.c:34
& rect
Definition: startmenu.cpp:1413
BOOL WINAPI CopyRect(_Out_ LPRECT, _In_ LPCRECT)