Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/windowing/StarTextBoxWidget.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/windowing/StarTextBoxWidget.hpp')
-rw-r--r--source/windowing/StarTextBoxWidget.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/windowing/StarTextBoxWidget.hpp b/source/windowing/StarTextBoxWidget.hpp
index d37125a..b075e6b 100644
--- a/source/windowing/StarTextBoxWidget.hpp
+++ b/source/windowing/StarTextBoxWidget.hpp
@@ -14,9 +14,12 @@ public:
virtual void update() override;
- String getText();
+ String getText() const;
bool setText(String const& text, bool callback = true);
+ bool getHidden() const;
+ void setHidden(bool hidden);
+
// Set the regex that the text-box must match. Defaults to .*
String getRegex();
void setRegex(String const& regex);
@@ -56,6 +59,7 @@ private:
bool modText(String const& text);
bool newTextValid(String const& text) const;
+ bool m_textHidden;
String m_text;
String m_hint;
String m_regex;