Tic-Tac-Toe/Tic Tac Toe/InputField.hpp
2019-03-06 22:43:26 +01:00

29 lines
344 B
C++

#pragma once
#include <SFML/Graphics.hpp>
class InputField
{
public:
InputField();
~InputField();
void Type(char letter);
std::string Enter();
void Backspace();
void Render(sf::RenderWindow& target);
private:
void updateText();
std::string value;
sf::Text info;
sf::Text input;
sf::Font* font;
sf::RectangleShape field;
};