diff options
author | James Bursa <james@netsurf-browser.org> | 2005-03-26 01:12:27 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2005-03-26 01:12:27 +0000 |
commit | 64d8f9d5edca090ff3102da72d724905dc1676fd (patch) | |
tree | d5d3e21afa2fe5264bf35e9aeda8974960eef535 /render/box.h | |
parent | 9b8a94cc39d4ed7dd40e3eb9694f704d9330f708 (diff) | |
download | netsurf-64d8f9d5edca090ff3102da72d724905dc1676fd.tar.gz netsurf-64d8f9d5edca090ff3102da72d724905dc1676fd.tar.bz2 |
[project @ 2005-03-26 01:12:27 by bursa]
Split box.c into box_construct.c, box_normalise.c, and box.c.
svn path=/import/netsurf/; revision=1583
Diffstat (limited to 'render/box.h')
-rw-r--r-- | render/box.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/render/box.h b/render/box.h index 2bcc519f8..28a1f2b4e 100644 --- a/render/box.h +++ b/render/box.h @@ -2,12 +2,12 @@ * This file is part of NetSurf, http://netsurf.sourceforge.net/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license - * Copyright 2004 James Bursa <bursa@users.sourceforge.net> + * Copyright 2005 James Bursa <bursa@users.sourceforge.net> * Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net> */ /** \file - * Conversion of XML tree to box tree (interface). + * Box tree construction and manipulation (interface). * * This stage of rendering converts a tree of xmlNodes (produced by libxml2) * to a tree of struct box. The box tree represents the structure of the @@ -231,20 +231,21 @@ struct column { #define UNKNOWN_MAX_WIDTH INT_MAX -bool xml_to_box(xmlNode *n, struct content *c); -void box_dump(struct box *box, unsigned int depth); struct box * box_create(struct css_style *style, const char *href, const char *title, const char *id, pool box_pool); -void box_add_child(struct box * parent, struct box *child); +void box_add_child(struct box *parent, struct box *child); void box_insert_sibling(struct box *box, struct box *new_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_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, struct content **content); struct box *box_object_at_point(struct content *c, int x, int y); struct box *box_find_by_id(struct box *box, const char *id); +void box_dump(struct box *box, unsigned int depth); bool box_vscrollbar_present(const struct box *box); bool box_hscrollbar_present(const struct box *box); @@ -256,4 +257,8 @@ void box_scrollbar_dimensions(const struct box *box, int *well_width, int *bar_left, int *bar_width); +bool xml_to_box(xmlNode *n, struct content *c); + +bool box_normalise_block(struct box *block, pool box_pool); + #endif |