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

summaryrefslogtreecommitdiff
path: root/source/windowing/StarTextBoxWidget.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-28 01:40:55 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-28 01:40:55 +1000
commitcd497bbcf399bcfa17694725583cefd93bff65d9 (patch)
treec91cf4e089bb1c2c46bf8f3f44cf8d49cb4684d7 /source/windowing/StarTextBoxWidget.hpp
parent4c006afc94e4994f215eddaa35ee22358d963019 (diff)
Support for hiding text box input, hide server connection password box by default
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;