diff options
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_ */ |
