package ui import rl "github.com/gen2brain/raylib-go/raylib" type GridRow struct { // A portion of the screen the row will occupy. Works similar to CSS's 'flex-grow' HeightWeight float32 // The objects that lay in this row Objects []UIElement location rl.Rectangle } func (base *GridRow) Init(parent *Menu) { for _, v := range base.Objects { v.Init(parent) } } func (base *GridRow) Draw(span rl.Rectangle) { // TODO: Add horizontal spacing for _, v := range base.Objects { v.Draw(&span) } }