blob: c5529d6449a1e8b9ae5a3fbb6d9de7ed33245cab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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_ */
|