Esempio n. 1
0
File: sizer.go Progetto: nzlov/wxgo
func (s *sizer) ReplaceSizer(oldSizer Sizer, newSizer Sizer, recursive bool) bool {
	p := s.ptr()
	if p == nil {
		return false
	}
	result := goBool(C.wxSizer_ReplaceSizer(p, oldSizer.ptr(), newSizer.ptr(), cBool(recursive)))
	if result {
		globalObjectTable.hold(oldSizer)
		globalObjectTable.unhold(newSizer)
	}
	return result
}
Esempio n. 2
0
func (s *sizer) ReplaceSizer(oldSizer Sizer, newSizer Sizer, recursive bool) bool {
	p := s.wxPtr()
	if p == nil {
		return false
	}
	result := goBool(C.wxSizer_ReplaceSizer(p, oldSizer.wxPtr(), newSizer.wxPtr(), cBool(recursive)))
	if result {
		oldSizer.hold()
		newSizer.unhold()
	}
	return result
}