Beispiel #1
0
func (t *textfield) SetText(text string) {
	ctext := C.CString(text)
	defer C.free(unsafe.Pointer(ctext))
	C.textfieldSetText(t.id, ctext)
}
Beispiel #2
0
func (l *label) SetText(text string) {
	ctext := C.CString(text)
	defer C.free(unsafe.Pointer(ctext))
	C.textfieldSetText(l._id, ctext)
}
Beispiel #3
0
func (a *area) SetTextFieldText(text string) {
	ctext := C.CString(text)
	defer C.free(unsafe.Pointer(ctext))
	C.textfieldSetText(a.textfield, ctext)
}