diff options
Diffstat (limited to 'Libraries/LibHTML/Layout/LineBox.h')
-rw-r--r-- | Libraries/LibHTML/Layout/LineBox.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Libraries/LibHTML/Layout/LineBox.h b/Libraries/LibHTML/Layout/LineBox.h new file mode 100644 index 0000000000..a6cdf2810c --- /dev/null +++ b/Libraries/LibHTML/Layout/LineBox.h @@ -0,0 +1,20 @@ +#pragma once + +#include <AK/Vector.h> +#include <LibHTML/Layout/LineBoxFragment.h> + +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<LineBoxFragment>& fragments() const { return m_fragments; } + Vector<LineBoxFragment>& fragments() { return m_fragments; } + +private: + Vector<LineBoxFragment> m_fragments; + int m_width { 0 }; +}; |