diff options
Diffstat (limited to 'include/mglpp/graphics/Text.hpp')
-rw-r--r-- | include/mglpp/graphics/Text.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mglpp/graphics/Text.hpp b/include/mglpp/graphics/Text.hpp index 6166087..648ecac 100644 --- a/include/mglpp/graphics/Text.hpp +++ b/include/mglpp/graphics/Text.hpp @@ -17,6 +17,8 @@ namespace mgl { Text(std::string str, Font &font); Text(std::string str, vec2f position, Font &font); Text(const Text &other); + Text& operator=(const Text &other); + Text(Text &&other); ~Text(); void set_position(vec2f position) override; @@ -26,6 +28,7 @@ namespace mgl { FloatRect get_bounds() const; void set_string(std::string str); const std::string& get_string() const; + void append_string(const std::string &str); // Returns the visual position of a character from its index. // If the index is out of range, then the position of the end of the string is returned. |