X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=blobdiff_plain;f=evalgraph.h;h=f4b4f92097c9716de564533929fc1623826a2034;hp=85ca73fcc257c2356433f00495c9bd1075cedd87;hb=HEAD;hpb=5cd55bddca592918f38deff675d05b650a71412e diff --git a/evalgraph.h b/evalgraph.h index 85ca73f..f4b4f92 100644 --- a/evalgraph.h +++ b/evalgraph.h @@ -1,7 +1,8 @@ /* * evalgraph.h -- Evaluation Graph window * - * Copyright 2000, 2009, 2010 Free Software Foundation, Inc. + * Copyright 2000, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Free + * Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * @@ -21,17 +22,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, PEN_ANY } PenType; #define FILLED 1 #define OPEN 0 @@ -41,6 +38,7 @@ ChessProgramStats_Move * currPvInfo; extern int currFirst; extern int currLast; extern int currCurrent; +extern int differentialView; extern int nWidthPB; extern int nHeightPB; @@ -50,11 +48,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 );