You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
project-kyoku/src/gui/button.cpp

49 lines
681 B
C++

#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<void(void)> callback)
{
}