diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/Entry.hpp | 2 | ||||
-rw-r--r-- | include/Text.hpp | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/Entry.hpp b/include/Entry.hpp index 18a860c..2ef6b04 100644 --- a/include/Entry.hpp +++ b/include/Entry.hpp @@ -26,10 +26,12 @@ namespace QuickMedia { void set_position(const sf::Vector2f &pos); void set_max_width(float width); void move_caret_to_end(); + void append_text(std::string str); float get_height(); OnEntrySubmit on_submit_callback; + bool draw_background; private: Text text; float width; diff --git a/include/Text.hpp b/include/Text.hpp index 59693a2..6a4ed9c 100644 --- a/include/Text.hpp +++ b/include/Text.hpp @@ -58,10 +58,11 @@ namespace QuickMedia { public: Text(const sf::Font *font, const sf::Font *cjk_font); - Text(sf::String str, const sf::Font *font, const sf::Font *cjk_font, unsigned int characterSize, float maxWidth, bool plainText = true); + Text(sf::String str, const sf::Font *font, const sf::Font *cjk_font, unsigned int characterSize, float maxWidth); void setString(sf::String str); const sf::String& getString() const; + void appendText(sf::String str); void setPosition(float x, float y); void setPosition(const sf::Vector2f &position); @@ -137,7 +138,6 @@ namespace QuickMedia bool dirty; bool dirtyText; bool dirtyCaret; - bool plainText; bool editable; bool visible; CaretMoveDirection caretMoveDirection; |