diff options
| author | MenTaLguY <mental@rydia.net> | 2007-03-04 19:05:45 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2007-03-04 19:05:45 +0000 |
| commit | ecd796365838af69682fd65d4cbc95d8263c26e3 (patch) | |
| tree | 141cd4a935eb5c1e74e800408cded0721eecc61b | |
| parent | Convert union and intersection to use NR::Maybe<NR::Rect> (diff) | |
| download | inkscape-ecd796365838af69682fd65d4cbc95d8263c26e3.tar.gz inkscape-ecd796365838af69682fd65d4cbc95d8263c26e3.zip | |
Sketch out new bbox API
(bzr r2534)
| -rw-r--r-- | src/sp-item.h | 7 |
1 files changed, 7 insertions, 0 deletions
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<NR::Rect> getBBox(BBoxType type, NR::Matrix const &transform, unsigned int dkey=0) const; sigc::connection _clip_ref_connection; sigc::connection _mask_ref_connection; |
