From dbfdafdf1820a95995c3b260e147c55125468874 Mon Sep 17 00:00:00 2001 From: Adrian Lees Date: Wed, 15 Feb 2006 23:09:55 +0000 Subject: [project @ 2006-02-15 23:09:53 by adrianl] Extend text selection, copying, saving and searching code to handle textplain contents; modified textplain code to accept other line terminators svn path=/import/netsurf/; revision=2081 --- render/box.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'render/box.h') diff --git a/render/box.h b/render/box.h index 92a48379c..3c62ecffe 100644 --- a/render/box.h +++ b/render/box.h @@ -96,6 +96,12 @@ typedef enum { BOX_INLINE_END } box_type; +struct rect { + int x0, y0; + int x1, y1; +}; + + /** Node in box tree. All dimensions are in pixels. */ struct box { /** Type of box. */ @@ -254,6 +260,7 @@ void box_unlink_and_free(struct box *box); void box_free(struct box *box); void box_free_box(struct box *box); void box_free_object_params(struct object_params *op); +void box_bounds(struct box *box, struct rect *r); void box_coords(struct box *box, int *x, int *y); struct box *box_at_point(struct box *box, int x, int y, int *box_x, int *box_y, -- cgit v1.2.3