Display score/depth in Eval Graph title
[xboard.git] / evalgraph.h
1 /*
2  * evalgraph.h -- Evaluation Graph window
3  *
4  * Copyright 2000, 2009, 2010, 2011 Free Software Foundation, Inc.
5  *
6  * Enhancements Copyright 2005 Alessandro Scotti
7  *
8  * ------------------------------------------------------------------------
9  *
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.
14  *
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.
19  *
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/.  *
22  *
23  *------------------------------------------------------------------------
24  ** See the file ChangeLog for a revision history.  
25  */
26
27 #define MIN_HIST_WIDTH  4
28 #define MAX_HIST_WIDTH  10
29
30 #define PEN_NONE        0
31 #define PEN_BLACK       1
32 #define PEN_DOTTED      2
33 #define PEN_BLUEDOTTED  3
34 #define PEN_BOLD        4 /* or 5 for black */
35
36 #define FILLED 1
37 #define OPEN   0
38
39 /* Module globals */
40 ChessProgramStats_Move * currPvInfo;
41 extern int currFirst;
42 extern int currLast;
43 extern int currCurrent;
44
45 extern int nWidthPB;
46 extern int nHeightPB;
47
48 extern int MarginX;
49 extern int MarginW;
50 extern int MarginH;
51
52 // calls from back-end part into front-end part
53 void DrawSegment( int x, int y, int *lastX, int *lastY, int penType );
54 void DrawRectangle( int left, int top, int right, int bottom, int side, int style );
55 void DrawEvalText(char *buf, int cbBuf, int y);
56
57 // calls of front-end part into back-end part
58 extern int GetMoveIndexFromPoint( int x, int y );
59 extern void PaintEvalGraph( void );
60 extern char *MakeEvalTitle( char *title );
61