diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-18 11:24:25 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-18 11:24:25 +0200 |
commit | 04da6153af1841effecc83b7e11c4e9ba1fb163a (patch) | |
tree | 070ac5837a7ba332b254d324abdd49e29edeefb3 /src/gmdocument.c | |
parent | b297951d55703c9e4272c57b07325886d4845eef (diff) |
GmDocument: Trying out a footer
Currently disabled.
Diffstat (limited to 'src/gmdocument.c')
-rw-r--r-- | src/gmdocument.c | 9 |
1 files changed, 9 insertions, 0 deletions
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) { | |||
702 | prevNonBlankType = type; | 702 | prevNonBlankType = type; |
703 | followsBlank = iFalse; | 703 | followsBlank = iFalse; |
704 | } | 704 | } |
705 | #if 0 | ||
706 | /* Footer. */ | ||
707 | if (siteBanner_GmDocument(d)) { | ||
708 | iGmRun footer = { .flags = decoration_GmRunFlag | footer_GmRunFlag }; | ||
709 | footer.visBounds = (iRect){ pos, init_I2(d->size.x, lineHeight_Text(banner_FontId) * 1) }; | ||
710 | pushBack_Array(&d->layout, &footer); | ||
711 | pos.y += footer.visBounds.size.y; | ||
712 | } | ||
713 | #endif | ||
705 | d->size.y = pos.y; | 714 | d->size.y = pos.y; |
706 | /* Go over the preformatted blocks and mark them wide if at least one run is wide. */ { | 715 | /* Go over the preformatted blocks and mark them wide if at least one run is wide. */ { |
707 | /* TODO: Store the dimensions and ranges for later access. */ | 716 | /* TODO: Store the dimensions and ranges for later access. */ |