示例#1
0
文件: sizer.go 项目: nzlov/wxgo
func (s *sizer) AddSizer(child Sizer, flags *SizerFlags) SizerItem {
	p := s.ptr()
	if p == nil {
		return nil
	}
	globalObjectTable.unhold(child)
	if item := bindObject(C.wxSizer_AddSizer(p, child.ptr(), (*C.SizerFlags)(flags)), false); item != nil {
		return item.(SizerItem)
	}
	return nil
}
示例#2
0
文件: sizer.go 项目: jimmygan/wxgo-1
func (s *sizer) AddSizer(child Sizer, flags *SizerFlags) SizerItem {
	p := s.wxPtr()
	if p == nil {
		return nil
	}
	child.unhold()
	if item := NewObjectFromPtr(C.wxSizer_AddSizer(p, child.wxPtr(), (*C.SizerFlags)(flags)), false); item != nil {
		return item.(SizerItem)
	}
	return nil
}