diff --git a/src/selection.h b/src/selection.h
index 48d1112a80815c2ff2f8770026e286531e1a16ef..6d403c426986c084be840f32dc751b237d3a16ff 100644 (file)
--- a/src/selection.h
+++ b/src/selection.h
#include "gc-managed.h"
#include "gc-finalized.h"
#include "gc-anchored.h"
+#include "gc-soft-ptr.h"
#include "util/list.h"
class SPItem;
/** @brief Returns the number of layers in which there are selected objects */
guint numberOfLayers();
+ /** @brief Returns the number of parents to which the selected objects belong */
+ guint numberOfParents();
+
/** @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::Rect bounds() const;
/**
* @brief Returns the bounding rectangle of the selection
*
* \todo how is this different from bounds()?
*/
- NR::Rect boundsInDocument() const;
+ ::NR::Rect boundsInDocument() const;
+
+ /**
+ * @brief Returns the rotation/skew center of the selection
+ */
+ ::NR::Point center() const;
/**
* @brief Gets the selection's snap points.
mutable GSList *_reprs;
mutable GSList *_items;
- SPDesktop *_desktop;
+ GC::soft_ptr<SPDesktop> _desktop;
guint _flags;
guint _idle;