ReactOS 0.4.16-dev-321-g63bb46a
DropZone Class Reference

#include <dropzone.h>

Collaboration diagram for DropZone:

Public Member Functions

void SetZone (RECT *rect)
 
void GetZone (RECT *rect)
 
void SetCallback (pDropZoneProc callback)
 
int DropCards (CardStack &cardstack)
 

Private Member Functions

 DropZone (int Id, RECT *rect, pDropZoneProc proc)
 

Private Attributes

int id
 
RECT zone
 
pDropZoneProc DropZoneCallback
 

Friends

class CardWindow
 

Detailed Description

Definition at line 11 of file dropzone.h.

Constructor & Destructor Documentation

◆ DropZone()

DropZone::DropZone ( int  Id,
RECT rect,
pDropZoneProc  proc 
)
inlineprivate

Definition at line 15 of file dropzone.h.

15 :
DWORD Id
pDropZoneProc DropZoneCallback
Definition: dropzone.h:36
int id
Definition: dropzone.h:34
RECT zone
Definition: dropzone.h:35
static HANDLE proc()
Definition: pdb.c:34
& rect
Definition: startmenu.cpp:1413
BOOL WINAPI CopyRect(_Out_ LPRECT, _In_ LPCRECT)

Member Function Documentation

◆ DropCards()

int DropZone::DropCards ( CardStack cardstack)
inline

Definition at line 24 of file dropzone.h.

25 {
27 return DropZoneCallback(id, cardstack);
28 else
29 return -1;
30 }

Referenced by CardRegion::OnLButtonUp().

◆ GetZone()

void DropZone::GetZone ( RECT rect)
inline

Definition at line 21 of file dropzone.h.

21{ CopyRect(rect, &zone); }

Referenced by CardWindow::GetDropZoneFromRect().

◆ SetCallback()

void DropZone::SetCallback ( pDropZoneProc  callback)
inline

Definition at line 22 of file dropzone.h.

static IPrintDialogCallback callback
Definition: printdlg.c:326

◆ SetZone()

void DropZone::SetZone ( RECT rect)
inline

Definition at line 20 of file dropzone.h.

20{ CopyRect(&zone, rect); }

Friends And Related Function Documentation

◆ CardWindow

friend class CardWindow
friend

Definition at line 13 of file dropzone.h.

Member Data Documentation

◆ DropZoneCallback

pDropZoneProc DropZone::DropZoneCallback
private

Definition at line 36 of file dropzone.h.

Referenced by DropCards(), and SetCallback().

◆ id

int DropZone::id
private

Definition at line 34 of file dropzone.h.

◆ zone

RECT DropZone::zone
private

Definition at line 35 of file dropzone.h.

Referenced by DropZone(), GetZone(), and SetZone().


The documentation for this class was generated from the following file: