SetText sets the Entry's text to text.
(text string)
| 60 | |
| 61 | // SetText sets the Entry's text to text. |
| 62 | func (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. |
no test coverage detected