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

Method UpdateRender

core/update.go:74–81  ·  view source on GitHub ↗

UpdateRender is the same as [WidgetBase.Update], except that it calls [WidgetBase.NeedsRender] instead of [WidgetBase.NeedsLayout]. This should be called when the changes made to the widget do not require a new layout pass (if you change the size, spacing, alignment, or other layout properties of th

()

Source from the content-addressed store, hash-verified

72// or other layout properties of the widget, you need a new layout pass
73// and should call [WidgetBase.Update] instead).
74func (wb *WidgetBase) UpdateRender() {
75 wb.WidgetWalkDown(func(cw Widget, cwb *WidgetBase) bool {
76 cwb.UpdateWidget()
77 cw.Style()
78 return tree.Continue
79 })
80 wb.NeedsRender()
81}

Callers 3

toggleRevisionMethod · 0.80
makeToolbarMethod · 0.80
InitMethod · 0.80

Calls 4

WidgetWalkDownMethod · 0.95
NeedsRenderMethod · 0.95
UpdateWidgetMethod · 0.80
StyleMethod · 0.65

Tested by

no test coverage detected