From 8b39850803628add1daac3d54f3fb37006a194db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barna=20R=C3=A9ka=20Emese?= <barna.reka.emese@hallgato.ppke.hu> Date: Sun, 18 May 2025 19:15:16 +0000 Subject: [PATCH] Upload New File --- widget.hpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 widget.hpp diff --git a/widget.hpp b/widget.hpp new file mode 100644 index 0000000..02fa645 --- /dev/null +++ b/widget.hpp @@ -0,0 +1,25 @@ +#ifndef WIDGET_HPP +#define WIDGET_HPP + +#include "graphics.hpp" + +class Alkalmazas; + +class Widget { +protected: + int _x, _y; + int _meret_x, _meret_y; + Alkalmazas* _szulo; + bool _valtozott = true; + +public: + Widget(Alkalmazas* szulo, int x, int y, int meret_x, int meret_y); + virtual ~Widget() = default; + + virtual bool kivalasztva(int eger_x, int eger_y); + virtual void rajzol() = 0; + virtual void kezel(genv::event ev) = 0; + virtual void rajzolBuffer(genv::canvas& cel); +}; + +#endif -- GitLab