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

Method NeedsRender

core/render.go:57–65  ·  view source on GitHub ↗

NeedsRender specifies that the widget needs to be rendered.

()

Source from the content-addressed store, hash-verified

55
56// NeedsRender specifies that the widget needs to be rendered.
57func (wb *WidgetBase) NeedsRender() {
58 if DebugSettings.UpdateTrace {
59 fmt.Println("\tDebugSettings.UpdateTrace: NeedsRender:", wb)
60 }
61 wb.needsRender = true
62 if wb.Scene != nil {
63 wb.Scene.sceneNeedsRender = true
64 }
65}
66
67// NeedsLayout specifies that the widget's scene needs to do a layout.
68// This needs to be called after any changes that affect the structure

Callers 15

UpdateRenderMethod · 0.95
RestyleMethod · 0.95
UpdatePathMethod · 0.80
initFileInfoMethod · 0.80
AddToVCSMethod · 0.80
deleteFromVCSMethod · 0.80
commitToVCSMethod · 0.80
revertVCSMethod · 0.80
GoUpdatePlotMethod · 0.80
setAllColumnsMethod · 0.80
setColumnsByNameMethod · 0.80
updatePlotMethod · 0.80

Calls 1

PrintlnMethod · 0.80

Tested by 1