Utility/SimpleTextDrawer: Add Clear method

Former-commit-id: 10f7c36edb7f0d1705709b070e78792708cdbebf
This commit is contained in:
Lynix
2016-01-06 19:05:26 +01:00
parent f273c0229c
commit b9ec4a4fc4
2 changed files with 22 additions and 8 deletions

View File

@@ -26,6 +26,8 @@ namespace Nz
void AppendText(const String& str);
void Clear();
const Rectui& GetBounds() const override;
unsigned int GetCharacterSize() const;
const Color& GetColor() const;
@@ -50,6 +52,7 @@ namespace Nz
static SimpleTextDrawer Draw(Font* font, const String& str, unsigned int characterSize, UInt32 style = TextStyle_Regular, const Color& color = Color::White);
private:
void ClearGlyphs() const;
void ConnectFontSlots();
void DisconnectFontSlots();
void GenerateGlyphs(const String& text) const;