예제 #1
0
파일: area_darwin.go 프로젝트: NotBadPad/ui
func newArea(ab *areabase) Area {
	a := &area{
		areabase:      ab,
		textfielddone: newEvent(),
	}
	a._id = C.newArea(unsafe.Pointer(a))
	a.scroller = newScroller(a._id, false) // no border on Area
	a.SetSize(a.width, a.height)
	a.textfield = C.newTextField()
	C.areaSetTextField(a._id, a.textfield)
	return a
}
예제 #2
0
func newTextField() *textfield {
	return finishNewTextField(C.newTextField())
}