summaryrefslogtreecommitdiff
path: root/pencil_internal.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-05-08 15:37:14 (GMT)
committer John Mark Bell <jmb@netsurf-browser.org>2009-05-08 15:37:14 (GMT)
commitd0593c69728e839d22fd3afad53107395d57b0b9 (patch)
tree88419d843963de33f82e754b0ad2fc8f0844992e /pencil_internal.h
parent897040bbe04a0ec02cca7826f4258c2427cc8044 (diff)
downloadlibpencil-d0593c69728e839d22fd3afad53107395d57b0b9.tar.gz
libpencil-d0593c69728e839d22fd3afad53107395d57b0b9.tar.bz2
Calculate diagram/object bounding boxes
svn path=/trunk/pencil/; revision=7443
Diffstat (limited to 'pencil_internal.h')
-rw-r--r--pencil_internal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/pencil_internal.h b/pencil_internal.h
index 21579a6..df9fca9 100644
--- a/pencil_internal.h
+++ b/pencil_internal.h
@@ -56,6 +56,13 @@ struct pencil_item {
int width, height;
const char *sprite;
+ struct {
+ int x0;
+ int y0;
+ int x1;
+ int y1;
+ } bbox;
+
struct pencil_item *parent;
struct pencil_item *next;
struct pencil_item *children;