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)) }
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)) }