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

Method NeedsLayout

texteditor/render.go:27–30  ·  view source on GitHub ↗

Rendering Notes: all rendering is done in Render call. Layout must be called whenever content changes across lines. NeedsLayout indicates that the [Editor] needs a new layout pass.

()

Source from the content-addressed store, hash-verified

25
26// NeedsLayout indicates that the [Editor] needs a new layout pass.
27func (ed *Editor) NeedsLayout() {
28 ed.NeedsRender()
29 ed.needsLayout = true
30}
31
32func (ed *Editor) renderLayout() {
33 chg := ed.ManageOverflow(3, true)

Callers 7

jumpToLineMethod · 0.95
SetBufferMethod · 0.95
linesInsertedMethod · 0.95
linesDeletedMethod · 0.95
bufferSignalMethod · 0.95
layoutLineMethod · 0.95
renderLayoutMethod · 0.45

Calls 1

NeedsRenderMethod · 0.80

Tested by

no test coverage detected