Skip to content
Snippets Groups Projects
Commit ac661019 authored by Horváth Ádám's avatar Horváth Ádám
Browse files

lehet végleges

parent f0b19c1a
No related branches found
No related tags found
No related merge requests found
#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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment