summaryrefslogtreecommitdiff
path: root/render/layout.h
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2004-02-11 17:15:36 +0000
committerJames Bursa <james@netsurf-browser.org>2004-02-11 17:15:36 +0000
commit9aabe954c0914a998ae1ad0069e0d2ddbea4bf57 (patch)
treeb2d64031dd6b6bd8f3abac09579a3ec8d45f3e0a /render/layout.h
parentd642474df13a68c69623a81e434e86d07968a879 (diff)
downloadnetsurf-9aabe954c0914a998ae1ad0069e0d2ddbea4bf57.tar.gz
netsurf-9aabe954c0914a998ae1ad0069e0d2ddbea4bf57.tar.bz2
[project @ 2004-02-11 17:15:36 by bursa]
Work on margins etc., clean up many parts of layout code. svn path=/import/netsurf/; revision=534
Diffstat (limited to 'render/layout.h')
-rw-r--r--render/layout.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/render/layout.h b/render/layout.h
index 4a70cc7e4..ec52d745d 100644
--- a/render/layout.h
+++ b/render/layout.h
@@ -5,15 +5,18 @@
* Copyright 2003 James Bursa <bursa@users.sourceforge.net>
*/
+/** \file
+ * HTML layout (interface).
+ *
+ * The main interface to the layout code is layout_document(), which takes a
+ * normalized box tree and assigns coordinates and dimensions to the boxes, and
+ * also adds boxes to the tree (eg. when formatting lines of text).
+ */
+
#ifndef _NETSURF_RENDER_LAYOUT_H_
#define _NETSURF_RENDER_LAYOUT_H_
-/**
- * interface
- */
-
-void layout_document(struct box * box, unsigned long width);
-void layout_block(struct box * box, unsigned long width, struct box * cont,
- unsigned long cx, unsigned long cy);
+void layout_document(struct box *box, int width);
+void layout_block(struct box *box, struct box *cont, int cx, int cy);
#endif