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

Method UpdateWidget

core/update.go:21–27  ·  view source on GitHub ↗

UpdateWidget updates the widget by running [WidgetBase.Updaters] in sequential descending (reverse) order after calling [WidgetBase.ValueUpdate]. This includes applying the result of [WidgetBase.Make]. UpdateWidget differs from [WidgetBase.Update] in that it only updates the widget itself and not a

()

Source from the content-addressed store, hash-verified

19// a new layout pass, while [WidgetBase.Update] does. End-user code should typically
20// call [WidgetBase.Update], not UpdateWidget.
21func (wb *WidgetBase) UpdateWidget() *WidgetBase {
22 if wb.ValueUpdate != nil {
23 wb.ValueUpdate()
24 }
25 wb.RunUpdaters()
26 return wb
27}
28
29// UpdateTree calls [WidgetBase.UpdateWidget] on every widget in the tree
30// starting with this one and going down.

Callers 13

MakeToolbarMethod · 0.80
CallFuncMethod · 0.80
showReturnsDialogMethod · 0.80
UpdateTreeMethod · 0.80
UpdateMethod · 0.80
UpdateRenderMethod · 0.80
showCurrentItemMethod · 0.80
RecycleTabWidgetFunction · 0.80
getTabsMethod · 0.80
getFrameMethod · 0.80
ConfigGUIMethod · 0.80
RenderMethod · 0.80

Calls 1

RunUpdatersMethod · 0.80

Tested by

no test coverage detected