From 35508a1c737056c4ff821d1d5c40bea4715dffc8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 24 Sep 2020 01:26:12 +0200 Subject: Fix broken author text --- include/Text.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/Text.hpp') diff --git a/include/Text.hpp b/include/Text.hpp index d70f356..bc6f7ab 100644 --- a/include/Text.hpp +++ b/include/Text.hpp @@ -69,8 +69,11 @@ namespace QuickMedia void setLineSpacing(float lineSpacing); void setCharacterSpacing(float characterSpacing); void setEditable(bool editable); + + // Note: won't update until @draw is called + float getWidth() const; - // Warning: won't update until @draw is called + // Note: won't update until @draw is called float getHeight() const; void processEvent(const sf::Event &event); -- cgit v1.2.3