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

Method SetText

button.go:44–48  ·  view source on GitHub ↗

SetText sets the Button's text to text.

(text string)

Source from the content-addressed store, hash-verified

42
43// SetText sets the Button's text to text.
44func (b *Button) SetText(text string) {
45 ctext := C.CString(text)
46 C.uiButtonSetText(b.b, ctext)
47 freestr(ctext)
48}
49
50// OnClicked registers f to be run when the user clicks the Button.
51// Only one function can be registered at a time.

Callers

nothing calls this directly

Calls 1

freestrFunction · 0.85

Tested by

no test coverage detected