MCPcopy Create free account
hub / github.com/cogentcore/core / WidgetWalkDown

Method WidgetWalkDown

core/widget.go:446–451  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
446func (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.

Callers 15

setSceneMethod · 0.95
UpdateTreeMethod · 0.95
UpdateMethod · 0.95
UpdateRenderMethod · 0.95
focusableInThisMethod · 0.95
doNeedsRenderMethod · 0.95
StyleTreeMethod · 0.95
HasStateWithinMethod · 0.95
FindFileMethod · 0.80
FileExtensionCountsMethod · 0.80
LatestFileModMethod · 0.80
FirstVCSMethod · 0.80

Calls 2

AsWidgetFunction · 0.85
WalkDownMethod · 0.80

Tested by

no test coverage detected