summaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-01-28 23:32:31 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2011-01-28 23:33:06 +0100
commit2d916efa7963e6c247a451f3046f7bfce683737d (patch)
tree30be684110275c63a4577b411f7d6e0c51fe2105 /text.h
parent75182acf727092775ff5f94d4a42799cafa2bff7 (diff)
Added the Text class.
Diffstat (limited to 'text.h')
-rw-r--r--text.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/text.h b/text.h
new file mode 100644
index 0000000..88053af
--- /dev/null
+++ b/text.h
@@ -0,0 +1,20 @@
+#ifndef TEXT_H
+#define TEXT_H
+
+#include <SFML/Graphics.hpp>
+
+#include <string>
+
+class Text {
+ private:
+ sf::String string;
+
+ public:
+ Text(std::string str, int x = 0, int y = 0);
+ void draw();
+ void set_text(std::string str);
+ void set_position(int x, int y);
+ void subtract_height();
+};
+
+#endif