diff options
Diffstat (limited to 'src/interface/Textblock.h')
| -rw-r--r-- | src/interface/Textblock.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/interface/Textblock.h b/src/interface/Textblock.h new file mode 100644 index 0000000..99b79e6 --- /dev/null +++ b/src/interface/Textblock.h @@ -0,0 +1,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_ */ |
