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

Upload New File

parent b129548c
No related branches found
No related tags found
No related merge requests found
#ifndef BUTTON_HPP
#define BUTTON_HPP
#include "widget.hpp"
#include "functional"
class Button : public Widget
{
protected:
bool pressed;
std::string _label;
std::function<void()> _f;
public:
Button(App*, int, int, int, int, std::string, std::function<void()>);
Button();
virtual void Draw() const override;
virtual void Handle(genv::event ev) override;
virtual std::string GetValue() const override;
virtual bool Pressed();
void action();
private:
void Press();
void Release();
};
#endif // BUTTON_HPP
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment