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

Method doRebuild

core/render.go:254–258  ·  view source on GitHub ↗

doRebuild does the full re-render and RenderContext Rebuild flag should be used by Widgets to rebuild things that are otherwise cached (e.g., Icon, TextCursor).

()

Source from the content-addressed store, hash-verified

252// should be used by Widgets to rebuild things that are otherwise
253// cached (e.g., Icon, TextCursor).
254func (sc *Scene) doRebuild() {
255 sc.updateScene()
256 sc.applyStyleScene()
257 sc.layoutRenderScene()
258}
259
260// prefSize computes the preferred size of the scene based on current contents.
261// initSz is the initial size -- e.g., size of screen.

Callers 1

doUpdateMethod · 0.95

Calls 3

updateSceneMethod · 0.95
applyStyleSceneMethod · 0.95
layoutRenderSceneMethod · 0.95

Tested by

no test coverage detected