Files
crosspoint-reader/lib/Epub/Epub/blocks/Block.h

16 lines
352 B
C
Raw Normal View History

2025-12-03 22:00:29 +11:00
#pragma once
class GfxRenderer;
2025-12-03 22:00:29 +11:00
typedef enum { TEXT_BLOCK, IMAGE_BLOCK } BlockType;
// a block of content in the html - either a paragraph or an image
class Block {
public:
virtual ~Block() = default;
virtual void layout(GfxRenderer& renderer) = 0;
2025-12-03 22:00:29 +11:00
virtual BlockType getType() = 0;
virtual bool isEmpty() = 0;
virtual void finish() {}
};