Give classes that need one a destructor wrapper, and set %disown when

another class takes ownership.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37947 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-03-10 00:27:37 +00:00
parent d344366c42
commit c5633576a8
5 changed files with 40 additions and 11 deletions

View File

@@ -1810,7 +1810,7 @@ Only functional on Windows.", "");
// constraints and sizers
// ----------------------
// set the constraints for this window or retrieve them (may be NULL)
%disownarg(wxLayoutConstraints*);
DocDeclStr(
void , SetConstraints( wxLayoutConstraints *constraints ),
"Sets the window to have the given layout constraints. If an existing
@@ -1828,6 +1828,7 @@ effect.", "");
wxLayoutConstraints *, GetConstraints() const,
"Returns a pointer to the window's layout constraints, or None if there
are none.", "");
%cleardisown(wxLayoutConstraints*);
DocDeclStr(