From d77f8aa92c768c9a5594613eff3de045b66de769 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Borosty=C3=A1n=20J=C3=B3zsef=20B=C3=A1lint?=
 <borostyan.jozsef.balint@hallgato.ppke.hu>
Date: Sun, 18 May 2025 18:02:38 +0100
Subject: [PATCH] Upload New File

---
 widget.hpp | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 widget.hpp

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