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

Method Update

gui.go:1378–1393  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1376}
1377
1378func (bg *IconButtonGroup) Update() {
1379
1380 rect := bg.Rectangle()
1381 w := (rect.W / float32(len(bg.Buttons))) + bg.Spacing
1382
1383 for i, b := range bg.Buttons {
1384
1385 r := b.Rectangle()
1386 r.X = rect.X + (w * float32(i))
1387 r.Y = rect.Y
1388 b.SetRectangle(r)
1389 b.Update()
1390
1391 }
1392
1393}
1394
1395func (bg *IconButtonGroup) Draw() {
1396

Callers

nothing calls this directly

Calls 4

RectangleMethod · 0.95
RectangleMethod · 0.65
SetRectangleMethod · 0.65
UpdateMethod · 0.65

Tested by

no test coverage detected