diff options
| author | MenTaLguY <mental@rydia.net> | 2007-03-11 19:57:07 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2007-03-11 19:57:07 +0000 |
| commit | 58b0e69b7336a8a06c447cf786f73df903120e53 (patch) | |
| tree | 7b4e064fee2a8813127b3c1f3ee3a68425d8990c /src/selection.h | |
| parent | Add ctrl+click to paint bucket to change clicked object's fill and stroke to ... (diff) | |
| download | inkscape-58b0e69b7336a8a06c447cf786f73df903120e53.tar.gz inkscape-58b0e69b7336a8a06c447cf786f73df903120e53.zip | |
Switch selection bounds and center to use NR::Maybe, addressing most of the
recent bbox regressions.
(bzr r2604)
Diffstat (limited to 'src/selection.h')
| -rw-r--r-- | src/selection.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/src/selection.h b/src/selection.h index bae368e81..f9368f5ee 100644 --- a/src/selection.h +++ b/src/selection.h @@ -233,7 +233,7 @@ public: /** @brief Returns the bounding rectangle of the selection */ NRRect *bounds(NRRect *dest) const; /** @brief Returns the bounding rectangle of the selection */ - ::NR::Rect bounds() const; + NR::Maybe<NR::Rect> bounds() const; /** * @brief Returns the bounding rectangle of the selection @@ -247,12 +247,12 @@ public: * * \todo how is this different from bounds()? */ - ::NR::Rect boundsInDocument() const; + NR::Maybe<NR::Rect> boundsInDocument() const; /** * @brief Returns the rotation/skew center of the selection */ - ::NR::Point center() const; + NR::Maybe<NR::Point> center() const; /** * @brief Gets the selection's snap points. @@ -267,18 +267,6 @@ public: std::vector<NR::Point> getSnapPointsConvexHull() const; /** - * @return A vector containing the top-left and bottom-right - * corners of each selected object's bounding box. - */ - std::vector<NR::Point> getBBoxPoints() const; - - /** - * @return A vector containing the 2 (bottom-left and upper-right) - * corners of the selection bounding box. - */ - std::vector<NR::Point> getBBoxPointsOuter() const; - - /** * @brief Connects a slot to be notified of selection changes * * This method connects the given slot such that it will |
