2 * evalgraph.h -- Evaluation Graph window
4 * Copyright 2000, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc.
6 * Enhancements Copyright 2005 Alessandro Scotti
8 * ------------------------------------------------------------------------
10 * GNU XBoard 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 3 of the License, or (at
13 * your option) any later version.
15 * GNU XBoard is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program. If not, see http://www.gnu.org/licenses/. *
23 *------------------------------------------------------------------------
24 ** See the file ChangeLog for a revision history.
27 #define MIN_HIST_WIDTH 4
28 #define MAX_HIST_WIDTH 10
30 typedef enum { PEN_NONE, PEN_BLACK, PEN_DOTTED, PEN_BLUEDOTTED, PEN_BOLDWHITE, PEN_BOLDBLACK, PEN_BACKGD, PEN_ANY } PenType;
36 ChessProgramStats_Move * currPvInfo;
39 extern int currCurrent;
40 extern int differentialView;
49 // calls from back-end part into front-end part
50 void DrawSegment( int x, int y, int *lastX, int *lastY, int p );
51 void DrawRectangle( int left, int top, int right, int bottom, int side, int style );
52 void DrawEvalText(char *buf, int cbBuf, int y);
53 void EvalGraphSet P(( int first, int last, int current, ChessProgramStats_Move * pvInfo ));
55 // calls of front-end part into back-end part
56 extern int GetMoveIndexFromPoint( int x, int y );
57 extern void PaintEvalGraph( void );
58 extern char *MakeEvalTitle( char *title );