ReactOS  0.4.14-dev-297-g23e575c
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  :
static HANDLE proc()
Definition: pdb.c:32
pDropZoneProc DropZoneCallback
Definition: dropzone.h:36
& rect
Definition: startmenu.cpp:1413
DWORD Id
int id
Definition: dropzone.h:34
BOOL WINAPI CopyRect(_Out_ LPRECT, _In_ LPCRECT)
RECT zone
Definition: dropzone.h:35

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  }
pDropZoneProc DropZoneCallback
Definition: dropzone.h:36

Referenced by CardRegion::OnLButtonUp().

◆ GetZone()

void DropZone::GetZone ( RECT rect)
inline

Definition at line 21 of file dropzone.h.

21 { CopyRect(rect, &zone); }
& rect
Definition: startmenu.cpp:1413
BOOL WINAPI CopyRect(_Out_ LPRECT, _In_ LPCRECT)
RECT zone
Definition: dropzone.h:35

Referenced by CardWindow::GetDropZoneFromRect().

◆ SetCallback()

void DropZone::SetCallback ( pDropZoneProc  callback)
inline

Definition at line 22 of file dropzone.h.

pDropZoneProc DropZoneCallback
Definition: dropzone.h:36
MmuTrapHandler callback[0x30]
Definition: mmuobject.c:44

◆ SetZone()

void DropZone::SetZone ( RECT rect)
inline

Definition at line 20 of file dropzone.h.

20 { CopyRect(&zone, rect); }
& rect
Definition: startmenu.cpp:1413
BOOL WINAPI CopyRect(_Out_ LPRECT, _In_ LPCRECT)
RECT zone
Definition: dropzone.h:35

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: