summaryrefslogtreecommitdiff
path: root/otk/rect.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-25 04:54:44 +0000
committerDana Jansens <danakj@orodu.net>2002-12-25 04:54:44 +0000
commitb34824a4e2ddc0247099fa1b3952de426bfde05b (patch)
tree123c1d179da9554c06f0c9c9fb8ddce544b75fba /otk/rect.hh
parentb9a2430dcccfec8d70aea68dbb1964e562216b79 (diff)
global python scripts. client motion/resizing is all done via python now
Diffstat (limited to 'otk/rect.hh')
-rw-r--r--otk/rect.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/otk/rect.hh b/otk/rect.hh
index 23ca0d12..65a679c7 100644
--- a/otk/rect.hh
+++ b/otk/rect.hh
@@ -35,6 +35,12 @@ public:
inline Rect(const Point &location, const Point &size)
: _x1(location.x()), _y1(location.y()),
_x2(size.x() + location.x() - 1), _y2(size.y() + location.y() - 1) { }
+ //! Constructs a Rect from another Rect
+ /*!
+ @param rect The rectangle from which to construct this new one
+ */
+ inline Rect(const Rect &rect)
+ : _x1(rect._x1), _y1(rect._y1), _x2(rect._x2), _y2(rect._y2) { }
//! Constructs a Rect from an XRectangle
inline explicit Rect(const XRectangle& xrect)
: _x1(xrect.x), _y1(xrect.y), _x2(xrect.width + xrect.x - 1),