From 079e30635d3927c12153adb933db86c65a6acb39 Mon Sep 17 00:00:00 2001 From: mental Date: Sun, 4 Mar 2007 19:05:45 +0000 Subject: [PATCH] Sketch out new bbox API --- src/sp-item.h | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- 2.30.2