Added a wxBitmap.SetMaskColour convenience method.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -68,6 +68,11 @@ public:
|
|||||||
bool LoadFile(const wxString& name, wxBitmapType type=wxBITMAP_TYPE_ANY);
|
bool LoadFile(const wxString& name, wxBitmapType type=wxBITMAP_TYPE_ANY);
|
||||||
bool SaveFile(const wxString& name, wxBitmapType type, wxPalette* palette = NULL);
|
bool SaveFile(const wxString& name, wxBitmapType type, wxPalette* palette = NULL);
|
||||||
void SetMask(wxMask* mask);
|
void SetMask(wxMask* mask);
|
||||||
|
%pragma(python) addtoclass = "
|
||||||
|
def SetMaskColour(self, colour):
|
||||||
|
mask = wxMaskColour(self, colour)
|
||||||
|
self.SetMask(mask)
|
||||||
|
"
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
void SetPalette(wxPalette& palette);
|
void SetPalette(wxPalette& palette);
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user