diff options
Diffstat (limited to 'src/interface/Textbox.h')
| -rw-r--r-- | src/interface/Textbox.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interface/Textbox.h b/src/interface/Textbox.h index 099368f..82ed648 100644 --- a/src/interface/Textbox.h +++ b/src/interface/Textbox.h @@ -23,6 +23,7 @@ class Textbox : public Component VerticalAlignment textVAlign; int cursor, cursorPosition; TextboxAction *actionCallback; + bool masked; public: Textbox(Window* parent_state, std::string textboxText); Textbox(Point position, Point size, std::string textboxText); @@ -38,6 +39,9 @@ public: void SetActionCallback(TextboxAction * action) { actionCallback = action; } virtual void OnKeyPress(int key, bool shift, bool ctrl, bool alt); + void SetHidden(bool hidden) { masked = hidden; } + bool GetHidden() { return masked; } + virtual void Draw(const Point& screenPos); }; } |
