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.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/UI/UIElement.go b/engine/UI/UIElement.go
index 86475f7..b6f29ca 100644
--- a/engine/UI/UIElement.go
+++ b/engine/UI/UIElement.go
@@ -3,9 +3,11 @@ package ui
import rl "github.com/gen2brain/raylib-go/raylib"
type UIElement interface {
- Init(Menu)
+ Init(*Menu)
Destroy()
Update()
+ // Gets the scale width of the element. Works similar to CSS's 'flex-grow'
+ GetOccupationWeight() float32
// Draw the element with the given size
Draw(*rl.Rectangle)
}