func (s *sizer) AddSizerWithUserData(child Sizer, 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() } globalObjectTable.unhold(child) if item := bindObject(C.wxSizer_AddSizerWithUserData(p, child.ptr(), C.int(proportion), C.int(flag), C.int(border), pUserData), false); item != nil { return item.(SizerItem) } return nil }
func (s *sizer) AddSizerWithUserData(child Sizer, 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() } child.unhold() if item := NewObjectFromPtr(C.wxSizer_AddSizerWithUserData(p, child.wxPtr(), C.int(proportion), C.int(flag), C.int(border), pUserData), false); item != nil { return item.(SizerItem) } return nil }