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

Method copy

core/text.go:277–283  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

275}
276
277func (tx *Text) copy() {
278 md := mimedata.NewText(tx.Text)
279 em := tx.Events()
280 if em != nil {
281 em.Clipboard().Write(md)
282 }
283}
284
285func (tx *Text) Label() string {
286 if tx.Text != "" {

Callers 1

InitMethod · 0.95

Calls 4

NewTextFunction · 0.92
EventsMethod · 0.65
WriteMethod · 0.65
ClipboardMethod · 0.65

Tested by

no test coverage detected