Skip to content
Snippets Groups Projects
Commit 4b9fb450 authored by Bolla Péter's avatar Bolla Péter
Browse files

Upload New File

parent c3d80cc6
Branches
No related tags found
No related merge requests found
#ifndef WIDGET_HPP
#define WIDGET_HPP
#include "graphics.hpp"
#include "app.hpp"
enum Operation
{
PRESS, RELEASE, ACTIVATE, DEACTIVATE
};
class Widget
{
protected:
int _x, _y, _sx, _sy;
App* _parent;
public:
Widget(App* app, int x, int y, int sx, int sy);
virtual ~Widget();
virtual bool Selected(int mx, int my) const;
virtual void Draw() const = 0;
virtual void Handle(genv::event ev, Operation) = 0;
};
#endif // WIDGET_HPP
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment