Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
277
func
(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
285
func
(tx *Text) Label() string {
286
if
tx.Text !=
""
{
Callers
1
Init
Method · 0.95
Calls
4
NewText
Function · 0.92
Events
Method · 0.65
Write
Method · 0.65
Clipboard
Method · 0.65
Tested by
no test coverage detected