diff options
| author | Physcik <mynameisgennadiy@vk.com> | 2026-01-30 03:04:43 +0500 |
|---|---|---|
| committer | Physcik <mynameisgennadiy@vk.com> | 2026-01-30 03:04:43 +0500 |
| commit | 95b7170acdfa73c5842db002ec64f78125fe2f90 (patch) | |
| tree | bcf1255a4133e53888faf48d04a6cf1740441178 /engine/UI/UIElement.go | |
| parent | 45b7d0ce612921729d925a7111e4d1aeba3ef849 (diff) | |
Text formation
Diffstat (limited to 'engine/UI/UIElement.go')
| -rw-r--r-- | engine/UI/UIElement.go | 4 |
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) } |
