Button.h 380 bytes
#pragma once
#include "IDrawable.h"
class Button: public IDrawable {
public:
    void set();
    void select();
    void unselect();
    bool is_selected();
    void is_position_in(sf::Vector2f pos);
    void push();
    void draw_into(sf::RenderWindow& window) const override;
private:
    sf::Text m_text;
    bool m_is_selected = false;
    sf::RectangleShape m_rectangle;