1 /* $Id: winXXPilot.h,v 5.0 2001/04/07 20:00:59 dik Exp $ 2 * 3 * XPilot, a multiplayer gravity war game. Copyright (C) 1991-2001 by 4 * 5 * Bj�rn Stabell <bjoern@xpilot.org> 6 * Ken Ronny Schouten <ken@xpilot.org> 7 * Bert Gijsbers <bert@xpilot.org> 8 * Dick Balaska <dick@xpilot.org> 9 * 10 * This program is free software; you can redistribute it and/or modify 11 * it under the terms of the GNU General Public License as published by 12 * the Free Software Foundation; either version 2 of the License, or 13 * (at your option) any later version. 14 * 15 * This program is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU General Public License for more details. 19 * 20 * You should have received a copy of the GNU General Public License 21 * along with this program; if not, write to the Free Software 22 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 23 */ 24 25 /***************************************************************************\ 26 * winXPilot.h - X11 to Windoze converter * 27 * * 28 * This file contains the private winX definitions for the XPilot client * 29 * * 30 * $Id: winXXPilot.h,v 5.0 2001/04/07 20:00:59 dik Exp $ * 31 \***************************************************************************/ 32 #ifndef _WINXPILOT_H_ 33 #define _WINXPILOT_H_ 34 35 #ifdef _WINDOWS 36 37 #ifndef _INC_WINDOWS 38 #include <windows.h> 39 #endif 40 41 #include "../../common/NT/winX.h" 42 43 #ifdef __cplusplus 44 extern "C" { 45 #endif 46 47 48 extern int WinXGetWindowRectangle(Window window, XRectangle* rect); 49 50 #ifdef _DEBUG 51 #define WinXCreateWinDC(__w) \ 52 WinXCreateWinDC_(__w, __FILE__, __LINE__) 53 54 extern WinXCreateWinDC_(Window w, const char* file, const int line); 55 #else 56 #define WinXCreateWinDC(__w) \ 57 WinXCreateWinDC_(__w) 58 extern WinXCreateWinDC_(Window w); 59 #endif 60 61 extern void WinXExit(); 62 extern void WinXFlush(Window w); 63 extern void WinXSetEventMask(Window w, long mask); 64 /* extern void WinXSetBackColor(GC gc, unsigned long background); */ 65 /* extern void WinXClearWindow(GC gc); */ 66 /* extern void WinXGetDrawRect(RECT* rect); */ 67 extern void WinXBltPixToWin(Pixmap src, Window dest, 68 int src_x, int src_y, unsigned int width, unsigned int height, 69 int dest_x, int dest_y); 70 extern void WinXBltWinToPix(Window src, Pixmap dest, 71 int src_x, int src_y, unsigned int width, unsigned int height, 72 int dest_x, int dest_y); 73 extern Pixmap WinXGetRadarBitmap(int width, int height); 74 /* extern WinXSetEvent(Window w, int message, (void func)()); 75 extern void WinXPaintPlayers(); */ 76 77 /* used for creating item bitmaps */ 78 extern Pixmap WinXCreateBitmapFromData(Display* dpy, Drawable d, char* data, 79 unsigned int width, unsigned int height, int color); 80 81 extern Window WinXGetParent(Window w); 82 extern BOOL WinXGetWindowRect(Window w, RECT* rect); 83 extern BOOL WinXGetWindowPlacement(Window w, WINDOWPLACEMENT* wp); 84 85 extern void WinXResize(void); 86 87 #ifdef _XPDOC 88 extern void Resize(Window w, int width, int height); 89 extern BOOL ChangePalette(HWND hwnd); 90 extern Window top; 91 #endif 92 extern BOOL drawPending; // try to throttle the deadly frame backup syndrome 93 94 // Windows config options 95 /* extern int iScaleFactor; */ 96 extern int RadarDivisor; 97 extern int ThreadedDraw; 98 99 100 // temp until the new WinMotd (using the motd api) comes along 101 extern int Startup_server_motd(void); 102 103 #ifdef __cplusplus 104 }; 105 #endif 106 107 108 #endif /* _WINDOWS */ 109 #endif /* _WINXPILOT_H_ */ 110