summaryrefslogtreecommitdiff
path: root/src/interface/Textbox.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-01-24 20:19:19 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-01-24 20:19:19 (GMT)
commit97b35bc47059315d4138c8e0827842d2c03de152 (patch)
treefeaf7a8c018982ba9d7ca1b8e6e15294abfdfc84 /src/interface/Textbox.h
parent04488081d3fa0cd3dfb2939e5d902bc894df150d (diff)
downloadpowder-97b35bc47059315d4138c8e0827842d2c03de152.zip
powder-97b35bc47059315d4138c8e0827842d2c03de152.tar.gz
Various
Diffstat (limited to 'src/interface/Textbox.h')
-rw-r--r--src/interface/Textbox.h4
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);
};
}