- DocCtorStrName(
- wxMask(const wxBitmap& bitmap, const wxColour& colour),
- "Constructs a mask from a bitmap and a colour in that bitmap that indicates the\n"
- "background.",
- MaskColour);
+ DocStr(wxMask,
+ "Constructs a mask from a bitmap and a colour in that bitmap that indicates\n"
+ "the transparent portions of the mask, by default BLACK is used.");
+
+ %extend {
+ wxMask(const wxBitmap& bitmap, const wxColour& colour = wxNullColour) {
+ if ( !colour.Ok() )
+ return new wxMask(bitmap, *wxBLACK);
+ else
+ return new wxMask(bitmap, colour);
+ }
+ }