()
| 1376 | } |
| 1377 | |
| 1378 | func (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 | |
| 1395 | func (bg *IconButtonGroup) Draw() { |
| 1396 |
nothing calls this directly
no test coverage detected