blob: 7a94c77972dafa51bd3f22e9a41ccde6b476d623 (
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
34
|
/*
* Textblock.h
*
* Created on: Jan 29, 2012
* Author: Simon
*/
#ifndef TEXTBLOCK_H_
#define TEXTBLOCK_H_
#include <vector>
#include <string>
#include <sstream>
#include "Label.h"
namespace ui
{
class Textblock: public ui::Label
{
bool autoHeight;
void updateMultiline();
std::string textLines;
public:
Textblock(Point position, Point size, std::string textboxText);
virtual void TextPosition() {}
virtual void SetText(std::string text);
virtual std::string GetDisplayText() { return textLines; }
virtual void Draw(const Point& screenPos);
virtual ~Textblock();
};
}
#endif /* TEXTBLOCK_H_ */
|