#pragma once #include #include class LineBox { public: LineBox() {} int width() const { return m_width; } void add_fragment(const LayoutNode& layout_node, int start, int length, int width, int height); const Vector& fragments() const { return m_fragments; } Vector& fragments() { return m_fragments; } private: Vector m_fragments; int m_width { 0 }; };