summaryrefslogtreecommitdiff
path: root/src/interface/Textblock.h
blob: 99b79e6faa9d8199a38ff3d17a4657be5b45a64d (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
/*
 * 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 void Draw(const Point& screenPos);
	virtual ~Textblock();
};
}

#endif /* TEXTBLOCK_H_ */