Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygencardlib.hGo to the documentation of this file.00001 #ifndef CARDLIB_INCLUDED 00002 #define CARDLIB_INCLUDED 00003 00004 #define CARDLIBPROC __stdcall 00005 00006 void CardBlt(HDC hdc, int x, int y, int nCardNum); 00007 void CardLib_SetZoomSpeed(int); 00008 00009 #define CS_EI_NONE 0 00010 #define CS_EI_SUNK 1 00011 #define CS_EI_CIRC 67 00012 #define CS_EI_X 66 00013 00014 #define CS_DEFXOFF 12 //x-offset 00015 #define CS_DEFYOFF 18 //y-offset 00016 #define CS_NO3D 1 //default 3d counts (recommened) 00017 #define CS_DEF3D 10 //(best for decks) 00018 00019 #define CS_DRAG_NONE 0 00020 #define CS_DRAG_TOP 1 00021 #define CS_DRAG_ALL 2 00022 #define CS_DRAG_CALLBACK 3 00023 00024 #define CS_DROP_NONE 0 00025 #define CS_DROP_ALL 1 00026 #define CS_DROP_CALLBACK 2 00027 00028 #define CS_XJUST_NONE 0 00029 #define CS_XJUST_RIGHT 1 00030 #define CS_XJUST_CENTER 2 00031 00032 #define CS_YJUST_NONE 0 00033 #define CS_YJUST_BOTTOM 1 00034 #define CS_YJUST_CENTER 2 00035 00036 #define CB_STATIC 0 //static text label 00037 #define CB_PUSHBUTTON 1 //normal button 00038 #define CB_ALIGN_CENTER 0 //centered is default 00039 #define CB_ALIGN_LEFT 2 00040 #define CB_ALIGN_RIGHT 4 00041 00042 #define CS_FACE_UP 0 //all cards face-up 00043 #define CS_FACE_DOWN 1 //all cards face-down 00044 #define CS_FACE_DOWNUP 2 //bottom X cards down, top-most face-up 00045 #define CS_FACE_UPDOWN 3 //bottom X cards up, top-most face-down 00046 #define CS_FACE_ANY 4 //cards can be any orientation 00047 00048 #define CS_DROPZONE_NODROP -1 00049 00050 // 00051 // Define the standard card-back indices 00052 // 00053 #define ecbCROSSHATCH 53 00054 #define ecbWEAVE1 54 00055 #define ecbWEAVE2 55 00056 #define ecbROBOT 56 00057 #define ecbFLOWERS 57 00058 #define ecbVINE1 58 00059 #define ecbVINE2 59 00060 #define ecbFISH1 60 00061 #define ecbFISH2 61 00062 #define ecbSHELLS 62 00063 #define ecbCASTLE 63 00064 #define ecbISLAND 64 00065 #define ecbCARDHAND 65 00066 #define ecbUNUSED 66 00067 #define ecbTHE_X 67 00068 #define ecbTHE_O 68 00069 00070 00071 class CardRegion; 00072 class CardButton; 00073 class CardStack; 00074 class CardWindow; 00075 00076 typedef bool (CARDLIBPROC *pCanDragProc) (CardRegion &stackobj, int iNumDragging); 00077 typedef bool (CARDLIBPROC *pCanDropProc) (CardRegion &stackobj, CardStack &cards); 00078 typedef void (CARDLIBPROC *pClickProc) (CardRegion &stackobj, int iNumCards); 00079 typedef void (CARDLIBPROC *pAddProc) (CardRegion &stackobj, const CardStack &cards); 00080 typedef void (CARDLIBPROC *pRemoveProc) (CardRegion &stackobj, int iNumRemoved); 00081 00082 typedef void (CARDLIBPROC *pResizeWndProc) (int width, int height); 00083 typedef int (CARDLIBPROC *pDropZoneProc) (int dzid, const CardStack &cards); 00084 00085 typedef void (CARDLIBPROC *pButtonProc) (CardButton &pButton); 00086 00087 00088 #include "card.h" 00089 #include "cardbutton.h" 00090 #include "cardstack.h" 00091 #include "cardregion.h" 00092 #include "cardcount.h" 00093 #include "cardwindow.h" 00094 00095 #ifdef _DEBUG 00096 typedef bool (CARDLIBPROC *pDebugClickProc) (CardRegion &stackobj); 00097 void CardLib_SetStackClickProc(pDebugClickProc proc); 00098 #endif 00099 00100 00101 #endif Generated on Thu Feb 9 04:59:25 2012 for ReactOS by
1.6.3
|