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