diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2012-01-04 18:17:44 +0000 |
|---|---|---|
| committer | Johan Engelen <goejendaagh@zonnet.nl> | 2012-01-04 18:17:44 +0000 |
| commit | 71fb33927ed70360073e7063c447b5ac46ee7c60 (patch) | |
| tree | 828bcdcddf9a1a3030fc758ef5d0a1193959ce3b /src/2geom/generic-rect.h | |
| parent | More GSEAL issues (diff) | |
| download | inkscape-71fb33927ed70360073e7063c447b5ac46ee7c60.tar.gz inkscape-71fb33927ed70360073e7063c447b5ac46ee7c60.zip | |
update 2geom to r2049. fixes bugs!
(bzr r10837)
Diffstat (limited to 'src/2geom/generic-rect.h')
| -rw-r--r-- | src/2geom/generic-rect.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/2geom/generic-rect.h b/src/2geom/generic-rect.h index 719b37385..f0863f439 100644 --- a/src/2geom/generic-rect.h +++ b/src/2geom/generic-rect.h @@ -214,6 +214,22 @@ public: /// @name Modify the rectangle. /// @{ + /** @brief Set the minimum X coordinate of the rectangle. */ + void setLeft(C val) { + f[X].setMin(val); + } + /** @brief Set the maximum X coordinate of the rectangle. */ + void setRight(C val) { + f[X].setMax(val); + } + /** @brief Set the minimum Y coordinate of the rectangle. */ + void setTop(C val) { + f[Y].setMin(val); + } + /** @brief Set the maximum Y coordinate of the rectangle. */ + void setBottom(C val) { + f[Y].setMax(val); + } /** @brief Set the upper left point of the rectangle. */ void setMin(CPoint const &p) { f[X].setMin(p[X]); |
