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