summaryrefslogtreecommitdiff
path: root/render/box.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2004-08-06 22:19:13 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2004-08-06 22:19:13 +0000
commit09afabf63cc1fc15978a80351c9eb77b1e9d3974 (patch)
tree653da139cbc03455971b4946ec2f15cd9f17e496 /render/box.h
parente81a96fb535c44d1f3c7fbad1b9196a47cf19a1a (diff)
downloadnetsurf-09afabf63cc1fc15978a80351c9eb77b1e9d3974.tar.gz
netsurf-09afabf63cc1fc15978a80351c9eb77b1e9d3974.tar.bz2
[project @ 2004-08-06 22:19:12 by jmb]
Anchor support svn path=/import/netsurf/; revision=1187
Diffstat (limited to 'render/box.h')
-rw-r--r--render/box.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/render/box.h b/render/box.h
index 72303964b..80c7f6113 100644
--- a/render/box.h
+++ b/render/box.h
@@ -207,6 +207,7 @@ struct box {
struct form_control* gadget;
char *usemap; /** (Image)map to use with this object, or 0 if none */
+ char *id; /**< value of id attribute (or name for anchors) */
/** Background image for this box, or 0 if none */
struct content *background;
@@ -242,7 +243,7 @@ struct column {
void 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,
- char *href, char *title, pool box_pool);
+ char *href, char *title, char *id, pool box_pool);
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);
@@ -251,5 +252,6 @@ 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, char *id);
#endif