Esempio n. 1
0
func finishNewTextField(id C.id) *textfield {
	t := &textfield{
		_id:     id,
		changed: newEvent(),
	}
	C.textfieldSetDelegate(t._id, unsafe.Pointer(t))
	return t
}
Esempio n. 2
0
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
}