From 7383f73a5b1589d3257b44407e46adfe987e2530 Mon Sep 17 00:00:00 2001 From: Physcik Date: Mon, 2 Feb 2026 02:00:29 +0500 Subject: Span system rework pt 1 --- engine/UI/GridColumn.go | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 engine/UI/GridColumn.go (limited to 'engine/UI/GridColumn.go') diff --git a/engine/UI/GridColumn.go b/engine/UI/GridColumn.go new file mode 100644 index 0000000..02d441f --- /dev/null +++ b/engine/UI/GridColumn.go @@ -0,0 +1,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) { +} -- cgit v1.3