func (w *window) AddChild(child Window) { p := wxPtr(w) if p == nil { return } child.unhold() C.wxWindow_AddChild(p, wxPtr(child)) }
func (w *window) AddChild(child Window) { p := ptr(w) if p == nil { return } globalObjectTable.unhold(child) C.wxWindow_AddChild(p, ptr(child)) }