summaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
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