From 5504dd59fbd8eeae136394b2cc61fa86ca2a2338 Mon Sep 17 00:00:00 2001 From: Lynix Date: Fri, 1 Sep 2017 08:58:42 +0200 Subject: [PATCH] Utility/RichTextDrawer: Update header --- include/Nazara/Utility/RichTextDrawer.hpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/include/Nazara/Utility/RichTextDrawer.hpp b/include/Nazara/Utility/RichTextDrawer.hpp index 65375c13c..b3154b740 100644 --- a/include/Nazara/Utility/RichTextDrawer.hpp +++ b/include/Nazara/Utility/RichTextDrawer.hpp @@ -42,11 +42,13 @@ namespace Nz const FontRef& GetDefaultFont() const; UInt32 GetDefaultStyle() const; - const Rectui& GetBounds() const override; - Font* GetFont(unsigned int index) const override; - unsigned int GetFontCount() const override; - const Glyph& GetGlyph(unsigned int index) const override; - unsigned int GetGlyphCount() const override; + const Recti& GetBounds() const override; + Font* GetFont(std::size_t index) const override; + std::size_t GetFontCount() const override; + const Glyph& GetGlyph(std::size_t index) const override; + std::size_t GetGlyphCount() const override; + const Line& GetLine(std::size_t index) const override; + std::size_t GetLineCount() const override; void MergeBlocks(); @@ -98,6 +100,7 @@ namespace Nz UInt32 m_defaultStyle; unsigned int m_defaultCharacterSize; std::unordered_map m_fonts; + std::vector m_blocks; mutable std::vector m_glyphs; mutable Rectf m_workingBounds; mutable Rectui m_bounds;