From 9aabe954c0914a998ae1ad0069e0d2ddbea4bf57 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Wed, 11 Feb 2004 17:15:36 +0000 Subject: [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 --- render/layout.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'render/layout.h') 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 */ +/** \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 -- cgit v1.2.3