summaryrefslogtreecommitdiff
path: root/src/interface/Textblock.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-02-11 16:08:59 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-02-11 16:08:59 (GMT)
commit9f7b06ff47e12076a261b6a209b27c558741eb8a (patch)
treed0b4c8f53d976b1e2c1d771da47d7a9e4517db4d /src/interface/Textblock.h
parent54741c79ef6169eda47745ea4f13e4e1d9982497 (diff)
downloadpowder-9f7b06ff47e12076a261b6a209b27c558741eb8a.zip
powder-9f7b06ff47e12076a261b6a209b27c558741eb8a.tar.gz
Comments on save preview and some minor changes for vote bars
Diffstat (limited to 'src/interface/Textblock.h')
-rw-r--r--src/interface/Textblock.h33
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_ */