From 569cdd4e0fa853f013c3b9f868ef0ef890005b29 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 13 Apr 2004 20:03:39 +0000 Subject: Implemented lines under chapter titles. [originally from svn r4065] --- paper.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'paper.h') diff --git a/paper.h b/paper.h index 8478e25..1f01f8b 100644 --- a/paper.h +++ b/paper.h @@ -19,6 +19,7 @@ typedef struct subfont_map_entry_Tag subfont_map_entry; typedef struct text_fragment_Tag text_fragment; typedef struct xref_Tag xref; typedef struct xref_dest_Tag xref_dest; +typedef struct rect_Tag rect; /* * This data structure represents the overall document, in the form @@ -227,6 +228,12 @@ struct page_data_Tag { xref *first_xref; xref *last_xref; /* + * Rectangles to be drawn. (These are currently only used for + * underlining chapter titles and drawing horizontal rules.) + */ + rect *first_rect; + rect *last_rect; + /* * This spare pointer field is for use by the client backends. */ void *spare; @@ -252,6 +259,11 @@ struct xref_Tag { xref_dest dest; }; +struct rect_Tag { + rect *next; + int x, y, w, h; +}; + /* * Functions and data exported from psdata.c. */ -- cgit v1.1