summaryrefslogtreecommitdiffstats
path: root/src/selection.h
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2007-04-08 21:07:29 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2007-04-08 21:07:29 +0000
commit8417209743e184c46d7ec845928bfbee5f8d8d77 (patch)
tree9c9e0738f2cc3c3d7b4c8007dafd5e3f98750a8f /src/selection.h
parentCorrected jumping and alignment of coordinates in status. (diff)
downloadinkscape-8417209743e184c46d7ec845928bfbee5f8d8d77.tar.gz
inkscape-8417209743e184c46d7ec845928bfbee5f8d8d77.zip
Changes to the selector tool, e.g. option to choose either APPROXIMATE_BBOX or GEOMETRIC_BBOX
(bzr r2833)
Diffstat (limited to 'src/selection.h')
-rw-r--r--src/selection.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/selection.h b/src/selection.h
index 34de82c7c..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;
@@ -231,23 +232,23 @@ 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::Maybe<NR::Rect> bounds() const;
+ NR::Maybe<NR::Rect> 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::Maybe<NR::Rect> boundsInDocument() const;
+ NR::Maybe<NR::Rect> boundsInDocument(SPItem::BBoxType type = SPItem::APPROXIMATE_BBOX) const;
/**
* @brief Returns the rotation/skew center of the selection