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

@@ -201,6 +201,7 @@ bitmap. This preserves mask information so that bitmaps and images can
be converted back and forth without loss in that respect.", "");
DocDeclStr(
virtual wxMask* , GetMask() const,
"Gets the associated mask (if any) which may have been loaded from a
@@ -211,13 +212,14 @@ file or explpicitly set for the bitmap.
// MSW only? wxBitmap GetMaskBitmap() const;
%disownarg(wxMask*);
DocDeclStr(
virtual void , SetMask(wxMask* mask),
"Sets the mask for this bitmap.
:see: `GetMask`, `wx.Mask`
", "");
%cleardisown(wxMask*);
%extend {
DocStr(SetMaskColour,
@@ -338,7 +340,7 @@ passed then BLACK is used.
}
}
//~wxMask();
~wxMask();
};
%pythoncode { MaskColour = wx._deprecated(Mask, "wx.MaskColour is deprecated, use `wx.Mask` instead.") }