Code

Switch selection bounds and center to use NR::Maybe, addressing most of the
[inkscape.git] / src / selection.h
index bae368e8149461633866d43967deec77247e35a6..f9368f5eef5e5898e72460f2abf218057b84151e 100644 (file)
@@ -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.
@@ -266,18 +266,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
      *