Files
crosspoint-reader/lib/Epub/Epub/blocks/Block.h
2025-12-08 22:06:09 +11:00

16 lines
352 B
C++

#pragma once
class GfxRenderer;
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;
virtual BlockType getType() = 0;
virtual bool isEmpty() = 0;
virtual void finish() {}
};