diff options
Diffstat (limited to 'engine/UI/GridColumn.go')
| -rw-r--r-- | engine/UI/GridColumn.go | 26 |
1 files changed, 26 insertions, 0 deletions
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) { +} |
