From 04da6153af1841effecc83b7e11c4e9ba1fb163a Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Thu, 18 Mar 2021 11:24:25 +0200 Subject: GmDocument: Trying out a footer Currently disabled. --- src/gmdocument.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/gmdocument.c') diff --git a/src/gmdocument.c b/src/gmdocument.c index 2c01290e..c3f0005c 100644 --- a/src/gmdocument.c +++ b/src/gmdocument.c @@ -702,6 +702,15 @@ static void doLayout_GmDocument_(iGmDocument *d) { prevNonBlankType = type; followsBlank = iFalse; } +#if 0 + /* Footer. */ + if (siteBanner_GmDocument(d)) { + iGmRun footer = { .flags = decoration_GmRunFlag | footer_GmRunFlag }; + footer.visBounds = (iRect){ pos, init_I2(d->size.x, lineHeight_Text(banner_FontId) * 1) }; + pushBack_Array(&d->layout, &footer); + pos.y += footer.visBounds.size.y; + } +#endif d->size.y = pos.y; /* Go over the preformatted blocks and mark them wide if at least one run is wide. */ { /* TODO: Store the dimensions and ranges for later access. */ -- cgit v1.2.3