From ecd796365838af69682fd65d4cbc95d8263c26e3 Mon Sep 17 00:00:00 2001 From: MenTaLguY Date: Sun, 4 Mar 2007 19:05:45 +0000 Subject: Sketch out new bbox API (bzr r2534) --- src/sp-item.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/sp-item.h b/src/sp-item.h index fc368d5b9..41100060e 100644 --- a/src/sp-item.h +++ b/src/sp-item.h @@ -90,6 +90,12 @@ struct SPItemCtx { /** Abstract base class for all visible shapes. */ struct SPItem : public SPObject { + enum BBoxType { + APPROXIMATE_BBOX, + GEOMETRIC_BBOX, + RENDERING_BBOX + }; + unsigned int sensitive : 1; unsigned int stop_paint: 1; double transform_center_x; @@ -143,6 +149,7 @@ struct SPItem : public SPObject { void lowerToBottom(); NR::Rect invokeBbox(NR::Matrix const &transform) const; + NR::Maybe getBBox(BBoxType type, NR::Matrix const &transform, unsigned int dkey=0) const; sigc::connection _clip_ref_connection; sigc::connection _mask_ref_connection; -- cgit v1.2.3