summaryrefslogtreecommitdiff
path: root/render/box.h
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2002-05-04 19:57:18 +0000
committerJames Bursa <james@netsurf-browser.org>2002-05-04 19:57:18 +0000
commit50d95fdf6f598dc679c7065cd5ced044d5abcd8e (patch)
tree45fa630380afea9dad73ba4861a1a1a5e6dcbe93 /render/box.h
parent57f0b382044bbd7497b84e1d560f99d135ec1f70 (diff)
downloadnetsurf-50d95fdf6f598dc679c7065cd5ced044d5abcd8e.tar.gz
netsurf-50d95fdf6f598dc679c7065cd5ced044d5abcd8e.tar.bz2
[project @ 2002-05-04 19:57:18 by bursa]
Split box and layout modules from render.c. svn path=/import/netsurf/; revision=13
Diffstat (limited to 'render/box.h')
-rw-r--r--render/box.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/render/box.h b/render/box.h
new file mode 100644
index 000000000..cdde9b0e8
--- /dev/null
+++ b/render/box.h
@@ -0,0 +1,32 @@
+/**
+ * $Id: box.h,v 1.1 2002/05/04 19:57:18 bursa Exp $
+ */
+
+/**
+ * structures
+ */
+
+struct box {
+ enum { BOX_BLOCK, BOX_INLINE_CONTAINER, BOX_INLINE,
+ BOX_TABLE, BOX_TABLE_ROW, BOX_TABLE_CELL, BOX_FLOAT } type;
+ xmlNode * node;
+ struct css_style * style;
+ unsigned long x, y, width, height;
+ const char * text;
+ unsigned int length;
+ struct box * next;
+ struct box * children;
+ struct box * last;
+ struct box * parent;
+ font_id font;
+};
+
+/**
+ * interface
+ */
+
+struct box * xml_to_box(xmlNode * n, struct css_style * parent_style, struct css_stylesheet * stylesheet,
+ struct css_selector ** selector, unsigned int depth,
+ struct box * parent, struct box * inline_container);
+void box_dump(struct box * box, unsigned int depth);
+