Skip to content
Snippets Groups Projects
Commit aca43196 authored by Susa Márk's avatar Susa Márk
Browse files

Upload New File

parent 7f00b49f
Branches
No related tags found
No related merge requests found
#ifndef OSWIDGET_HPP
#define OSWIDGET_HPP
#include "graphics.hpp"
class Window;
class OSWidget {
protected:
int _pos_x, _pos_y, _width, _height;
Window* _window;
public:
OSWidget(Window* window, int pos_x, int pos_y, int width, int height);
virtual ~OSWidget() {}
virtual void draw() const = 0;
virtual void handle(genv::event ev) = 0;
virtual bool is_selected(int mouse_x, int mouse_y);
};
#endif // OSWIDGET_HPP
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment