#ifndef BUTTONWIDGET_H #define BUTTONWIDGET_H #include "Widget.h" #include "CursorTask.h" class ButtonWidget : public Widget { public: ButtonWidget() { widgettype = "Button"; }; ButtonWidget( char *l, int x, int y, int w, int h, Widget *p ) : Widget( l, x, y, w, h, p ) { widgettype = "Button"; }; ~ButtonWidget() {}; virtual bool ispressed(); virtual void logic( CursorTask *mouse ) override; virtual void render( SDL_Surface *screen, nSDL_Font *currentfont ) override; protected: bool is_pressed = false; private: }; #endif // BUTTONWIDGET_H