A few changes to match header changes and let wxPython compile again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -170,17 +170,15 @@ public:
|
||||
};
|
||||
|
||||
// Alternate constructors
|
||||
%new wxImage* wxNullImage();
|
||||
%new wxImage* wxEmptyImage(int width, int height);
|
||||
%new wxImage* wxEmptyImage(int width=0, int height=0);
|
||||
%new wxImage* wxImageFromMime(const wxString& name, const wxString& mimetype);
|
||||
%new wxImage* wxImageFromBitmap(const wxBitmap &bitmap);
|
||||
%{
|
||||
wxImage* wxNullImage() {
|
||||
return new wxImage;
|
||||
}
|
||||
|
||||
wxImage* wxEmptyImage(int width, int height) {
|
||||
return new wxImage(width, height);
|
||||
wxImage* wxEmptyImage(int width=0, int height=0) {
|
||||
if (width == 0 && height == 0)
|
||||
return new wxImage;
|
||||
else
|
||||
return new wxImage(width, height);
|
||||
}
|
||||
|
||||
wxImage* wxImageFromMime(const wxString& name, const wxString& mimetype) {
|
||||
@@ -192,8 +190,22 @@ public:
|
||||
}
|
||||
%}
|
||||
|
||||
|
||||
void wxInitAllImageHandlers();
|
||||
|
||||
|
||||
%readonly
|
||||
%{
|
||||
#if 0
|
||||
%}
|
||||
|
||||
extern wxImage wxNullImage;
|
||||
|
||||
%readwrite
|
||||
%{
|
||||
#endif
|
||||
%}
|
||||
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user