1#ifndef CARDBOARD_INCLUDED
2#define CARDBOARD_INCLUDED
5#define MAXCARDSTACKS 32
void(CARDLIBPROC * pResizeWndProc)(int width, int height)
int(CARDLIBPROC * pDropZoneProc)(int dzid, const CardStack &cards)
LRESULT CALLBACK CardWndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
bool DistributeStacks(int nIdFrom, int nNumStacks, UINT xJustify, int xSpacing, int nStartX)
HPALETTE CreateCardPalette()
void SetResizeProc(pResizeWndProc proc)
bool DeleteDropZone(int id)
CardButton * Buttons[MAXBUTTONS]
CardRegion * CardRegionFromId(int id)
void SetBackImage(HBITMAP hBitmap)
pResizeWndProc ResizeWndCallback
CardButton * CardButtonFromPoint(int x, int y)
void SetBackColor(COLORREF cr)
static LRESULT CALLBACK CardWndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
void PaintCardRgn(HDC hdc, int dx, int dy, int width, int height, int sx, int sy)
CardRegion * CreateRegion(int id, bool fVisible, int x, int y, int xoffset, int yoffset)
CardButton * CreateButton(int id, TCHAR *szText, UINT uStyle, bool fVisible, int x, int y, int width, int height)
LRESULT CALLBACK WndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
bool DeleteButton(CardButton *pButton)
CardButton * CardButtonFromId(int id)
bool RegisterDropZone(int id, RECT *rect, pDropZoneProc proc)
friend void RegisterCardWindow()
CardRegion * Regions[MAXCARDSTACKS]
DropZone * dropzone[MAXDROPZONES]
void SetBackCardIdx(UINT uBackIdx)
CardRegion * CardRegionFromPoint(int x, int y)
bool DeleteRegion(CardRegion *pRegion)
CardRegion * GetBestStack(int x, int y, int w, int h)
DropZone * GetDropZoneFromRect(RECT *rect)
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
GLint GLint GLsizei GLsizei height
GLint GLint GLsizei width
GLint GLint GLint yoffset
GLubyte GLubyte GLubyte GLubyte w
GLfloat GLfloat GLfloat GLfloat h