blob: 774efeefbc9fafc29afbccc4fdc2323129d828ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
package ui
import rl "github.com/gen2brain/raylib-go/raylib"
type UIElement interface {
Init(*Menu)
Destroy()
// 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)
}
|