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

Method SetReadOnly

texteditor/buffer.go:245–248  ·  view source on GitHub ↗

SetReadOnly sets whether the buffer is read-only.

(readonly bool)

Source from the content-addressed store, hash-verified

243
244// SetReadOnly sets whether the buffer is read-only.
245func (tb *Buffer) SetReadOnly(readonly bool) *Buffer {
246 tb.Undos.Off = readonly
247 return tb
248}
249
250// SetFilename sets the filename associated with the buffer and updates
251// the code highlighting information accordingly.

Callers 3

MakeRowMethod · 0.45
InitMethod · 0.45
resetStateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected