diff options
author | Alex Merry <alex.merry@cs.ox.ac.uk> | 2013-02-12 16:08:59 +0000 |
---|---|---|
committer | Alex Merry <alex.merry@cs.ox.ac.uk> | 2013-02-12 16:21:47 +0000 |
commit | 0a7223674204a6e8ee311e226b2b5ddef88803a3 (patch) | |
tree | 0c93ec903531c5b2eee065ca36e621ecd782610a /tikzit/src/common/util.h | |
parent | 904fa7d389b98a3ce7735f2979652be43f28ee2a (diff) |
Make sure edge bounds include decorations
Fixes rendering of newly-drawn edges in GTK+ version.
Diffstat (limited to 'tikzit/src/common/util.h')
-rw-r--r-- | tikzit/src/common/util.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tikzit/src/common/util.h b/tikzit/src/common/util.h index d868903..1ee4ef5 100644 --- a/tikzit/src/common/util.h +++ b/tikzit/src/common/util.h @@ -43,6 +43,14 @@ NSRect NSRectAroundPoints(NSPoint p1, NSPoint p2); /*! + @brief Compute a bounding rectangle for two given points. + @param rect the base rectangle + @param the point to ensure is included + @result A rectangle containing rect and p + */ +NSRect NSRectWithPoint(NSRect rect, NSPoint p); + +/*! @brief Compute a bounding rectangle for two given points with a given padding. @param p1 a point. @param p2 another point. |