X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fselection.h;h=d8427108f344eece726a6846e5e5b66f2ded30ed;hb=17680991ff44a340869f04d7ce00a6889337ed7f;hp=1dcaa53ff3d836082dc63d253d128dcd6171b524;hpb=f4f507228b30d55fd7e39386ba513f3a0a54bd5d;p=inkscape.git diff --git a/src/selection.h b/src/selection.h index 1dcaa53ff..d8427108f 100644 --- a/src/selection.h +++ b/src/selection.h @@ -28,6 +28,7 @@ #include "gc-anchored.h" #include "gc-soft-ptr.h" #include "util/list.h" +#include "sp-item.h" class SPItem; @@ -71,7 +72,7 @@ public: ~Selection(); /** - * @brief Returns the desktop the seoection is bound to + * @brief Returns the desktop the selection is bound to * * @return the desktop the selection is bound to */ @@ -231,28 +232,28 @@ public: guint numberOfParents(); /** @brief Returns the bounding rectangle of the selection */ - NRRect *bounds(NRRect *dest) const; + NRRect *bounds(NRRect *dest, SPItem::BBoxType type = SPItem::APPROXIMATE_BBOX) const; /** @brief Returns the bounding rectangle of the selection */ - ::NR::Rect bounds() const; + NR::Maybe bounds(SPItem::BBoxType type = SPItem::APPROXIMATE_BBOX) const; /** * @brief Returns the bounding rectangle of the selection * * \todo how is this different from bounds()? */ - NRRect *boundsInDocument(NRRect *dest) const; + NRRect *boundsInDocument(NRRect *dest, SPItem::BBoxType type = SPItem::APPROXIMATE_BBOX) const; /** * @brief Returns the bounding rectangle of the selection * * \todo how is this different from bounds()? */ - ::NR::Rect boundsInDocument() const; + NR::Maybe boundsInDocument(SPItem::BBoxType type = SPItem::APPROXIMATE_BBOX) const; /** * @brief Returns the rotation/skew center of the selection */ - ::NR::Point center() const; + NR::Maybe center() const; /** * @brief Gets the selection's snap points. @@ -266,18 +267,6 @@ public: */ std::vector getSnapPointsConvexHull() const; - /** - * @return A vector containing the top-left and bottom-right - * corners of each selected object's bounding box. - */ - std::vector getBBoxPoints() const; - - /** - * @return A vector containing the 2 (top-left and bottom-right) - * corners of the selection bounding box. - */ - std::vector getBBoxPointsOuter() const; - /** * @brief Connects a slot to be notified of selection changes *