Exemple #1
0
func (s *sizer) AddWindowWithUserData(win Window, proportion int, flag int, border int, userData Object) SizerItem {
	p := s.ptr()
	if p == nil {
		return nil
	}
	var pUserData C.WxObjectPtr
	if userData != nil {
		globalObjectTable.unhold(userData)
		pUserData = userData.ptr()
	}
	if item := bindObject(C.wxSizer_AddWindowWithUserData(p, win.ptr(), C.int(proportion), C.int(flag), C.int(border), pUserData), false); item != nil {
		return item.(SizerItem)
	}
	return nil
}
Exemple #2
0
func (s *sizer) AddWindowWithUserData(win Window, proportion int, flag int, border int, userData Object) SizerItem {
	p := s.wxPtr()
	if p == nil {
		return nil
	}
	var pUserData C.WxObjectPtr
	if userData != nil {
		userData.unhold()
		pUserData = userData.wxPtr()
	}
	if item := NewObjectFromPtr(C.wxSizer_AddWindowWithUserData(p, win.wxPtr(), C.int(proportion), C.int(flag), C.int(border), pUserData), false); item != nil {
		return item.(SizerItem)
	}
	return nil
}