Files
games/common/elements/v1/stacks/options.go

20 lines
297 B
Go

package stacks
import (
"git.vezzani.net/ben/games/common/elements/v1"
)
type OptFunc func(*Stack)
func Children(children ...elements.InitFunc) OptFunc {
return func(s *Stack) {
s.childrenInit = children
}
}
func Horizontal() OptFunc {
return func(s *Stack) {
s.horizontal = true
}
}