X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=evalgraph.h;h=67c277b38394931f0dca903cc77741b84927ad3f;hb=aa694af0138b799c4de3e031d15c2a9be3112b6c;hp=e305abddd0a57adcec6ac92ca9ee8b96d35dd5e9;hpb=cfe2d2d1940d9f17f3197cdcc36f4233150d3db1;p=xboard.git diff --git a/evalgraph.h b/evalgraph.h index e305abd..67c277b 100644 --- a/evalgraph.h +++ b/evalgraph.h @@ -1,7 +1,7 @@ /* * evalgraph.h -- Evaluation Graph window * - * Copyright 2000,2009 Free Software Foundation, Inc. + * Copyright 2000, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * @@ -21,17 +21,13 @@ * along with this program. If not, see http://www.gnu.org/licenses/. * * *------------------------------------------------------------------------ - ** See the file ChangeLog for a revision history. + ** See the file ChangeLog for a revision history. */ #define MIN_HIST_WIDTH 4 #define MAX_HIST_WIDTH 10 -#define PEN_NONE 0 -#define PEN_BLACK 1 -#define PEN_DOTTED 2 -#define PEN_BLUEDOTTED 3 -#define PEN_BOLD 4 /* or 5 for black */ +typedef enum { PEN_NONE, PEN_BLACK, PEN_DOTTED, PEN_BLUEDOTTED, PEN_BOLDWHITE, PEN_BOLDBLACK, PEN_BACKGD } PenType; #define FILLED 1 #define OPEN 0 @@ -50,11 +46,13 @@ extern int MarginW; extern int MarginH; // calls from back-end part into front-end part -void DrawSegment( int x, int y, int *lastX, int *lastY, int penType ); +void DrawSegment( int x, int y, int *lastX, int *lastY, int p ); void DrawRectangle( int left, int top, int right, int bottom, int side, int style ); void DrawEvalText(char *buf, int cbBuf, int y); +void EvalGraphSet P(( int first, int last, int current, ChessProgramStats_Move * pvInfo )); // calls of front-end part into back-end part extern int GetMoveIndexFromPoint( int x, int y ); extern void PaintEvalGraph( void ); +extern char *MakeEvalTitle( char *title );