X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=evalgraph.h;h=9d3ae7dd3a2329b14455b5abcef0f82c76c7ddc4;hb=2987ec348b8b2cbf38ba9a6a0793652a6b238ae8;hp=85ca73fcc257c2356433f00495c9bd1075cedd87;hpb=5cd55bddca592918f38deff675d05b650a71412e;p=xboard.git diff --git a/evalgraph.h b/evalgraph.h index 85ca73f..9d3ae7d 100644 --- a/evalgraph.h +++ b/evalgraph.h @@ -1,7 +1,7 @@ /* * evalgraph.h -- Evaluation Graph window * - * Copyright 2000, 2009, 2010 Free Software Foundation, Inc. + * Copyright 2000, 2009, 2010, 2011, 2012, 2013, 2014 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,12 @@ 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 );