ReactOS 0.4.16-dev-306-g647d351
cards.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX_CARD_BITMAPS   68
 
#define ectFACES   0
 
#define ectBACKS   1
 
#define ectINVERTED   2
 
#define ectEMPTY   3
 
#define ectERASE   4
 
#define ectEMPTYNOBG   5
 
#define ectREDX   6
 
#define ectGREENO   7
 
#define ectSAVEEDGESMASK   0x80000000
 
#define ISREDCARD(x)   (x >= 13 && x <= 39)
 

Functions

BOOL WINAPI cdtInit (int *width, int *height)
 
BOOL WINAPI cdtDraw (HDC hdc, int x, int y, int card, int type, DWORD color)
 
BOOL WINAPI cdtDrawExt (HDC hdc, int x, int y, int dx, int dy, int card, int suit, DWORD color)
 
BOOL WINAPI cdtAnimate (HDC hdc, int cardback, int x, int y, int frame)
 
void WINAPI cdtTerm (void)
 

Macro Definition Documentation

◆ ectBACKS

#define ectBACKS   1

Definition at line 34 of file cards.h.

◆ ectEMPTY

#define ectEMPTY   3

Definition at line 36 of file cards.h.

◆ ectEMPTYNOBG

#define ectEMPTYNOBG   5

Definition at line 38 of file cards.h.

◆ ectERASE

#define ectERASE   4

Definition at line 37 of file cards.h.

◆ ectFACES

#define ectFACES   0

Definition at line 33 of file cards.h.

◆ ectGREENO

#define ectGREENO   7

Definition at line 40 of file cards.h.

◆ ectINVERTED

#define ectINVERTED   2

Definition at line 35 of file cards.h.

◆ ectREDX

#define ectREDX   6

Definition at line 39 of file cards.h.

◆ ectSAVEEDGESMASK

#define ectSAVEEDGESMASK   0x80000000

Definition at line 41 of file cards.h.

◆ ISREDCARD

#define ISREDCARD (   x)    (x >= 13 && x <= 39)

Definition at line 53 of file cards.h.

◆ MAX_CARD_BITMAPS

#define MAX_CARD_BITMAPS   68

Definition at line 31 of file cards.h.

Function Documentation

◆ cdtAnimate()

BOOL WINAPI cdtAnimate ( HDC  hdc,
int  cardback,
int  x,
int  y,
int  frame 
)

Definition at line 238 of file cards.c.

239{
243 UNREFERENCED_PARAMETER(cardback);
245 return TRUE;
246}
#define TRUE
Definition: types.h:120
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
HDC hdc
Definition: main.c:9
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:325

◆ cdtDraw()

BOOL WINAPI cdtDraw ( HDC  hdc,
int  x,
int  y,
int  card,
int  type,
DWORD  color 
)

◆ cdtDrawExt()

BOOL WINAPI cdtDrawExt ( HDC  hdc,
int  x,
int  y,
int  dx,
int  dy,
int  card,
int  suit,
DWORD  color 
)

◆ cdtInit()

BOOL WINAPI cdtInit ( int width,
int height 
)

◆ cdtTerm()

void WINAPI cdtTerm ( void  )

Definition at line 62 of file cards.c.

63{
64 DWORD dwIndex;
65
66 /* Unload images */
67 for (dwIndex = 0; dwIndex < MAX_CARD_BITMAPS; dwIndex++)
69}
HBITMAP g_CardBitmaps[MAX_CARD_BITMAPS]
Definition: cards.c:28
#define MAX_CARD_BITMAPS
Definition: cards.h:31
unsigned long DWORD
Definition: ntddk_ex.h:95
pKey DeleteObject()