func finishNewTextField(id C.id) *textfield { t := &textfield{ _id: id, changed: newEvent(), } C.textfieldSetDelegate(t._id, unsafe.Pointer(t)) return t }
func finishNewTextField(id C.id) *textfield { t := &textfield{ controlSingleObject: newControlSingleObject(id), changed: newEvent(), } C.textfieldSetDelegate(t.id, unsafe.Pointer(t)) t.chainpreferredSize = t.fpreferredSize t.fpreferredSize = t.xpreferredSize return t }