MCPcopy Create free account
hub / github.com/gioui/gio / Text

Method Text

widget/selectable.go:151–155  ·  view source on GitHub ↗

Text returns the contents of the label.

()

Source from the content-addressed store, hash-verified

149
150// Text returns the contents of the label.
151func (l *Selectable) Text() string {
152 l.initialize()
153 l.scratch = l.text.Text(l.scratch)
154 return string(l.scratch)
155}
156
157// SetText updates the text to s if it does not already contain s. Updating the
158// text will clear the selection unless the selectable already contains s.

Callers 1

TestSelectableZeroValueFunction · 0.95

Calls 1

initializeMethod · 0.95

Tested by 1

TestSelectableZeroValueFunction · 0.76