Skip to content
Snippets Groups Projects
Commit b1b08c4b authored by Bolla Péter's avatar Bolla Péter
Browse files

Replace button.hpp

parent a62c0906
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@
#define BUTTON_HPP
#include "widget.hpp"
#include "functional"
#include "chess.hpp"
class Button : public Widget
{
......@@ -9,9 +10,10 @@ protected:
bool pressed;
std::string _label;
std::function<void()> _f;
Square _s;
public:
Button(App*, int, int, int, int, std::string, std::function<void()>);
Button(App*, int, int, int, int, std::function<void()>, Square);
Button();
virtual void Draw() const override;
virtual void Handle(genv::event ev) override;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment