diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-30 00:40:28 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-30 00:40:28 (GMT) |
| commit | 259fc2bcf75d754af043a5d3fa39b6ee0c0b1dec (patch) | |
| tree | f0fe2c14499345121371bba0ecc3fe21d17e0953 /src/interface/Textarea.h | |
| parent | fe329e9127ebcb8c89c505c4c120e175810d280c (diff) | |
| download | powder-259fc2bcf75d754af043a5d3fa39b6ee0c0b1dec.zip powder-259fc2bcf75d754af043a5d3fa39b6ee0c0b1dec.tar.gz | |
ASCII for key events, save and Textarea (no caret, yet)
Diffstat (limited to 'src/interface/Textarea.h')
| -rw-r--r-- | src/interface/Textarea.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/interface/Textarea.h b/src/interface/Textarea.h new file mode 100644 index 0000000..c5529d6 --- /dev/null +++ b/src/interface/Textarea.h @@ -0,0 +1,33 @@ +/* + * Textarea.h + * + * Created on: Jan 29, 2012 + * Author: Simon + */ + +#ifndef TEXTAREA_H_ +#define TEXTAREA_H_ + +#include <vector> +#include <string> +#include <sstream> +#include "Textbox.h" + +namespace ui +{ + +class Textarea: public ui::Textbox +{ + void updateMultiline(); + std::string textLines; +public: + Textarea(Point position, Point size, std::string textboxText); + virtual void TextPosition() {} + virtual void SetText(std::string text); + virtual void OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt); + virtual void Draw(const Point& screenPos); + virtual ~Textarea(); +}; +} + +#endif /* TEXTAREA_H_ */ |
