From: mental Date: Sun, 4 Mar 2007 19:05:45 +0000 (+0000) Subject: Sketch out new bbox API X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=079e30635d3927c12153adb933db86c65a6acb39;p=inkscape.git Sketch out new bbox API --- 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;