ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

cards.h
Go to the documentation of this file.
00001 /*
00002  *  ReactOS Cards
00003  *
00004  *  Copyright (C) 2003  Filip Navara <xnavara@volny.org>
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00019  */
00020 
00021 #pragma once
00022 
00023 /*
00024  * 52 card faces +
00025  * 12 card backs +
00026  * X Sign +
00027  * O Sign +
00028  * FreeCard +
00029  * Joker
00030  */
00031 #define MAX_CARD_BITMAPS    68
00032 
00033 #define ectFACES            0
00034 #define ectBACKS            1
00035 #define ectINVERTED         2
00036 #define ectEMPTY            3
00037 #define ectERASE            4
00038 #define ectEMPTYNOBG        5
00039 #define ectREDX             6
00040 #define ectGREENO           7
00041 #define ectSAVEEDGESMASK    0x80000000
00042 
00043 #if defined(CARDSTYLE_DEFAULT)
00044 #   define CARD_WIDTH       72  // The original Microsoft cards are 71px wide, but ours are taken from MacSolitaireX
00045 #   define CARD_HEIGHT      96
00046 #elif defined(CARDSTYLE_BAVARIAN)
00047 #   define CARD_WIDTH       110
00048 #   define CARD_HEIGHT      198
00049 #else
00050 #   error No or unsupported cardstyle defined
00051 #endif
00052 
00053 #define ISREDCARD(x)    (x >= 13 && x <= 39)
00054 
00055 BOOL WINAPI cdtInit(int *width, int *height);
00056 BOOL WINAPI cdtDraw(HDC hdc, int x, int y, int card, int type, DWORD color);
00057 BOOL WINAPI cdtDrawExt(HDC hdc, int x, int y, int dx, int dy, int card, int suit, DWORD color);
00058 BOOL WINAPI cdtAnimate(HDC hdc, int cardback, int x, int y, int frame);
00059 void WINAPI cdtTerm(void);

Generated on Sun May 27 2012 04:22:57 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.