diff options
author | joye <joye> | 2014-03-19 19:19:22 (GMT) |
---|---|---|
committer | joye <joye> | 2014-03-19 19:19:22 (GMT) |
commit | aad4b63a80f7461314e733de4f559d94f09246e9 (patch) | |
tree | 6ad387660f0c5236398baba04731d5cb14b45a5f /src/bltGrMarker.h | |
parent | 35c3d137f2666241c88c83016b9e6558ba5ae47b (diff) | |
download | blt-aad4b63a80f7461314e733de4f559d94f09246e9.zip blt-aad4b63a80f7461314e733de4f559d94f09246e9.tar.gz blt-aad4b63a80f7461314e733de4f559d94f09246e9.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src/bltGrMarker.h')
-rw-r--r-- | src/bltGrMarker.h | 39 |
1 files changed, 12 insertions, 27 deletions
diff --git a/src/bltGrMarker.h b/src/bltGrMarker.h index 9f1ebd0..e065b94 100644 --- a/src/bltGrMarker.h +++ b/src/bltGrMarker.h @@ -52,39 +52,25 @@ typedef struct { MarkerPostscriptProc *postscriptProc; } MarkerClass; -struct _Marker { - GraphObj obj; /* Must be first field in marker. */ +typedef struct { + Point2d* points; + int num; +} WorldPts; +struct _Marker { + GraphObj obj; MarkerClass *classPtr; - - Tk_OptionTable optionTable; /* Configuration specifications */ + Tk_OptionTable optionTable; Tcl_HashEntry *hashPtr; - Blt_ChainLink link; - - const char* elemName; /* Element associated with marker. Let's - * you link a marker to an element. The - * marker is drawn only if the element - * is also visible. */ + const char* elemName; Axis2d axes; - Point2d *worldPts; /* Coordinate array to position - * marker */ - int nWorldPts; /* Number of points in above array */ - int drawUnder; /* If non-zero, draw the marker - * underneath any elements. This can be - * a performance penalty because the - * graph must be redraw entirely each - * time the marker is redrawn. */ - - int clipped; /* Indicates if the marker is totally - * clipped by the plotting area. */ - + int drawUnder; + int clipped; int hide; unsigned int flags; - - - int xOffset, yOffset; /* Pixel offset from graph position */ - + int xOffset; + int yOffset; int state; }; @@ -92,7 +78,6 @@ Point2d Blt_MapPoint(Point2d *pointPtr, Axis2d *axesPtr); void Blt_FreeMarker(char*); int Blt_BoxesDontOverlap(Graph* graphPtr, Region2d *extsPtr); -extern Tk_ObjCustomOption coordsObjOption; extern Tk_ObjCustomOption capStyleObjOption; extern Tk_ObjCustomOption joinStyleObjOption; extern Tk_ObjCustomOption xAxisObjOption; |