Example #1
0
File: sizer.go Project: nzlov/wxgo
func (s *sizer) InsertSizer(index int, sizer Sizer, flags *SizerFlags) SizerItem {
	p := s.ptr()
	if p == nil {
		return nil
	}
	if obj := bindObject(C.wxSizer_InsertSizer(p, C.long(index), sizer.ptr(), (*C.SizerFlags)(flags)), false); obj != nil {
		globalObjectTable.unhold(sizer)
		return obj.(SizerItem)
	}
	return nil
}
Example #2
0
func (s *sizer) InsertSizer(index int, sizer Sizer, flags *SizerFlags) SizerItem {
	p := s.wxPtr()
	if p == nil {
		return nil
	}
	if obj := NewObjectFromPtr(C.wxSizer_InsertSizer(p, C.long(index), sizer.wxPtr(), (*C.SizerFlags)(flags)), false); obj != nil {
		sizer.unhold()
		return obj.(SizerItem)
	}
	return nil
}