This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
The-Powder-Toy/src/interface/Textblock.h

34 lines
559 B
C++

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