+ //! Constructs a Rect from 2 Point objects
+ /*!
+ @param location The point defining the top left corner of the rectangle
+ @param size The width and height of the rectangle
+ */
+ 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) { }