Exemplo n.º 1
0
func newScroller(child C.id, bordered bool) *scroller {
	id := C.newScrollView(child, toBOOL(bordered))
	s := &scroller{
		id: id,
	}
	return s
}
Exemplo n.º 2
0
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
}