diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-02-01 18:45:59 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-02-01 18:45:59 (GMT) |
| commit | 038da72c61ea6a251d805e2de3662f240da52b02 (patch) | |
| tree | 05170050b16f9d663ec44ae451211e686ba196ac /src/interface/Textbox.h | |
| parent | 857b0cc1fc58f066acd59404d16ee5e566e20f00 (diff) | |
| download | powder-038da72c61ea6a251d805e2de3662f240da52b02.zip powder-038da72c61ea6a251d805e2de3662f240da52b02.tar.gz | |
Console UI, open in browser button, tab and enter shortcut for Login UI, various
Diffstat (limited to 'src/interface/Textbox.h')
| -rw-r--r-- | src/interface/Textbox.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/interface/Textbox.h b/src/interface/Textbox.h index 889a4e8..c29e01b 100644 --- a/src/interface/Textbox.h +++ b/src/interface/Textbox.h @@ -17,6 +17,7 @@ public: }; class Textbox : public Component { + friend class TextboxAction; protected: std::string text; std::string displayText; @@ -26,12 +27,14 @@ protected: int cursor, cursorPosition; TextboxAction *actionCallback; bool masked; + bool border; public: Textbox(Point position, Point size, std::string textboxText); virtual ~Textbox(); virtual void TextPosition(); virtual void SetText(std::string text); + virtual void SetDisplayText(std::string text); std::string GetText(); HorizontalAlignment GetHAlignment() { return textHAlign; } VerticalAlignment GetVAlignment() { return textVAlign; } @@ -42,6 +45,8 @@ public: void SetHidden(bool hidden) { masked = hidden; } bool GetHidden() { return masked; } + void SetBorder(bool border) {this->border = border;} + virtual void Draw(const Point& screenPos); }; } |
