X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=draw.h;fp=draw.h;h=233c85e4fd241712e44fc6820649b1e9918d7873;hb=ef69c417ccc6498ba0c13591b4deaa34a9a76ba1;hp=0000000000000000000000000000000000000000;hpb=f2d58fb3e53e223517fbaae950f29aa09a4fa9a5;p=xboard.git diff --git a/draw.h b/draw.h new file mode 100644 index 0000000..233c85e --- /dev/null +++ b/draw.h @@ -0,0 +1,73 @@ +/* + * draw.h -- declarations shared between xboard.c and draw.c + * + * Copyright 1991 by Digital Equipment Corporation, Maynard, + * Massachusetts. + * + * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, + * 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. + * + * The following terms apply to Digital Equipment Corporation's copyright + * interest in XBoard: + * ------------------------------------------------------------------------ + * All Rights Reserved + * + * Permission to use, copy, modify, and distribute this software and its + * documentation for any purpose and without fee is hereby granted, + * provided that the above copyright notice appear in all copies and that + * both that copyright notice and this permission notice appear in + * supporting documentation, and that the name of Digital not be + * used in advertising or publicity pertaining to distribution of the + * software without specific, written prior permission. + * + * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING + * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL + * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR + * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, + * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, + * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS + * SOFTWARE. + * ------------------------------------------------------------------------ + * + * The following terms apply to the enhanced version of XBoard + * distributed by the Free Software Foundation: + * ------------------------------------------------------------------------ + * + * GNU XBoard is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or (at + * your option) any later version. + * + * GNU XBoard is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see http://www.gnu.org/licenses/. * + * + *------------------------------------------------------------------------ + ** See the file ChangeLog for a revision history. */ + +// defined in xboard.c +int MakeColors P((void)); +void ResizeBoardWindow P((int w, int h, int inhibit)); +void CreateGrid P((void)); +void CreateGCs P((int redo)); +void DelayedDrag P((void)); +void ReadBitmap P((Pixmap *pm, String name, unsigned char bits[], + u_int wreq, u_int hreq)); + +extern XFontStruct *coordFontStruct, *countFontStruct; +extern Font coordFontID, countFontID; +extern int xScreen; +extern Pixel lightSquareColor, darkSquareColor, whitePieceColor, blackPieceColor, + highlightSquareColor, premoveHighlightColor; + +// defined in draw.c +void CreateGCs P((int redo)); +void NewSurfaces P((void)); +int CreateAnyPieces P((void)); +void CreatePNGPieces P((void)); +void CreateGrid P((void)); +