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/widgets/pushbutton.h

18 lines
333 B
C++

#pragma once
#include "button.h"
class PushButton : public Button
{
public:
explicit PushButton(const std::string& text);
virtual void input(const sf::Event& event) override final;
void setCallback(std::function<void(void)> callback);
private:
bool _pressed;
std::function<void(void)> _on_click_callback;
};