#include <richtext.hpp> struct Block { // fields BlockType type { BlockType::Text }; std::shared_ptr<Text> text; std::shared_ptr<Drawable> drawable; Sizef customSize; };