summaryrefslogtreecommitdiff
path: root/paper.h
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2004-04-13 20:03:39 +0000
committerSimon Tatham <anakin@pobox.com>2004-04-13 20:03:39 +0000
commit569cdd4e0fa853f013c3b9f868ef0ef890005b29 (patch)
treed7cbbf389cfb1ab9fb27d5c043526b3041d96723 /paper.h
parent093ff06eca116ac8d6dfa01d5d25473f91dc2d11 (diff)
downloadhalibut-569cdd4e0fa853f013c3b9f868ef0ef890005b29.zip
halibut-569cdd4e0fa853f013c3b9f868ef0ef890005b29.tar.gz
halibut-569cdd4e0fa853f013c3b9f868ef0ef890005b29.tar.bz2
halibut-569cdd4e0fa853f013c3b9f868ef0ef890005b29.tar.xz
Implemented lines under chapter titles.
[originally from svn r4065]
Diffstat (limited to 'paper.h')
-rw-r--r--paper.h12
1 files changed, 12 insertions, 0 deletions
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.
*/