func (s *sizer) Replace(index int, newItem SizerItem) bool { p := s.ptr() if p == nil { return false } oldItem := s.Item(index) result := goBool(C.wxSizer_Replace(p, C.long(index), newItem.ptr())) if result { globalObjectTable.hold(oldItem) globalObjectTable.unhold(newItem) } return result }
func (s *sizer) Replace(index int, newItem SizerItem) bool { p := s.wxPtr() if p == nil { return false } oldItem := s.Item(index) result := goBool(C.wxSizer_Replace(p, C.long(index), newItem.wxPtr())) if result { oldItem.hold() newItem.unhold() } return result }