diff options
author | Stijn Buys <ingar@osirion.org> | 2008-10-19 13:45:07 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-10-19 13:45:07 +0000 |
commit | 56cdfd3822d2800abdd2f912ab7f76a5764793a7 (patch) | |
tree | 2656c7ef694117e0554ae4a47bb09629c78ed8af /src/ui/inputbox.h | |
parent | e6f1fad441a7737549f463ebac1c9de062b5173d (diff) |
scrollpane widget, updated chatbox
Diffstat (limited to 'src/ui/inputbox.h')
-rw-r--r-- | src/ui/inputbox.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/ui/inputbox.h b/src/ui/inputbox.h index 557ca6c..961bbcf 100644 --- a/src/ui/inputbox.h +++ b/src/ui/inputbox.h @@ -20,10 +20,19 @@ public: ~InputBox(); /// set the text displayed by the label - void set_text(std::string const &text); + void set_text(const std::string &text); /// set the text displayed by the label void set_text(const char *text); + + /// set the prompt + void set_prompt(const std::string &prompt); + + /// set the prompt + void set_prompt(const char *prompt); + + /// set the maximal input width + void set_max(const size_t max); /// return the text displayed by the label inline std::string const &text() const { @@ -46,7 +55,9 @@ protected: private: std::string input_text; + std::string input_prompt; size_t input_pos; + size_t input_max; }; } |