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

Method NeedsLayout

core/render.go:70–77  ·  view source on GitHub ↗

NeedsLayout specifies that the widget's scene needs to do a layout. This needs to be called after any changes that affect the structure and/or size of elements.

()

Source from the content-addressed store, hash-verified

68// This needs to be called after any changes that affect the structure
69// and/or size of elements.
70func (wb *WidgetBase) NeedsLayout() {
71 if DebugSettings.UpdateTrace {
72 fmt.Println("\tDebugSettings.UpdateTrace: NeedsLayout:", wb)
73 }
74 if wb.Scene != nil {
75 wb.Scene.needsLayout = true
76 }
77}
78
79// NeedsRebuild returns whether the [renderContext] indicates
80// a full rebuild is needed. This is typically used to detect

Callers 15

UpdateMethod · 0.95
duplicateFilesMethod · 0.45
deleteFilesImplMethod · 0.45
RenameFilesMethod · 0.45
InitMethod · 0.45
sortByMethod · 0.45
InitMethod · 0.45
restoreSplitsMethod · 0.45
setSplitIndexMethod · 0.45
setHandlePosMethod · 0.45
restoreChildMethod · 0.45
pasteAssignSyncMethod · 0.45

Calls 1

PrintlnMethod · 0.80

Tested by

no test coverage detected