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

Method updateScene

core/render.go:233–238  ·  view source on GitHub ↗

updateScene calls UpdateTree on the Scene, which calls UpdateWidget on all widgets in the Scene. This will set NeedsLayout to drive subsequent layout and render. This is a top-level call, typically only done when the window is first drawn or resized, or during rebuild, once the full sizing informat

()

Source from the content-addressed store, hash-verified

231// is first drawn or resized, or during rebuild,
232// once the full sizing information is available.
233func (sc *Scene) updateScene() {
234 sc.updating = true // prevent rendering
235 defer func() { sc.updating = false }()
236
237 sc.UpdateTree()
238}
239
240// applyStyleScene calls ApplyStyle on all widgets in the Scene,
241// This is needed whenever the window geometry, DPI,

Callers 5

resizeMethod · 0.95
doRebuildMethod · 0.95
prefSizeMethod · 0.95
configMainStageMethod · 0.80
runPopupMethod · 0.80

Calls 1

UpdateTreeMethod · 0.80

Tested by

no test coverage detected