Process lines into pages as they are built

This commit is contained in:
Dave Allie
2025-12-13 20:10:16 +11:00
parent c7a32fe41f
commit 5bae283838
4 changed files with 27 additions and 28 deletions

View File

@@ -3,6 +3,7 @@
#include <EpdFontFamily.h>
#include <cstdint>
#include <functional>
#include <list>
#include <memory>
#include <string>
@@ -24,6 +25,6 @@ class ParsedText {
void setStyle(const TextBlock::BLOCK_STYLE style) { this->style = style; }
TextBlock::BLOCK_STYLE getStyle() const { return style; }
bool isEmpty() const { return words.empty(); }
std::list<std::shared_ptr<TextBlock>> layoutAndExtractLines(const GfxRenderer& renderer, int fontId,
int horizontalMargin);
void layoutAndExtractLines(const GfxRenderer& renderer, int fontId, int horizontalMargin,
const std::function<void(std::shared_ptr<TextBlock>)>& processLine);
};