#include "button.h" Button::Button(const std::string &text) { _button_text.setString(text); _button_text.setFillColor(sf::Color::Black); _button_content.setFillColor(sf::Color::White); } void Button::input(const sf::Event& event) { switch (event.type) { case sf::Event::MouseButtonPressed: break; } } void Button::update() { } void Button::draw(sf::RenderTarget& target, sf::RenderStates states) const { } void Button::setRect(const sf::IntRect& rect) { } void Button::setPosition(const sf::Vector2f& position) { } void Button::setText(const std::string& text) { } void Button::setCallback(std::function callback) { }