summaryrefslogtreecommitdiff
path: root/engine/UI/UIElement.go
diff options
context:
space:
mode:
Diffstat (limited to 'engine/UI/UIElement.go')
-rw-r--r--engine/UI/UIElement.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/engine/UI/UIElement.go b/engine/UI/UIElement.go
new file mode 100644
index 0000000..86475f7
--- /dev/null
+++ b/engine/UI/UIElement.go
@@ -0,0 +1,11 @@
+package ui
+
+import rl "github.com/gen2brain/raylib-go/raylib"
+
+type UIElement interface {
+ Init(Menu)
+ Destroy()
+ Update()
+ // Draw the element with the given size
+ Draw(*rl.Rectangle)
+}