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

Method Text

button.go:36–41  ·  view source on GitHub ↗

Text returns the Button's text.

()

Source from the content-addressed store, hash-verified

34
35// Text returns the Button's text.
36func (b *Button) Text() string {
37 ctext := C.uiButtonText(b.b)
38 text := C.GoString(ctext)
39 C.uiFreeText(ctext)
40 return text
41}
42
43// SetText sets the Button's text to text.
44func (b *Button) SetText(text string) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected