MCPcopy Create free account
hub / github.com/andlabs/ui / SetText

Method SetText

entry.go:62–66  ·  view source on GitHub ↗

SetText sets the Entry's text to text.

(text string)

Source from the content-addressed store, hash-verified

60
61// SetText sets the Entry's text to text.
62func (e *Entry) SetText(text string) {
63 ctext := C.CString(text)
64 C.uiEntrySetText(e.e, ctext)
65 freestr(ctext)
66}
67
68// OnChanged registers f to be run when the user makes a change to
69// the Entry. Only one function can be registered at a time.

Callers 2

makeDataChoosersPageFunction · 0.95
setupUIFunction · 0.95

Calls 1

freestrFunction · 0.85

Tested by

no test coverage detected