diff options
Diffstat (limited to 'text.h')
-rw-r--r-- | text.h | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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 |