func (o GridLayoutOptions) Spacing(c int, r int) GridLayoutOpt {
	return func(g *GridLayout) {
		g.columnSpacing = c
		g.rowSpacing = r
	}
}
Spacing configures a grid layout to separate columns by spacing c and rows by spacing r.
package widget
import (
	"image"
	"math"
)
type GridLayout struct {
	columns       int
	padding       Insets
	columnSpacing int
	rowSpacing    int
	columnStretch []bool
	rowStretch    []bool
}
type GridLayoutOpt func(g *GridLayout)
type GridLayoutOptions struct {
}
type GridLayoutData struct {
	MaxWidth int
	MaxHeight int
	HorizontalPosition GridLayoutPosition
	VerticalPosition GridLayoutPosition
}
type GridLayoutPosition int
const (
	GridLayoutPositionStart = GridLayoutPosition(iota)
	GridLayoutPositionCenter
	GridLayoutPositionEnd
)
var GridLayoutOpts GridLayoutOptions
func NewGridLayout(opts ...GridLayoutOpt) *GridLayout {
	g := &GridLayout{}
	for _, o := range opts {
		o(g)
	}
	return g
}
func (o GridLayoutOptions) Columns(c int) GridLayoutOpt {
	return func(g *GridLayout) {
		g.columns = c
	}
}
func (o GridLayoutOptions) Padding(i Insets) GridLayoutOpt {
	return func(g *GridLayout) {
		g.padding = i
	}
}