From ac661019fc606d464030c104c09ed1d9edcccd2b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Horv=C3=A1th=20=C3=81d=C3=A1m?=
 <horvath.adam.7@hallgato.ppke.hu>
Date: Mon, 20 May 2024 00:01:23 +0000
Subject: [PATCH] =?UTF-8?q?lehet=20v=C3=A9gleges?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 widgets.hpp | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 widgets.hpp

diff --git a/widgets.hpp b/widgets.hpp
new file mode 100644
index 0000000..936c0f0
--- /dev/null
+++ b/widgets.hpp
@@ -0,0 +1,25 @@
+#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
-- 
GitLab