ForWidgetChildren iterates through the children as widgets, calling the given function. Return [tree.Continue] (true) to continue, and [tree.Break] (false) to terminate.
(fun func(i int, cw Widget, cwb *WidgetBase) bool)
| 416 | // ForWidgetChildren iterates through the children as widgets, calling the given function. |
| 417 | // Return [tree.Continue] (true) to continue, and [tree.Break] (false) to terminate. |
| 418 | func (wb *WidgetBase) ForWidgetChildren(fun func(i int, cw Widget, cwb *WidgetBase) bool) { |
| 419 | for i, c := range wb.Children { |
| 420 | w, cwb := c.(Widget), AsWidget(c) |
| 421 | if !fun(i, w, cwb) { |
| 422 | break |
| 423 | } |
| 424 | } |
| 425 | } |
| 426 | |
| 427 | // forVisibleChildren iterates through the children,as widgets, calling the given function, |
| 428 | // excluding any with the *local* states.Invisible flag set (does not check parents). |
no test coverage detected