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

Method UpdateTree

core/update.go:31–36  ·  view source on GitHub ↗

UpdateTree calls [WidgetBase.UpdateWidget] on every widget in the tree starting with this one and going down.

()

Source from the content-addressed store, hash-verified

29// UpdateTree calls [WidgetBase.UpdateWidget] on every widget in the tree
30// starting with this one and going down.
31func (wb *WidgetBase) UpdateTree() {
32 wb.WidgetWalkDown(func(cw Widget, cwb *WidgetBase) bool {
33 cwb.UpdateWidget()
34 return tree.Continue
35 })
36}
37
38// Update updates the widget and all of its children by running [WidgetBase.UpdateWidget]
39// and [WidgetBase.Style] on each one, and triggering a new layout pass with

Callers 5

setFileIconMethod · 0.80
updateSceneMethod · 0.80
TestWidgetPrevFunction · 0.80
TestWidgetNextFunction · 0.80
NewBrowserWindowFunction · 0.80

Calls 2

WidgetWalkDownMethod · 0.95
UpdateWidgetMethod · 0.80

Tested by 2

TestWidgetPrevFunction · 0.64
TestWidgetNextFunction · 0.64