示例#1
0
文件: sizer.go 项目: nzlov/wxgo
func (s *sizer) Clear(deleteWindows bool) {
	p := s.ptr()
	if p == nil {
		return
	}
	itemCount := s.ItemCount()
	for i := 0; i < itemCount; i++ {
		globalObjectTable.hold(s.Item(i))
	}
	C.wxSizer_Clear(p, cBool(deleteWindows))
}
示例#2
0
文件: sizer.go 项目: jimmygan/wxgo-1
func (s *sizer) Clear(deleteWindows bool) {
	p := s.wxPtr()
	if p == nil {
		return
	}
	itemCount := s.ItemCount()
	for i := 0; i < itemCount; i++ {
		//BUG: hold the items
		//item := s.Item(i)
	}
	C.wxSizer_Clear(p, cBool(deleteWindows))
}