diff --git a/widgets.hpp b/widgets.hpp new file mode 100644 index 0000000000000000000000000000000000000000..936c0f0f292e645b90188df0fd298e02f00b6a59 --- /dev/null +++ b/widgets.hpp @@ -0,0 +1,25 @@ +#ifndef WIDGETS_HPP_INCLUDED +#define WIDGETS_HPP_INCLUDED + +class Application; + +#include "/Users/horvathadam/Desktop/ITK_graphicslib-master/graphics.hpp" + +class Widget { +protected: + Application * _parent; + int _x, _y, _size_x, _size_y; + +public: + Widget(Application *, int x, int y, int sx, int sy); + + virtual bool is_selected(int mouse_x, int mouse_y); + virtual void draw() = 0; + virtual void handle(genv::event ev) = 0; + virtual bool is_checked() = 0; + virtual void value(int) = 0; + virtual int value_sz() = 0; + virtual int getPlayerValue() const { return 0; } +}; + +#endif // WIDGETS_HPP_INCLUDED