Skip to content
Snippets Groups Projects
Commit d77f8aa9 authored by Borostyán József Bálint's avatar Borostyán József Bálint :flag_al:
Browse files

Upload New File

parent 1ba0e23f
No related branches found
No related tags found
No related merge requests found
#ifndef WIDGET_HPP
#define WIDGET_HPP
#include "graphics.hpp"
class Widget {
protected:
int x, y, width, height;
bool selected;
public:
Widget(int x_, int y_, int w_, int h_);
virtual void draw() const = 0;
virtual void handle(genv::event ev) = 0;
virtual bool is_selected(int mx, int my) const;
virtual void set_focus(bool f);
virtual ~Widget() {}
};
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment