diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2019-03-22 19:06:40 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2019-03-22 19:06:40 (GMT) |
commit | 73a5025a7df7e06044b871150c7ecff056fd0527 (patch) | |
tree | ae32decae8f49dcd25d728a146ca587e90fba57c /generic | |
parent | daecb02120ab09351cc2f43d51a5729da25aac28 (diff) | |
download | blt-73a5025a7df7e06044b871150c7ecff056fd0527.zip blt-73a5025a7df7e06044b871150c7ecff056fd0527.tar.gz blt-73a5025a7df7e06044b871150c7ecff056fd0527.tar.bz2 |
partial backout of zero value logscale merge
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkbltGrMisc.h | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/generic/tkbltGrMisc.h b/generic/tkbltGrMisc.h index 5c16dce..ba86b75 100644 --- a/generic/tkbltGrMisc.h +++ b/generic/tkbltGrMisc.h @@ -104,26 +104,6 @@ namespace Blt { int offset; } Dashes; - typedef enum { - CLIP_OUTSIDE = 0, - CLIP_INSIDE = 1 << 0, - CLIP_P = 1 << 1, - CLIP_Q = 1 << 2 - } LineRectClipResult; - - inline LineRectClipResult operator|(LineRectClipResult a, LineRectClipResult b) { - return static_cast<LineRectClipResult>(static_cast<int>(a) | static_cast<int>(b)); - } - - inline LineRectClipResult operator&(LineRectClipResult a, LineRectClipResult b) { - return static_cast<LineRectClipResult>(static_cast<int>(a) & static_cast<int>(b)); - } - - inline LineRectClipResult & operator|=(LineRectClipResult & rhs, LineRectClipResult v) { - rhs = rhs | v; - return rhs; - } - extern char* dupstr(const char*); extern Graph* getGraphFromWindowData(Tk_Window tkwin); @@ -131,7 +111,7 @@ namespace Blt { int nScreenPts); extern int polyRectClip(Region2d *extsPtr, Point2d *inputPts, int nInputPts, Point2d *outputPts); - extern LineRectClipResult lineRectClip(Region2d *regionPtr, Point2d *p, Point2d *q); + extern int lineRectClip(Region2d *regionPtr, Point2d *p, Point2d *q); extern Point2d getProjection (int x, int y, Point2d *p, Point2d *q); }; |