summaryrefslogtreecommitdiffstats
path: root/src/libnr/nr-rect.h
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2008-10-11 15:16:23 +0000
committerTed Gould <ted@canonical.com>2008-10-11 15:16:23 +0000
commit2f5eb047d9e05be5e68549ef6b75070d2faa7d2f (patch)
treeca2e94164b6d7aaebfc17196ca46bfc825a7665a /src/libnr/nr-rect.h
parentMerge from trunk. (diff)
downloadinkscape-2f5eb047d9e05be5e68549ef6b75070d2faa7d2f.tar.gz
inkscape-2f5eb047d9e05be5e68549ef6b75070d2faa7d2f.zip
Merging from trunk
(bzr r6884)
Diffstat (limited to 'src/libnr/nr-rect.h')
-rw-r--r--src/libnr/nr-rect.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libnr/nr-rect.h b/src/libnr/nr-rect.h
index 7d130fd18..83f780efd 100644
--- a/src/libnr/nr-rect.h
+++ b/src/libnr/nr-rect.h
@@ -25,6 +25,7 @@
#include <boost/optional.hpp>
#include <libnr/nr-point-matrix-ops.h>
#include <libnr/nr-forward.h>
+#include <2geom/rect.h>
namespace NR {
@@ -243,6 +244,9 @@ struct NRRect {
explicit NRRect(boost::optional<NR::Rect> const &rect);
operator boost::optional<NR::Rect>() const { return upgrade(); }
boost::optional<NR::Rect> upgrade() const;
+ explicit NRRect(boost::optional<Geom::Rect> const &rect);
+ operator boost::optional<Geom::Rect>() const { return upgrade_2geom(); }
+ boost::optional<Geom::Rect> upgrade_2geom() const;
NR::Coord x0, y0, x1, y1;
};