MCPcopy Create free account
hub / github.com/SolarLune/masterplan / ButtonGroup

Struct ButtonGroup

gui.go:1161–1171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1159func (dropdown *Dropdown) Destroy() {}
1160
1161type ButtonGroup struct {
1162 ChosenIndex int
1163 Options []string
1164 Buttons []*Button
1165 Labels []*Label
1166 Rect *sdl.FRect
1167 OnChoose func(index int)
1168 Property *Property
1169 WorldSpace bool
1170 MaxButtonsPerRow int
1171}
1172
1173func NewButtonGroup(rect *sdl.FRect, worldSpace bool, onChoose func(index int), property *Property, choices ...string) *ButtonGroup {
1174

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected