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

Method Text

texteditor/buffer.go:226–229  ·  view source on GitHub ↗

Text returns the current text as a []byte array, applying all current changes by calling editDone, which will generate a signal if there have been changes.

()

Source from the content-addressed store, hash-verified

224// changes by calling editDone, which will generate a signal if there have been
225// changes.
226func (tb *Buffer) Text() []byte {
227 tb.editDone()
228 return tb.Bytes()
229}
230
231// String returns the current text as a string, applying all current
232// changes by calling editDone, which will generate a signal if there have been

Callers 6

StringMethod · 0.95
InspectGenDeclMethod · 0.45
InspectFuncDeclMethod · 0.45
GetFieldsMethod · 0.45
JumpToLinePromptMethod · 0.45
WidgetValueMethod · 0.45

Calls 2

editDoneMethod · 0.95
BytesMethod · 0.45

Tested by

no test coverage detected