func newScroller(child C.id, bordered bool) *scroller { id := C.newScrollView(child, toBOOL(bordered)) s := &scroller{ id: id, } return s }
func newScroller(child C.id, bordered bool) *scroller { sid := C.newScrollView(child, toBOOL(bordered)) s := &scroller{ controlSingleObject: newControlSingleObject(child), scroller: newControlSingleObject(sid), } s.fsetParent = s.scroller.fsetParent s.fresize = s.scroller.fresize return s }