blob: 02d441fddd67a6ddbccc5711a4b214fdb554ca23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
package ui
import rl "github.com/gen2brain/raylib-go/raylib"
type GridColumn struct {
Weight float32
Spacing float32
Elements []UIElement
cache layoutCache
}
func (base *GridColumn) Init(*Menu) {
}
func (base *GridColumn) Destroy() {
}
// Gets the scale width of the element. Works similar to CSS's 'flex-grow'
func (base *GridColumn) GetOccupationWeight() float32 {
return base.Weight
}
// Draw the element with the given size
func (base *GridColumn) Draw(*rl.Rectangle) {
}
|