WidgetWalkDown is a version of [tree.NodeBase.WalkDown] that operates on [Widget] types. Return [tree.Continue] to continue and [tree.Break] to terminate.
(fun func(cw Widget, cwb *WidgetBase) bool)
| 444 | // WidgetWalkDown is a version of [tree.NodeBase.WalkDown] that operates on [Widget] types. |
| 445 | // Return [tree.Continue] to continue and [tree.Break] to terminate. |
| 446 | func (wb *WidgetBase) WidgetWalkDown(fun func(cw Widget, cwb *WidgetBase) bool) { |
| 447 | wb.WalkDown(func(n tree.Node) bool { |
| 448 | cw, cwb := n.(Widget), AsWidget(n) |
| 449 | return fun(cw, cwb) |
| 450 | }) |
| 451 | } |
| 452 | |
| 453 | // widgetNext returns the next widget in the tree, |
| 454 | // including Parts, which are considered to come after Children. |
no test coverage detected